-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.travis.yml
60 lines (51 loc) · 1.64 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
language: python
python:
- "3.8"
compiler:
- gcc
env:
- TESTING_TAG=_mpich WITHMPI=mpich
- TESTING_TAG=_openmpi WITHMPI=openmpi
# - TESTING_TAG=_serial WITHMPI=no
install:
- if [[ "$WITHMPI" == "openmpi" ]]; then
sudo apt-get install -qq openmpi-bin libopenmpi-dev python-mpi4py;
update-alternatives --list mpi|grep "$WITHMPI" | xargs -rt sudo update-alternatives --set mpi;
update-alternatives --list mpirun|grep "$WITHMPI" | xargs -rt sudo update-alternatives --set mpirun;
fi
- if [[ "$WITHMPI" == "mpich" ]]; then
sudo apt-get install -qq mpich libmpich-dev python-mpi4py;
update-alternatives --list mpi|grep "$WITHMPI" | xargs -rt sudo update-alternatives --set mpi;
update-alternatives --list mpirun|grep "$WITHMPI" | xargs -rt sudo update-alternatives --set mpirun;
fi
- pip3 install numpy
- pip3 install scipy
- pip3 install matplotlib
- pip3 install setuptools
- pip3 install enum34
- pip3 install xarray
- pip3 install netcdf4
- pip3 install psutil
- pip3 install tqdm
- pip3 install Sphinx
- pip3 install sphinx_rtd_theme
- pip3 install ecmwf_api_client
- pip3 install cdsapi
- pip3 install h5py
- pip3 install coveralls
- pip3 install coverage
- pip3 install future
- pip3 install pytest
- pip3 install mpi4py
- pip3 install pytest-mpi
# - if [[ "$WITHMPI" != "no" ]]; then
# - pip3 install mpi4py
# - pip3 install pytest-mpi
# fi
script:
- mpirun -np 6 python3 -m pytest --with-mpi -v
after_success:
- coveralls
branches:
only:
- main