forked from cutechess/cutechess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·48 lines (41 loc) · 2.31 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
language: cpp
compiler:
- gcc
- clang
os: linux
sudo: required
dist: xenial
env:
matrix:
- QT_BASE=511
- QT_BASE=512
- QT_BASE=513
- QT_BASE=514
global:
# Coverity Scan access token
- secure: "a0D9/23/IV+404/STxfr9o0eVEp8Qx1J1KZPyKepSwdky9LpmeDTt6KWtfaL4mBiGNFpIHG239LHKbjIHLouFwP9SeLottIYUe/1xO12Y2eL5uUES0SbCGwyr248s5WvT15tvkF3xHy2FLMw0lDgsLDaOiOU7STteNYlFIHEkjUTQzx5UaG5utVDwsrjPdkkyij+Z2Ztl8tXCbEeyrct5ixzJX+lhAofwE7zpKlvhD1Snf/bHh0GopYQg8nL0Cdb15uhCjwTDQuaLTT2ICr8KsllLUie1ex5zWpCu4f9vsFFWZsBfFZ3+rReHfcNzWIoJ/0YNqdNBDio+akgewW31A/yUhnIxb5RuCirDnbny++yC/ZyMJUtY0LcRWZIfqa3BCRAp/jUY0VdIbteoGQWhZergXcEQEccpJKXoALlm4KEKHnVOGLf/Ceb/exG5vv0xiCUU6RwthFpuRLVFrqkMQH/mJ7kD1N44AoGlE1ElxxiguAze8v0oCWNMEDF5LGjvifWX2i4zhsvaqmwb7atMedyTtU5Hw8s3638C+PEQ1n1anb8cYYpGlZb6G1w3mi1j186ZrL+qCdHnu6Is3zGOBK7jVMcuGE4jPKmDCA6LPl0gig72JKL5yfIkDfkAuufJXSBmNVCUbiCEA2RWAzbCWFEsymMdV14m8TQ2JtEKes="
before_install:
# run Coverity scans only once
- if [ "${TRAVIS_BRANCH}" == "coverity_scan" ] && [ ${TRAVIS_JOB_NUMBER##*.} -gt 1 ]; then exit 0; fi
- if [ "$QT_BASE" = "511" ]; then sudo add-apt-repository ppa:beineri/opt-qt-5.11.3-xenial -y; fi
- if [ "$QT_BASE" = "512" ]; then sudo add-apt-repository ppa:beineri/opt-qt-5.12.8-xenial -y; fi
- if [ "$QT_BASE" = "513" ]; then sudo add-apt-repository ppa:beineri/opt-qt-5.13.2-xenial -y; fi
- if [ "$QT_BASE" = "514" ]; then sudo add-apt-repository ppa:beineri/opt-qt-5.14.2-xenial -y; fi
- sudo apt-get update -qq
install:
- sudo apt-get install -yqq qt${QT_BASE}base qt${QT_BASE}svg mesa-common-dev libgl1-mesa-dev; source /opt/qt${QT_BASE}/bin/qt${QT_BASE}-env.sh
script:
# do not build and test the project if we're running Coverity Scan
- if [ "${TRAVIS_BRANCH}" == "coverity_scan" ]; then exit 0; fi
- qmake "QMAKE_CXX=$CXX" "QMAKE_CC=$CC" && make
- cd ${TRAVIS_BUILD_DIR}/projects/lib/tests/ && qmake "QMAKE_CXX=$CXX" "QMAKE_CC=$CC" && make && make check
- cd ${TRAVIS_BUILD_DIR}/projects/lib/components/json/tests/ && qmake "QMAKE_CXX=$CXX" "QMAKE_CC=$CC" && make && make check
addons:
coverity_scan:
project:
name: cutechess/cutechess
description: Build submitted via Travis CI
notification_email: scan_notifications@artoj.fastmail.com
build_command_prepend: qmake
build_command: make
branch_pattern: coverity_scan