-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy path.travis.yml
124 lines (114 loc) · 4.03 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
os: linux
dist: xenial
language: cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- g++-7
- gfortran-7
- cmake
- libblas-dev
- liblapack-dev
- liblapacke-dev
- openmpi-bin
- libboost-all-dev
- libopenmpi-dev
- libpetsc3.6
- libpetsc3.6.2-dev
- metis
env:
global:
- C_COMPILER="gcc-7"
- CXX_COMPILER="g++-7"
- Fortran_COMPILER="gfortran-7"
jobs:
include:
- if: branch = coverity
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gfortran
- cmake
- libblas-dev
- liblapack-dev
- liblapacke-dev
- openmpi-bin
- libboost-all-dev
- libopenmpi-dev
- libpetsc3.6
- libpetsc3.6.2-dev
- metis
coverity_scan:
project:
name: optimad/bitpit
description: "bitpit :: Open source library for scientific High Performance Computing"
notification_email: coverity@optimad.it
build_command_prepend: >
mkdir build;
cd build;
cmake -DCMAKE_C_COMPILER=${C_COMPILER} \
-DCMAKE_CXX_COMPILER=${CXX_COMPILER} \
-DCMAKE_Fortran_COMPILER=${Fortran_COMPILER} \
-DPETSC_DIR=/usr/lib/petscdir/3.6.2/x86_64-linux-gnu-real \
-DPETSC_ARCH= \
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-DBITPIT_ENABLE_MPI=${BITPIT_ENABLE_MPI} \
-DBUILD_TESTING=False \
..;
build_command: >
make -j2
branch_pattern: coverity
env:
- C_COMPILER="gcc"
- CXX_COMPILER="g++"
- Fortran_COMPILER="gfortran"
- BUILD_TYPE="Debug" BITPIT_ENABLE_MPI="True"
# Encrypted COVERITY_SCAN_TOKEN
- secure: "q4Pdqc6eiar7cxgr+iqmED+/vDRq+yE7kzY0GM/gFUpuYMVEh7Rox4TWcPDadLAWsFXIQhDkomoWVC6ButyCqtqa41WDG7aeo73bRG10MV4n5uMzPasLE9KS1KQBmKHN/nofuX6S0IR8EsTOymdtXV4Wsc8T0uEOn/FDsVa+i4o2UHQDmyzPJ4yXnYh/98Q3umVC5nqrTfn43oqHUIedYqPv8LQLZTQBYhY2I4q1J/kTntyele79Zt1KmCdsQYZlMLZ5kT2/aVZpQ4nlvpC61BMCmKBvdEEEP13W5FpBF7KmZqOZqRZLbIxkP1UMOrsjbPXOD1c9INYmII+ouSh5DLiBpHFNTFp854s21Oa7A93igtYM5BLIGsKCTCyXdWi59WGKGY4jtSMKM0XnRzQ/Wpd9fEFyaokebJx8YuWs/JUPSDovoifmbjo9hwNQNeomSKMEieqFXRAqX8qEQ1MPxxP+Pdku8/CwJ15yZmNSA/gh/rbrFykC5btu2FHeFxaXe1HYF8EOEi8nWlseOC3obdBdzIUM8zoOCQroyuom+QWEuOu1AGwSdwMS2K7xKDfrYQSbjb8KkfSb+s6xAcQZHKiBLgX4eeYWabUbFlCJl4hGyQXjGZpCiaY8q7GMdgslgPE4e6ALl6BnmLCupBsdMDvSP9YB5PUPaPeK6B33SrM="
before_install:
- echo "Building branch ${TRAVIS_BRANCH}..."
- if [ ${TRAVIS_BRANCH} != "coverity" ]; then
echo "Coverity build... No";
else
echo "Coverity build... Yes";
fi
- sudo apt-get update
- test -n $CC && unset CC
- test -n $CXX && unset CXX
- test -n $FC && unset FC
- if [ ${TRAVIS_BRANCH} == "coverity" ]; then
echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-;
fi
before_script:
- if [ ${TRAVIS_BRANCH} != "coverity" ]; then
mkdir build;
cd build;
cmake
-DCMAKE_C_COMPILER=${C_COMPILER}
-DCMAKE_CXX_COMPILER=${CXX_COMPILER}
-DCMAKE_Fortran_COMPILER=${Fortran_COMPILER}
-DPETSC_DIR=/usr/lib/petscdir/3.6.2/x86_64-linux-gnu-real
-DPETSC_ARCH=
-DCMAKE_BUILD_TYPE=${BUILD_TYPE}
-DBITPIT_BUILD_EXAMPLES=True
-DBITPIT_ENABLE_MPI=${BITPIT_ENABLE_MPI}
-DBITPIT_ENABLE_UNIT_TESTS=True
-DBUILD_TESTING=True
..;
fi
script:
- if [ ${TRAVIS_BRANCH} != "coverity" ]; then
make -j2 && ctest;
fi
after_script:
# When using secret variables, the output gets filtered through a helper
# process by default. This may leed to truncated ouptut after failures.
# Waiting some seconds after the script should workaround the issue (see
# https://github.com/travis-ci/travis-ci/issues/6018).
- sleep 10