-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
49 lines (40 loc) · 1.42 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
dist: xenial # required for Python >= 3.7
language: python
python:
# We don't actually use the Travis Python, but this keeps it organized.
# - "3.4" # conda UnsatisfiableError: pandas -> numpy[version='>=1.14.6,<2.0a0'] -> python[version='>=2.7,<2.8.0a0']
# - "3.5" # conda never finishes solving environment
- "3.6"
- "3.7"
services:
- xvfb # create a virtual display on the headless server for gui tests
install:
- sudo apt-get update
# install conda
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
# create python environment
- conda config --add channels conda-forge
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
- conda env update -q -n test-environment -f environment.yml
- conda install -q -n test-environment --file requirements-tests.txt
- source activate test-environment
# install package
- python setup.py install
before_script:
# list versions
- python --version
- pip -V
- pip list
- conda list
script:
# run tests
nosetests --with-coverage --cover-package=neurotic
after_success:
# report coverage to Coveralls
coveralls || echo "coveralls failed"