-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy path.travis.yml
22 lines (21 loc) · 1.09 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
# Set language to generic because we install using conda and there is no need
# for travis to create a virtualenv.
language: generic
install:
- ./scripts/ci-install.sh
- export PATH="$HOME/miniconda/bin:$PATH"
env:
- TEST_SUITE=static
- TEST_SUITE=unit
- TEST_SUITE=python
- TEST_SUITE=pytorch
- TEST_SUITE=relay
script:
- if [[ $TEST_SUITE == "static" ]]; then source activate test && ./scripts/check.sh; fi
- if [[ $TEST_SUITE == "static" ]]; then source activate test && ./scripts/build-doc.sh; fi
- if [[ $TEST_SUITE == "unit" ]]; then source activate test && pytest -m "not python and not pytorch and not relay" --cov=./ --cov-report term-missing; fi
- if [[ $TEST_SUITE == "python" ]]; then source activate test && pytest -m "python" --cov=./ --cov-report term-missing; fi
- if [[ $TEST_SUITE == "pytorch" ]]; then source activate test && pytest -m "pytorch" --cov=./ --cov-report term-missing; fi
- if [[ $TEST_SUITE == "relay" ]]; then source activate test && pytest -m "relay" --cov=./ --cov-report term-missing; fi
after_success:
- if [[ $TEST_SUITE == "unit" ]]; then codecov; fi