forked from GeoscienceAustralia/anuga_core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (35 loc) · 1.43 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
language: python
matrix:
include:
- os: linux
sudo: required
python: "2.7_with_system_site_packages"
env: PYTHON_VERSION="2.7" ANUGA_PARALLEL="openmpi" DISTRIB="ubuntu"
- os: linux
sudo: required
python: "2.7_with_system_site_packages"
env: PYTHON_VERSION="2.7" ANUGA_PARALLEL="mpich2" DISTRIB="ubuntu"
- os: linux
dist: trusty
sudo: required
python: "2.7_with_system_site_packages"
env: PYTHON_VERSION="2.7" ANUGA_PARALLEL="mpich" DISTRIB="ubuntu"
- os: linux
dist: trusty
sudo: required
python: "2.7_with_system_site_packages"
env: PYTHON_VERSION="2.7" ANUGA_PARALLEL="false" DISTRIB="ubuntu"
- os: linux
dist: trusty
sudo: required
python: "2.7_with_system_site_packages"
env: PYTHON_VERSION="2.7" ANUGA_PARALLEL="openmpi" DISTRIB="ubuntu" COVERAGE="--coverage"
install:
- if [[ "$DISTRIB" == "conda" ]]; then source tools/install_conda.sh; fi
- if [[ "$DISTRIB" == "ubuntu" ]]; then source tools/install_ubuntu.sh; fi
- if [[ "$COVERAGE" == "--coverage" ]]; then pip install coverage coveralls; fi
script:
- python runtests.py $COVERAGE
- if [[ "$COVERAGE" == "--coverage" ]]; then cp build/test/.coverage .; fi
after_success:
- if [[ "$COVERAGE" == "--coverage" ]]; then coveralls || echo "failed"; fi