forked from ioos/compliance-checker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (48 loc) · 1.49 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
language: python
sudo: false
matrix:
fast_finish: true
include:
- python: 2.7
env: TEST_TARGET=default
- python: 2.7
env: TEST_TARGET=integration
- python: 3.5
env: TEST_TARGET=default
- python: 3.6
env: TEST_TARGET=default
- python: 3.6
env: TEST_TARGET=coding_standards
- python: 3.6
env: TEST_TARGET=integration
allow_failures:
- python: 3.6
env: TEST_TARGET=coding_standards
- python: 2.7
env: TEST_TARGET=integration
- python: 3.6
env: TEST_TARGET=integration
before_install:
- wget http://bit.ly/miniconda -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda update conda --yes
- conda config --add channels conda-forge --force
- conda create --yes -n TEST python=$TRAVIS_PYTHON_VERSION --file requirements.txt --file test_requirements.txt
- source activate TEST
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
conda install --yes httpretty ;
fi
# Test source distribution.
install:
- python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install compliance-checker-${version}.tar.gz && popd
script:
- if [[ $TEST_TARGET == "default" ]]; then
py.test -k "not integration" -s -rxs -v ;
fi
- if [[ $TEST_TARGET == "coding_standards" ]]; then
flake8 --ignore=E501,E251,E221,E201,E202,E203 -qq --statistics . ;
fi
- if [[ $TEST_TARGET == "integration" ]]; then
py.test -m "integration" -s -rxs -v ;
fi