forked from mdolab/OpenAeroStruct
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (50 loc) · 1.31 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
os:
- linux
language: generic
env:
- PY=3.7
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gfortran
- libblas-dev
- liblapack-dev
- libopenmpi-dev
- openmpi-bin
before_install:
- wget "https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh" -O miniconda.sh;
- chmod +x miniconda.sh;
- ./miniconda.sh -b -p /home/travis/miniconda;
- export PATH=/home/travis/miniconda/bin:$PATH;
install:
- conda install --yes python=$PY numpy scipy nose sphinx mock swig pip matplotlib numpydoc;
- pip install --upgrade pip;
- pip install mpi4py;
# install pyoptsparse
- git clone https://github.com/mdolab/pyoptsparse.git;
- cd pyoptsparse;
- python setup.py install;
- cd ..;
- pip install coverage;
- pip install coveralls;
- pip install testflo==1.3.6;
- export PATH=$HOME/.local/bin:$PATH;
# install openmdao and sphinx-travis
- pip install openmdao
- pip install --user travis-sphinx;
- pip install redbaron
# install openaerostruct itself
- pip install -e .;
script:
- export PYTHONPATH=$PYTHONPATH:$PWD
- testflo -n 1 openaerostruct --coverage --coverpkg openaerostruct --cover-omit \*tests/\* --cover-omit \*docs/\*;
- cd openaerostruct/docs;
- travis-sphinx build --source=.;
- cd ../..;
after_success:
- cd openaerostruct/docs;
- travis-sphinx deploy;
- cd ../..;
- coveralls;