forked from openturns/otagrum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (37 loc) · 2.7 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
language: cpp
sudo: required
install:
- curl http://ubuntu.openturns.org/openturns.org-repo.key | sudo apt-key add -
- echo deb http://ubuntu.openturns.org trusty main | sudo tee /etc/apt/sources.list.d/openturns.list
- sudo apt-get update
- sudo apt-get -y install libopenturns-dev python-openturns cmake gfortran swig texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra python-matplotlib pandoc graphviz
- sudo rm -r /opt/python/*
- pip install sphinx numpydoc nbsphinx jupyter_client "Tornado<5" "ipython<7" matplotlib ipykernel pydotplus --user --upgrade
- curl -L https://github.com/swig/swig/archive/rel-3.0.12.tar.gz | tar xz && cd swig-rel-3.0.12 && ./autogen.sh && ./configure --without-alllang && make -j2 && sudo make install && cd -
- git clone --depth 1 https://gitlab.com/agrumery/aGrUM.git && cd aGrUM && cmake -DUSE_NANODBC=OFF -DSWIG_EXECUTABLE=/usr/local/bin/swig . && make -j2 && sudo make install && cd -
script:
- cmake -DCMAKE_INSTALL_PREFIX=~/.local
-DCMAKE_CXX_FLAGS="-Wall -D_GLIBCXX_ASSERTIONS"
-DSPHINX_EXECUTABLE=~/.local/bin/sphinx-build
-DSWIG_EXECUTABLE=/usr/local/bin/swig
.
- make install -j2 && make tests -j2 && ctest -j2 --output-on-failure --timeout 60
after_success:
- test "$TRAVIS_PULL_REQUEST" = "false" -a "$TRAVIS_BRANCH" = "master" || exit 0
- git clone --depth 1 https://${GH_TOKEN}@github.com/openturns/openturns.github.io.git
- PROJECT_REPONAME=`echo "${TRAVIS_REPO_SLUG}" | cut -d "/" -f 2`
- if test -n "${TRAVIS_TAG}"; then
TRAVIS_BRANCH=${TRAVIS_TAG:1};
fi
- mkdir -p openturns.github.io/${PROJECT_REPONAME}/${TRAVIS_BRANCH}
- cp -r ~/.local/share/${PROJECT_REPONAME}/doc/html/* openturns.github.io/${PROJECT_REPONAME}/${TRAVIS_BRANCH}
- cd openturns.github.io
- touch .nojekyll
- git config user.email "support@travis-ci.com"
- git config user.name "Travis CI"
- git add -A .
- git commit -a -m "Travis build ${PROJECT_REPONAME} ${TRAVIS_BUILD_NUMBER}"
- git push --quiet origin master > /dev/null 2>&1
env:
global:
secure: "sKXLbNbB5OoqCaiIRIMVrDZOjfnVkvepqZBxctG65wd8TFmzkhQ8gAq1J1zmQGShlBUEoNQM/vULLigbHb9GTUezu8PI+dCSmWOjDP9766V+1i9PMLZAdgMTyIRzO/zEt6nFBjh9BUmgVIVTzNZqgCYKtCifYIUMLuuo030iXTrWSSlLMNzzIGQfJOtTQYDRFUd/ld/UAv+nYpNAMu7RwsYhU/McP7YsCP6dkVtnNKpublbD4t9X5nowvF3G514yMUmI9Wu2HwRoEbMEU1yd1IosYE9+uULa02+sZba3a2OmxY3kb3gpfPd1QivoAaDkR5iHsQ0gx2/s4nPmlQxN3gjFZcT4Q6xd6KSeLJyGb4UZovGw9PBWk+XVLMm9oulZZ4bS7QJj6pmlDrtF2Cx62UsEJx+Qs7amCgIu/rhDnyLtAVSxpeh2Gos8B9ngCHmpOlkid+8fpvT70ArooQPAkoBEtsBppEGdvCQF0tm/roTLEMzw9hIgqNuBKnYXX0Yg65zhHdKnuvF3f95mctUW9B8KsJtl6H2E1DzwmYvZXsUGsNixn+Ot9vqZpvr+/KSWzeGnZjnzRiD7i8wPITXCN6n0nSsxOrFSQHaACr9hysPtBejN0U64BVMaeZEo9HVVT6z8ZAtIRJjVcfZJ6DcbKJ/bHFK+peVFhNUBGuQ+3bc="