forked from coolchess123/tceccutechess
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
executable file
·56 lines (49 loc) · 2.57 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
language: cpp
compiler:
- gcc
- clang
os: linux
sudo: required
dist: trusty
env:
matrix:
- QT_BASE=57
- QT_BASE=58
- QT_BASE=59
- QT_BASE=510
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" = "57" ]; then sudo add-apt-repository ppa:beineri/opt-qt571-trusty -y; fi
- if [ "$QT_BASE" = "58" ]; then sudo add-apt-repository ppa:beineri/opt-qt58-trusty -y; fi
- if [ "$QT_BASE" = "59" ]; then sudo add-apt-repository ppa:beineri/opt-qt594-trusty -y; fi
- if [ "$QT_BASE" = "510" ]; then sudo add-apt-repository ppa:beineri/opt-qt-5.10.1-trusty -y; fi
- sudo apt-get update -qq
install:
- sudo apt-get install -yqq qt${QT_BASE}base qt${QT_BASE}svg; 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 &&
(cd chessboard; ./tst_board) &&
(cd mersenne; ./tst_mersenne) &&
(cd sprt; ./tst_sprt) &&
(cd tournamentplayer; ./tst_tournamentplayer) &&
(cd tournamentpair; ./tst_tournamentpair) &&
(cd polyglotbook; ./tst_polyglotbook)
- cd ${TRAVIS_BUILD_DIR}/projects/lib/components/json/tests/ && qmake "QMAKE_CXX=$CXX" "QMAKE_CC=$CC" && make &&
(cd parser; ./tst_jsonparser) &&
(cd serializer; ./tst_jsonserializer)
addons:
coverity_scan:
project:
name: cutechess/cutechess
description: Build submitted via Travis CI
notification_email: [email protected]
build_command_prepend: qmake
build_command: make
branch_pattern: coverity_scan