-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
49 lines (35 loc) · 918 Bytes
/
.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
language: python
python:
- "2.7"
- "3.6"
sudo: false
#virtualenv:
# system_site_packages: true
cache:
directories:
- $HOME/.cache/pip
dist: trusty
addons:
apt:
packages:
- libopenmpi-dev
- openmpi-bin
#- libhdf5-openmpi-dev
- libhdf5-serial-dev
# Python stuff
# (for discovering these packages set in virtualenv: system_site_packages: true)
- python-numpy
# Need newer version of mpi4py (at least 1.3.1), therefore need to install this with pip later
#- python-mpi4py
- python-h5py
before_install:
- pip install mpi4py
install:
# Install h5writer
- cd $HOME/build/mhantke/h5writer
- python setup.py install
script:
# Test examples
- python -c "import mpi4py; print(mpi4py.__version__)"
- cd $HOME/build/mhantke/h5writer/examples; python test.py
- cd $HOME/build/mhantke/h5writer/examples; mpirun -n 6 python test.py