forked from sci-wms/sci-wms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (44 loc) · 1.4 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
language: python
sudo: false
dist: xenial
env:
global:
# Doctr deploy key for sci-wms/sci-wms
- secure: "hpmpu9Wg5ZdSkrTb37ew0bC9zlLiHXTKyllIwRUTEbvDR0ieVVyq6s386YsrOoQkEHqUEI6/X/cWqaoMZzbnrcEQrd7/qfDbK2ReHFyh3Cs0oCFfwphQ+4gua5yZbrLD2Jkm6eSZAjYALi6G8aQyazuIqdGElyCedb2pEWj2ImE="
matrix:
fast_finish: true
include:
- python: 3.7
env: TEST_TARGET=default
- python: 3.7
env: TEST_TARGET=coding_standards
- python: 3.7
env: TEST_TARGET=docs
allow_failures:
- python: 3.7
env: TEST_TARGET=coding_standards
- python: 3.7
env: TEST_TARGET=docs
before_install:
- wget http://bit.ly/miniconda -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
- conda update conda
- conda config --add channels axiom-data-science --force
- conda config --add channels conda-forge --force
- conda create -n TEST python=$TRAVIS_PYTHON_VERSION
- source activate TEST
install:
- conda install --file requirements.txt --file requirements-test.txt
script:
- set -e
- if [[ $TEST_TARGET == "default" ]]; then
pytest -rxs --verbose ;
fi
- if [[ $TEST_TARGET == "coding_standards" ]]; then
py.test --verbose --flake8 -m flake8 -q ;
fi
- if [[ $TEST_TARGET == "docs" ]]; then
./docs/deploy.sh ;
fi