forked from mpi4py/mpi4py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (60 loc) · 1.37 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
66
67
68
69
70
# http://travis-ci.org/mpi4py/mpi4py
language: python
python:
- 2.7
- 3.5
- 3.6
- 3.7
- 3.8
- 3.9
arch:
- arm64
- ppc64le
os: linux
dist: xenial
sudo: required
env:
global:
- HYDRA_LAUNCHER=fork
- OMPI_MCA_plm=isolated
- OMPI_MCA_rmaps_base_oversubscribe=true
matrix:
- MPI=mpich
- MPI=openmpi
branches:
only:
- master
- maint
- ci/all
- ci/travis
git:
depth: 3
cache:
apt: true
addons:
apt:
update: true
homebrew:
update: true
before_install:
- python -m pip install Cython
- python -m pip install numpy
- ./conf/ci/travis-ci/install-mpi.sh $MPI
- python --version
- python -m cython --version
- python -c "import numpy;print(numpy.__version__)"
- if [[ "$MPI" == "mpich" ]]; then mpichversion; fi
- if [[ "$MPI" == "openmpi" ]]; then ompi_info; fi
install:
- python -m pip -vvv install .
before_script:
- if [[ "$MPI" == "mpich" ]]; then P=2; else P=5; fi
script:
- mpiexec -n 1 python $PWD/test/runtests.py -v
- mpiexec -n $P python $PWD/test/runtests.py -v -f -e spawn
- mpiexec -n 1 python $PWD/demo/futures/test_futures.py -v
- mpiexec -n $P python $PWD/demo/futures/test_futures.py -v
- mpiexec -n 1 python -m mpi4py.futures $PWD/demo/futures/test_futures.py -v
- mpiexec -n $P python -m mpi4py.futures $PWD/demo/futures/test_futures.py -v
#notifications:
# email: false