forked from mdolab/OpenAeroStruct
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
61 lines (53 loc) · 1.63 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
sudo: false
os:
- linux
language: generic
env:
- FORTRAN= PY=2.7
- FORTRAN= PY=3.4
- FORTRAN=1 PY=2.7
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gfortran
- libblas-dev
- liblapack-dev
- libopenmpi-dev
- openmpi-bin
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.7" ]; then wget "https://repo.continuum.io/miniconda/Miniconda2-latest-$OS-x86_64.sh" -O miniconda.sh; fi
- if [ "$PY" = "3.4" ]; 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
install:
- conda install --yes python=$PY numpy scipy nose $HDF5 sphinx==1.3.1 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
- pip install coveralls
- pip install openmdao
script:
- if [ "$FORTRAN" ]; then
make;
fi
- cd ..
- export PYTHONPATH=$PYTHONPATH:$PWD
- cd -
- coverage run --source=OpenAeroStruct test_suite.py
after_success:
- coveralls