forked from thearn/pandemic
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
59 lines (47 loc) · 1.45 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
branches:
only:
- master
os:
- linux
env:
- PY=3.7
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
packages:
- gfortran
- libblas-dev
- liblapack-dev
- libopenmpi-dev
- openmpi-bin
install:
- |
cd ..
echo ">>> Building python environment";
echo " >> Installing conda";
echo " > Downloading miniconda";
wget "https://repo.anaconda.com/miniconda/Miniconda${PY:0:1}-latest-Linux-x86_64.sh" -O miniconda.sh;
chmod +x miniconda.sh;
echo " > Installing miniconda";
./miniconda.sh -b -p $HOME/miniconda;
export PATH=$HOME/miniconda/bin:$PATH;
echo " >> Creating conda environment";
conda create --yes -n PY$PY python=$PY;
source $HOME/miniconda/bin/activate PY$PY;
echo " >> Installing non-pure Python dependencies from conda";
conda install --yes numpy=$NUMPY scipy=$SCIPY cython swig matplotlib;
cd pandemic/;
ls -ltr;
chmod 755 ./build_pyoptsparse_ipopt.sh; ./build_pyoptsparse_ipopt.sh;
pip install --upgrade pip;
- python -m pip install git+https://github.com/OpenMDAO/dymos.git --user;
- python -m pip install git+https://github.com/OpenMDAO/OpenMDAO.git --user;
- python -m pip install git+https://github.com/OpenMDAO/testflo.git --user;
script:
- pwd;
- ls -ltr;
- cd pandemic/;
- export LD_LIBRARY_PATH=/home/travis/ipopt/lib
- testflo -n 1 --timeout=120 --show_skipped;