forked from gismo/gismo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
105 lines (85 loc) · 3.66 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# G+smo Travis-CI YML script
#
# Author: Angelos Mantzaflaris 2012-2016
#
#sudo: required
sudo: false
language: cpp
notifications:
email: false
branches:
only:
- stable
- coverity_scan
- ci_test
os: linux # unless specified otherwise
dist: trusty
env:
global:
- MAKEFLAGS=-j3
- secure: "JU9XIrFb6n1IqFt5hxNldvLVYLStfippytPsUWP5OxSjlwh3KtZ1kYLOzjGy6BHgVLCk/N7rWBKPeYS/nA4bKrcTC/uFml1NU58uQQMWsLaI17XRV96tWOhfT4FCfD+3RW9B0IO9T8WAUggC1aiP/Ft0qUxdb8yQN3QNQpU7bQJtDbPhfsWI81fMEEAeeqHjHb3bG9LXuFdCQN378b0t6fLs+48G4ECmwD48UAmFfI4Ral5a89dOR3yi2eQNtDoBNjLAC/oaimpmK//V/UYlHkZDsg+K0W04UcDgh173Pa/JAlx+aROICkmhs+n8YndB3qsXgT0iI/yiAaeUgkssjBh3Cs/r21C2tv2S7hs9nfiIsCc8bToxPg1QMCMENvjaNt5ZKmeCsqSaHQkS7RhiNnSvDS0qw/q89dpApcxfslDP72GTvOruqGdruQfcenBaJpdqMgijfIY9lBlsmwp0YX7Knq0zbSjL7CaDF6TpIPLRIt2njcfTr+IzVjIoS/Yv8rAFMCBPkbZG61E5GA6d77R+gzSHjYe0SAm+1HHV4MfvS4kLrfRbAR0k7mArOXlm2f87rCaf5rX1TBt7kaJOT2nmkeFbm8PkvbG05Iv2Hx2yXC4PvK0o/riy3uI6CipK84sO066detTbHRfMvMbVjNl/68VuFcGeNaa6YyshpVE="
addons:
coverity_scan:
project:
name: "filiatra/gismo"
description: "Build submitted via Travis CI"
notification_email: filiatra@gmail.com
build_command_prepend: "cmake . -DCMAKE_BUILD_TYPE=Release"
build_command: "make -j 4"
branch_pattern: coverity_scan
###################
matrix:
fast_finish: true
include:
- os: osx
if: branch = stable OR branch = cooverity_scan
osx_image: xcode9.1 # xcode8.3
compiler: clang
env:
- COMPILER=clang++
- BUILD_TYPE=Release
- os: osx
if: branch = ci_test
osx_image: xcode9.1 # xcode8.3
compiler: gcc
env:
- COMPILER=clang++
- BUILD_TYPE=Release
- os: osx
if: branch = ci_test
osx_image: xcode8.3
compiler: clang
env:
- COMPILER=clang++
- BUILD_TYPE=RelWithDebInfo
- env: COMPILER=g++-6 BUILD_TYPE=Release
if: branch = ci_test OR branch = cooverity_scan
addons: &gcc6
apt:
packages: g++-6
sources:
- ubuntu-toolchain-r-test
before_install:
- pip install --user cpp-coveralls
before_script:
- mkdir build; cd build; cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DGISMO_WITH_ONURBS=ON -DGISMO_BUILD_UNITTESTS=ON -DSITE="$TRAVIS_BRANCH/travis-cov" #-DGISMO_WITH_IPOPT=ON
after_success:
- coveralls --exclude lib --exclude tests --gcov-options '\-lp'
- env: COMPILER=g++-5 BUILD_TYPE=Release
if: branch = ci_test
addons: &gcc5
apt:
packages: g++-5
sources:
- ubuntu-toolchain-r-test
## .. artifacts ?
##################
before_install:
- test $TRAVIS_BRANCH != coverity_scan -o ${TRAVIS_JOB_NUMBER##*.} = 1 || exit 0
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update>/dev/null; brew install valgrind; fi #--HEAD
#- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
before_script:
- mkdir build; cd build; cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DGISMO_WITH_ONURBS=ON -DGISMO_BUILD_UNITTESTS=ON -DSITE="$TRAVIS_PULL_REQUEST-$TRAVIS_PULL_REQUEST_BRANCH [travis]" #-DGISMO_WITH_IPOPT=ON
script:
- if [ -e "cov-int/scm_log.txt" ]; then cat cov-int/scm_log.txt; fi
- if [ $TRAVIS_BRANCH == stable ]; then ctest $MAKEFLAGS --output-on-failure -C %BUILD_TYPE% -D ExperimentalStart -D ExperimentalConfigure -D ExperimentalBuild -D ExperimentalTest -D ExperimentalSubmit; else ctest $MAKEFLAGS --output-on-failure -C %BUILD_TYPE% -D ExperimentalStart -D ExperimentalConfigure -D ExperimentalBuild -D ExperimentalTest -D ExperimentalMemCheck -D ExperimentalSubmit; fi