forked from DakaraOnline/dakara-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (39 loc) · 1.41 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
before_install:
- echo $LANG
- echo $LC_ALL
install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo add-apt-repository ppa:boost-latest/ppa -y
- sudo apt-get update -qq
- sudo apt-get install -y cmake libboost-filesystem1.55-dev libboost-locale1.55-dev libboost-date-time1.55-dev libboost-system1.55-dev libevent-dev
- if [ "$CXX" = "clang++" ]; then sudo apt-get install -qq libstdc++-4.8-dev; fi
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
before_script:
- mkdir build
- cd build
script: if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then cmake .. && cmake --build . ; fi
branches:
only:
- master
- coverityscan
os:
- linux
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: "adIsE5hOf8AB6+4FeCYQA4Eq3FfFZNdz7Cm7wKsfjRg6IXfGAmVwPmAOBIy8X1qASi8bWA2iZhpopM8aI9lQqospFttpvLvj+LiWN0cPHaNY6J9epkMvQLB0WcuQc6ZNFp+pT/zSxSCfIPdY8wg8qp5mNDJIyyZj9+TNdryEbaA="
addons:
coverity_scan:
project:
name: "DakaraOnline/dakara-server"
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: cmake ..
build_command: cmake --build .
branch_pattern: coverityscan