-
Notifications
You must be signed in to change notification settings - Fork 83
/
.travis.yml
85 lines (74 loc) · 2.16 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
# whitelist
branches:
only:
- master
- /^test.*$/
sudo: false
os:
- linux
- osx
language: generic
env:
- HDF5=h5py PY=2 MPI=1
- HDF5=h5py PY=2 MPI=
- HDF5=h5py PY=3 MPI=
- HDF5= PY=2 MPI=
- HDF5= PY=3 MPI=
matrix:
exclude:
- os: osx
env: HDF5=h5py PY=2.7 MPI=1
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gfortran
- libblas-dev
- liblapack-dev
- libopenmpi-dev
- openmpi-bin
notifications:
email: false
before_install:
- OS=$(if [[ "$TRAVIS_OS_NAME" = "osx" ]]; then echo "MacOSX"; else echo "Linux"; fi)
- if [ "$OS" = "MacOSX" ] && [ "$MPI" ]; then brew install openmpi; fi
- if [ "$PY" = "2" ]; then wget "https://repo.continuum.io/miniconda/Miniconda2-latest-$OS-x86_64.sh" -O miniconda.sh; fi
- if [ "$PY" = "3" ]; then wget "https://repo.continuum.io/miniconda/Miniconda3-latest-$OS-x86_64.sh" -O miniconda.sh; fi
- chmod +x miniconda.sh
- if [ "$OS" = "Linux" ]; then
./miniconda.sh -b -p /home/travis/miniconda;
fi
- if [ "$OS" = "MacOSX" ]; then
./miniconda.sh -b -p /Users/travis/miniconda;
fi
- PATHPREFIX=$(if [[ "$TRAVIS_OS_NAME" = "osx" ]]; then echo "/Users/travis/miniconda/bin"; else echo "/home/travis/miniconda/bin"; fi)
- export PATH=$PATHPREFIX:$PATH
- export OPENMDAO_TEST_DOCS=1
#- conda update --yes conda
install:
- conda install --yes python=$PY numpy scipy nose $HDF5 sphinx mock swig
- if [ "$OS" = "Linux" ]; then
if [ "$PY" = "2.7" ]; then
pip install https://openmdao.org/dists/pyoptsparse-1.0.0-cp27-none-linux_x86_64.whl;
elif [ "$PY" = "3.4" ]; then
pip install https://openmdao.org/dists/pyoptsparse-1.0.0-py3-none-linux_x86_64.whl;
fi
fi
- if [ "$OS" = "MacOSX" ]; then
if [ "$PY" = "2.7" ]; then
pip install https://openmdao.org/dists/pyoptsparse-1.0.0-py2-none-macosx_10_5_x86_64.whl;
elif [ "$PY" = "3.4" ]; then
pip install https://openmdao.org/dists/pyoptsparse-1.0.0-cp34-none-macosx_10_5_x86_64.whl;
fi
fi
- if [ "$MPI" ]; then
pip install petsc4py
fi
- pip install testflo
- pip install coveralls
- pip install -e .
script:
- testflo . -n 1 --coverage --coverpkg openmdao
after_success:
coveralls