forked from Sphereserver/Source-X
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (38 loc) · 1.16 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
language: cpp
compiler: gcc
git:
depth: false
notifications:
email: false
branches:
only:
- coverity_scan
env:
- CMAKE_GEN="Unix Makefiles"
CMAKE_TCH_64="../src/cmake/toolchains/Linux-GNU-x86_64.cmake"
before_install:
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
install:
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7
- sudo update-alternatives --config gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- g++-7
- libmysql++-dev
coverity_scan:
project:
name: "Sphereserver/Source-X"
description: "Game server for Ultima Online"
notification_email: null@null
branch_pattern: coverity_scan
build_command_prepend: cmake -G '$CMAKE_GEN' -DCMAKE_BUILD_TYPE="Nightly" -DCMAKE_TOOLCHAIN_FILE='$CMAKE_TCH_64' ./src
build_command: make -j4
script:
- if [ $COVERITY_SCAN_BRANCH != 1 ]; then travis_terminate 0; fi
after_script:
- echo "Printing Coverity log..."
- cat cov-int/scm_log.txt