-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
32 lines (26 loc) · 928 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
language: python
sudo: required
dist: trusty
python:
- 2.7
- 3.5
# command to install dependencies
before_install:
- sudo add-apt-repository http://dl.openfoam.org/ubuntu
- sudo sh -c "wget -O - http://dl.openfoam.org/gpg.key | apt-key add -"
- sudo apt-get update
- sudo apt-get install liblapack-dev gfortran openmpi-bin libopenmpi-dev python-numpy libhdf5-openmpi-dev python-mpi4py
- sudo apt-get -y install openfoam4
- source /opt/openfoam4/etc/bashrc
install:
- travis_wait 30 pip install -r requirements.txt
- export CC=mpicc
- git clone https://github.com/h5py/h5py.git
- cd h5py && python setup.py configure --mpi && python setup.py build && python setup.py install && cd .. && rm -rf h5py
- python setup.py install
# command to run tests
script:
- make
- py.test --doctest-modules -v --cov fds --cov-report term-missing
after_success:
- coveralls