forked from anuga-community/anuga_core
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
38 lines (29 loc) · 1.14 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
language: python
matrix:
include:
- os: osx
language: generic
sudo: false
env: DISTRIB="conda_macos"
- os: linux
dist: focal
sudo: required
python: "3.8"
env: PYTHON_VERSION="3.8" ANUGA_PARALLEL="conda" PYPAR_AVAILABLE="mpi4py" DISTRIB="conda"
- os: linux
dist: xenial
sudo: required
python: "3.8"
env: PYTHON_VERSION="3.8" ANUGA_PARALLEL="openmpi" PYPAR_AVAILABLE="mpi4py" DISTRIB="ubuntu"
install:
- if [[ "$DISTRIB" == "conda_macos" ]]; then source tools/install_conda_macos.sh; fi
- 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:
- export OMPI_MCA_btl_vader_single_copy_mechanism=none
- python --version
- python runtests.py $COVERAGE
- if [[ "$COVERAGE" == "--coverage" ]]; then cp build/test/.coverage .; fi
after_success:
- if [[ "$COVERAGE" == "--coverage" ]]; then coveralls || echo "failed"; fi