forked from amusecode/amuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
91 lines (86 loc) · 2.27 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
codecov: true
compiler: gcc
env:
global:
- OMPI_MCA_rmaps_base_oversubscribe=true
matrix:
allow_failures:
- name: "openmpi py37 linux"
- name: "openmpi py37 macos"
include:
- name: "openmpi py37 linux"
os: linux
dist: bionic
language: python
python: 3.7
env: TOXENV=py37
addons:
apt:
packages:
- build-essential
- python3-dev
- gfortran
- libgsl0-dev
- cmake
- libfftw3-3
- libfftw3-dev
- libmpfr6
- libmpfr-dev
- libhdf5-serial-dev
- hdf5-tools
- libopenmpi-dev
- openmpi-bin
- name: "mpich py37 linux"
os: linux
dist: bionic
language: python
python: 3.7
env: TOXENV=py37
addons:
apt:
packages:
- build-essential
- python3-dev
- gfortran
- libgsl0-dev
- cmake
- libfftw3-3
- libfftw3-dev
- libmpfr6
- libmpfr-dev
- libhdf5-serial-dev
- hdf5-tools
- libmpich-dev
- mpich
- name: "openmpi py37 macos"
os: osx
osx_image: xcode10.3
env:
- TOXENV=py37
- MINICONDA_OSX="MacOSX-x86_64"
- MINICONDA_PYTHON_MAJOR=3
- MINICONDA_VERSION="py37_4.8.2"
- CXX=clang++
- CC=clang
- LDFLAGS="-Wl,-rpath,$CONDA_PREFIX/lib"
- CONDA_OPTIONS="-c conda-forge -c anaconda"
- CONDA_PACKAGES="gfortran_osx-64"
- CONDA_PACKAGES="${CONDA_PACKAGES} openmpi"
before_install:
- export MINICONDA_OS=$MINICONDA_OSX
- wget "http://repo.continuum.io/miniconda/Miniconda$MINICONDA_PYTHON_MAJOR-$MINICONDA_VERSION-$MINICONDA_OS.sh" -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda;
- export CONDA_PREFIX=$HOME/miniconda;
- export PATH="$CONDA_PREFIX/bin:$PATH";
- hash -r;
- conda update -yq conda;
- conda install -y ${CONDA_OPTIONS} ${CONDA_PACKAGES};
install:
- pip install numpy scipy matplotlib docutils mpi4py pytest
- pip install tox
virtualenv:
system_site_packages: false
script:
- tox
after_success:
- codecov