-
Notifications
You must be signed in to change notification settings - Fork 42
/
.travis.yml
65 lines (54 loc) · 2.03 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
language: python
branches:
only:
- disable # master
os:
- linux
dist: xenial
#python:
# - 2.7
# - 3.6
matrix:
include:
- env: MPI_LIBRARY=openmpi MPI_LIBRARY_VERSION=2.0.0
python: 2.7
- env: MPI_LIBRARY=openmpi MPI_LIBRARY_VERSION=2.0.0
python: 3.6
- stage: python linter
env:
install: pip install flake8
script: python -m flake8 && echo "Finished linting Python files with flake8"
addons:
apt:
packages:
- python-numpy
- python-setuptools
env:
- TEST_DIR=.; TEST_SCRIPT="python setup.py test"
# before_install:
install:
- sh ci/travis/install-mpi.sh
- export MPI_PREFIX="${HOME}/opt/${MPI_LIBRARY}-${MPI_LIBRARY_VERSION}"
- export PATH="${HOME}/.local/bin:${MPI_PREFIX}/bin${PATH:+":${PATH}"}"
- export LD_LIBRARY_PATH="${MPI_PREFIX}/lib${LD_LIBRARY_PATH:+":${LD_LIBRARY_PATH}"}"
- pip install --upgrade pip
- pip install -r envs/pip-requirements-travis.txt
# before_script:
script:
- cd $TEST_DIR && $TEST_SCRIPT && cd ..
# Specify order of stages; build matrix of installation and regression tests
# will only run if linter stage passes
stages:
- python linter
- test
notifications:
email:
recipients:
- felker@anl.gov
on_success: change
on_failure: never # always
slack:
rooms:
- secure: "NBjGYpIF2VO/GvhbC7XVPIfi0WLGFEuVhi51UbZjfHg4IOv1UuCF0fImi8GN2UZZBFRnZcbtPVffZnyMUyJI0Krw0M1ropkjA4YDaJx1JUGnYuQLxNmX+jbQmN61Usjg5MQOgcRnAn1bdMN1ttWInqkKejpV5buCjZbt8SZbDePfXz4U3No68P/pRsDTVXSy0xLTtRacuEITJjwxfjp6phbmR3qs127MZMRbVYDC2HA6KsoJW6YSKF1vFyHqnFMl7GSavxYw/XQpqFLJkGKXfnNgPZV6qAbVk5+bzyytAbbwLGvgbuFpnJsGPvAyebV8wVYaIPg7OeK+Sm1A3q0jt774NnqFp2AZ+pSKrxbxIkygDM0zoWLm4i3pt6ToJ6dKcqSbCKbELnSY5NphcyYuiJ8uhLVpAR0Y+vp+fOvhb8td/nH2AWkxFpp6xwOHPXvtodBsyPMkiaeKoVElYBfbfOhDSYH2KafADECTX75S63A9KleeNZh0DSImfFdQPaN3GFLEL8Z9UFABzTkM9eYKP9pyEP82Wh/JGDaqbARazEgNzy8rwghomsEguV247XHdOx32PSd0att541gsRFZ5uyMuVFKzI0jiLijekibY2I1c5b6dDeuK4O8uBiq4FTS+bM55Rj4Job01kdxSCKw3RwOh0amzITRTQvEWKpTAekg="
on_success: never # always
on_failure: never # always