forked from mpi4py/mpi4py
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
94 lines (84 loc) · 2.08 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# http://travis-ci.org/mpi4py/mpi4py
language: python
python:
- 2.7
- 3.3
- 3.4
- 3.5
- 3.6
os: linux
dist: trusty
sudo: required
env:
global:
- HYDRA_LAUNCHER=fork
matrix:
- MPI=mpich
- MPI=openmpi
matrix:
include:
- os: osx
env: MPI=mpich PY=2
language: generic
python: 2
- os: osx
osx_image: xcode8
env: MPI=openmpi PY=2
language: generic
python: 2
- os: osx
env: MPI=mpich PY=3
language: generic
python: 3
- os: osx
osx_image: xcode8
env: MPI=openmpi PY=3
language: generic
python: 3
- python: pypy2.7-5.8.0
env: MPI=mpich
- python: pypy2.7-5.8.0
env: MPI=openmpi
- python: pypy3.5-5.8.0
env: MPI=mpich
- python: pypy3.5-5.8.0
env: MPI=openmpi
allow_failures:
- python: pypy2.7-5.8.0
env: MPI=mpich
- python: pypy2.7-5.8.0
env: MPI=openmpi
- python: pypy3.5-5.8.0
env: MPI=mpich
- python: pypy3.5-5.8.0
env: MPI=openmpi
branches:
only:
- master
- maint
git:
depth: 3
cache:
apt: true
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install $MPI; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$PY" == "3" ]]; then brew install python3; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip$PY install numpy; fi
- sh conf/ci/travis-ci/install-mpi.sh $MPI
- pip$PY install Cython
- cython --version
install:
- pip$PY -vvv install .
before_script:
- if [[ "$MPI" == "mpich" ]]; then P=2; else P=5; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then P=2; fi
script:
- mpiexec -n 1 python$PY $PWD/test/runtests.py -v -f
- mpiexec -n $P python$PY $PWD/test/runtests.py -v -f
- mpiexec -n 1 python$PY $PWD/demo/futures/test_futures.py -v
- mpiexec -n $P python$PY $PWD/demo/futures/test_futures.py -v
- mpiexec -n 1 python$PY -m mpi4py.futures $PWD/demo/futures/test_futures.py -v
- mpiexec -n $P python$PY -m mpi4py.futures $PWD/demo/futures/test_futures.py -v
#notifications:
# email: false