-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
66 lines (62 loc) · 2.24 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
language: python
python:
- "3.6"
before_install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- 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
install:
# Issues have been encountered with installing numpy and scipy on
# Travis CI e.g. https://gist.github.com/dan-blanchard/7045057.
# Miniconda is recommended as the way to install these. See also:
# http://conda.pydata.org/docs/travis.html
# The following adopts approaches suggested in the above links.
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
- source activate test-environment
# recipy setup.py fails to install flask for as-yet-unknown reason,
# and fails if it is not present, so install it explicitly.
- conda install keras
# # Install recipy.
# - python setup.py install
# Install behave for unit tests
# - pip install -e . behave
# Install py.test explicitly else Travis CI will use the one in its
# virtualenv which can't use the Miniconda environment.
- conda install pytest
# Install packages needed for testing recipy.
- conda install python-dateutil pyyaml numpy git
# Install packages that recipy can log.
- conda install matplotlib
- conda install pandas pytables xlrd xlwt
- conda install lxml
- conda install beautifulsoup4
- conda install pillow
- conda install scikit-learn
- conda install scikit-image
- pip install nibabel
- conda install gdal
# Copy matplotlib configuration so it does not try and plot to
# screen, which can cause matplotlib tests to fail.
# - cp integration_test/packages/matplotlibrc .
# Print the environment.
- which python
- python --version
- which pip
- which py.test
- py.test --version
- pip freeze
script:
- pytest
# - cd test/ && behave
# - cd ..
# # Run py.test with 'v' (verbose) to show test function names and
# # 'rs' to show reasons for skipped tests
# - py.test -v -rs integration_test