Skip to content

Commit 780ce8f

Browse files
committed
[Travis] Add minimal scripts
1 parent a08b916 commit 780ce8f

File tree

3 files changed

+64
-0
lines changed

3 files changed

+64
-0
lines changed

.travis.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
language: generic
2+
python:
3+
- "2.7"
4+
sudo: required
5+
dist: trusty
6+
compiler:
7+
- gcc
8+
# - clang
9+
env:
10+
global:
11+
- secure: "SnIBG/xLIHX3CSvUbqqsX8xTVqIqQ7fFS6HWO6KZQVBsT6yugTwYHbyhNiU531JejYJ/I3ZrDhXfYH3qFZiYxnH1sifvwV+fnTtMXpPN7qPZwIymkjcmm6gJF51e0C7VOfUbvKFv0ngwj+ul21rgZSMuoEvxPK0WxtE3/ZSfn9c="
12+
- APT_DEPENDENCIES="doxygen libeigen3-dev "
13+
- DEBSIGN_KEYID=5AE5CD75
14+
- CC=gcc
15+
- DO_COVERAGE_ON_BRANCH="master;release"
16+
- DO_CPPCHECK_ON_BRANCH=""
17+
- DO_INSTALL_DOC_EXCEPT_ON_BRANCH=""
18+
matrix:
19+
- BUILDTYPE=Release
20+
- BUILDTYPE=Debug
21+
notifications:
22+
email:
23+
24+
branches:
25+
only:
26+
- master
27+
- debian
28+
- devel
29+
matrix:
30+
allow_failures:
31+
- compiler:
32+
before_install: ./travis_custom/custom_before_install
33+
install:
34+
- pip install --user coveralls
35+
- pip install --user numpy
36+
script:
37+
- export CMAKE_ADDITIONAL_OPTIONS="-DCMAKE_BUILD_TYPE=${BUILDTYPE}"
38+
- sudo free -m -t
39+
- ./.travis/run ../travis_custom/custom_build
40+
after_failure: ./.travis/run after_failure
41+
after_success:
42+
- ./.travis/run after_success
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# Setup environment variables.
5+
export APT_DEPENDENCIES="doxygen libboost-test-dev libboost-python-dev libeigen3-dev python2.7-dev python-numpy"
6+
7+
# When this script is called the current directory is ./custom_travis
8+
. ./.travis/run ../.travis/before_install

travis_custom/custom_build

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# Setup environment variables.
5+
export CMAKE_ADDITIONAL_OPTIONS=" ${CMAKE_ADDITIONAL_OPTIONS} -DBUILD_BENCHMARK=\"ON\" -DBUILD_UNIT_TESTS=\"ON\" -DCMAKE_CXX_FLAGS=-DBOOST_SYSTEM_NO_DEPRECATED"
6+
if [[ ";${DO_INSTALL_DOC_EXCEPT_ON_BRANCH};" == *";${CI_BRANCH};"* ]]; then
7+
export CMAKE_ADDITIONAL_OPTIONS=" ${CMAKE_ADDITIONAL_OPTIONS} -DINSTALL_DOCUMENTATION=\"OFF\""
8+
else
9+
export CMAKE_ADDITIONAL_OPTIONS=" ${CMAKE_ADDITIONAL_OPTIONS} -DINSTALL_DOCUMENTATION=\"ON\""
10+
fi
11+
12+
# Setup environment variables.
13+
. ./.travis/run ../.travis/build
14+

0 commit comments

Comments
 (0)