forked from OpenMDAO/library_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
81 lines (68 loc) · 1.9 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
branches:
only:
- master
sudo: false
os:
- linux
env:
- PY=2.7
- PY=3.6 UPLOAD_DOCS=1
language: generic
addons:
apt:
sources:
- ubuntu-toolchain-r-tests
packages:
- gfortran
- libblas-dev
- liblapack-dev
- libopenmpi-dev
- openmpi-bin
before_install:
- if [ "$PY" = "2.7" ]; then wget "https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh" -O miniconda.sh; fi
- if [ "$PY" = "3.6" ]; then wget "https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh" -O miniconda.sh; fi
- chmod +x miniconda.sh;
- ./miniconda.sh -b -p /home/travis/miniconda;
- export PATH=/home/travis/miniconda/bin:$PATH;
- if [ "$TRAVIS_REPO_SLUG" = "your-org/your_project" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
MASTER_BUILD=1;
fi
install:
- conda install --yes python=$PY numpy scipy nose sphinx mock swig pip;
- pip install --upgrade pip
- sudo apt-get install gfortran
- pip install numpy==1.14.1
- pip install scipy==1.0.0
- pip install mpi4py
- pip install matplotlib
- pip install nose
- pip install networkx
- pip install testflo
- pip install pyyaml
- pip install coveralls
- pip install --user travis-sphinx;
# install pyoptsparse
- git clone https://github.com/OpenMDAO/pyoptsparse.git;
- cd pyoptsparse;
- python setup.py install;
- cd ..;
# install MBI
- git clone https://github.com/OpenMDAO/MBI.git;
- cd MBI;
- python setup.py build install;
- cd ..;
# install OpenMDAO in developer mode so we have access to its sphinx extensions
- git clone https://github.com/OpenMDAO/OpenMDAO.git;
- cd OpenMDAO;
- pip install -e .;
- cd ..;
# install your project itself in developer mode.
- pip install -e .;
script:
- testflo -n 1 your_project --pre_announce --coverage --coverpkg your_project;
- travis-sphinx build --source=your_project/docs;
after_success:
- if [ "$MASTER_BUILD" ] && [ "$UPLOAD_DOCS" ]; then
travis-sphinx deploy;
fi
- coveralls;