-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
39 lines (36 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
language: minimal
stages:
- test
- pages
jobs:
include:
- stage: test
language: matlab
before_install:
- sudo apt-get -y install gfortran
install:
- git clone --depth 1 https://github.com/LHEEA/Nemoh.git NEMOH
- cd NEMOH
- make
- cd ..
- matlab -batch "addpath(genpath('toolbox')), savepath pathdef.m;"
- matlab -batch "installNemoh('$TRAVIS_BUILD_DIR/NEMOH/bin'), dependencyCheck;"
script:
- matlab -batch "results = runTests('reportHTML', false, 'reportPDF', false), assertSuccess(results);"
if: branch = master
- stage: pages
language: python
install:
- pip install click colorama colorclass future "sphinx==1.8.5" "sphinxcontrib-bibtex==0.4.2"
sphinx_rtd_theme sphinxcontrib-matlabdomain
- pip install git+git://github.com/SuperKogito/sphinxcontrib-pdfembed
- pip install https://github.com/H0R5E/sphinxcontrib-versioning/archive/v1.8.5_support.zip
script:
- eval "$(ssh-agent -s)"; touch .travis/key; chmod 0600 .travis/key
- openssl aes-256-cbc -d -K $encrypted_c97e05834f48_key -iv $encrypted_c97e05834f48_iv < .travis/key.enc > .travis/key
&& ssh-add .travis/key # Use && to prevent ssh-add from prompting during pull requests.
- git config --global user.email "builds@travis-ci.com"
- git config --global user.name "Travis CI"
- git remote set-url --push origin "git@github.com:$TRAVIS_REPO_SLUG"
- sphinx-versioning push -abt -e .nojekyll -e README.md docs gh-pages .
if: (branch = master AND type = push) OR tag IS present