-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
76 lines (69 loc) · 3.32 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
language: cpp
sudo: required
dist: focal
addons:
apt:
packages:
- gcc-10
- g++-10
- g++
- gcc
- libstdc++-10-dev
- libpugixml-dev
- libxml2-utils
- libarchive-dev
coverity_scan:
project:
name: $TRAVIS_REPO_SLUG
version: $TRAVIS_COMMIT
description: "Build submitted via Travis CI"
notification_email: unhammer+dill@mm.st
build_command_prepend: "./autogen.sh && ./configure --enable-checker --disable-python-bindings && make clean"
build_command: "make -j4"
branch_pattern: coverity_scan
script:
# Unquoted because the .yml doesn't support arrays, but explicitly defined here at least
- scripts/travis-build ${CONFIGURE}
before_install:
- if [[ $TRAVIS_BRANCH = coverity_scan ]]; then echo "We only coverity_scan for one square of the matrix, exiting"; exit 0; fi
# We include some more configure options, but just for one square of the matrix so we don't overload poor travis:
matrix:
include:
- os: osx
compiler: clang
env: CONFIGURE="--enable-checker --enable-cgspell --enable-python-bindings"
osx_image: xcode12.2
- os: osx
compiler: gcc
env: CONFIGURE="--enable-checker --enable-cgspell --enable-python-bindings"
osx_image: xcode12.2
- os: linux
compiler: gcc
env: CONFIGURE="--enable-checker --enable-cgspell --enable-python-bindings"
- os: linux
compiler: clang
env: CONFIGURE="--enable-checker --disable-cgspell --enable-python-bindings"
- os: linux
compiler: clang
env: CONFIGURE="--enable-checker --disable-python-bindings" # gtweb-01 runs Centos7 which doesn't have python3 in normal repos
- os: linux
compiler: clang
env: CONFIGURE="--disable-checker --enable-cgspell"
- os: linux
compiler: clang
env: CONFIGURE="--disable-checker --disable-cgspell"
# This one should only run for coverity_scan (and be the only one that runs on coverity_scan):
- os: linux
compiler: clang
before_install: if [[ $TRAVIS_BRANCH = coverity_scan ]]; then echo "Running coverity_scan on this configuration …"; echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt; else exit 0; fi
env: COVERITY_SCAN=true
cache:
directories:
- $HOME/gtd-cache
- $HOME/Library/Caches/Homebrew
# Unfortunately installing g++ isn't enough, need to export CXX for it to find the compiler when gcc (why?)
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "2lUcvNAdm5QO5m2r9eZQ6TAD8qiU8S0DzntXLUBPFtWmjD6atuptMr+6mVfgjG67eIfr05Q3v9jTpkb7JzSdqeB+foju6m/9iBtDXFRHfaED3OenWrI4ovFCRy+ClbT7rfHlwUYz/DKEAK8JEcDbqMG9hO4R9BTiPGJ7I0VuQxSeuSpVsxO+2CMqmEoLhtSs7+T929kn/fvVpvmHxYpmqswU1Hbjkb0SEYqmHlrNRWn/dFhYsm9EtRoBMX2NSC5MPGg+kadGZQQdhQJx8iODes+rVsLJs2sRVIcRy8te3R0Dn5FkCZUap+ntsGa1aGQufgaUCf4gwbGMAK0Ad6Wsyf/iuZmplKzr5U5MY4JI7Tmk0SzqndHYX9xL2CdtoHDxllK3UpgqNgUspkBdIwVdEol9jT2AtSngsl9MF5Z/u/yYgTaUyEEF8hNq7JLZR/EsrMcBhWi/ClV/7T2657h31AzMzP3eUxOW8XmX0Y25g/xicMvtGeE0t7ArGmCqFpM/417E3tmhZ2D/hInsprGetSwCuU7NJUhqPo61/+EnQ3njTFV4ooqwIS+93cx42yiueAldjgeAebpmKSxkbcO8Ayj5sVAAJQTCthDiCFVYvL3AT/VdS1NAB1HbLyku/tCxOmdKIlO5+MZqKlfr2nb0G57CLTt/3ac6Hb2WmgmgUNI="