-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
60 lines (49 loc) · 2.68 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
sudo: required
dist: trusty
language: cpp
cache: ccache
compiler:
- gcc
- clang
env:
global:
- secure: "LIwNXeWbzk2YY7tj8ICDU8IxkKfxbkbX6FPzEA2u66K9FwpXgZALPAFYDeAHRrxq3h8Ta9LfwLxiZYbuwhs3ZwLwevOWEBGfsySlAIU/maALevr0P8nHEY354f4PCkF4ZmQZy+72aGNa+kXeer1QQIpUPLhhACxFB+fqcfFwFTiQQk0qj4/sCHlS/awXrP0YjtIOW9IJm4fLrIaLDZgxIXlBR5Fova8ciNyS7QRJJb8qz15RVjqr6ydD6b+E00FKZ8bZqPKi/MkOmvcQMbjr8lafR5LowybBmfBswTfFHjv34NmOqlqtEFOgI3KNqbehL74D+iObDTu+rvskj49WWpCIzQOQ9mzqteWF6rC/w8fMAdSw87axrmhWRp6b818Q+z4WhKhYjtZchyu8Sc+z7E3nc00fw1HqYU5JLZjOiX3yjwiLKcjtI7nvVaajKA/TT9L4g7j/ZehAbhvmN/sDqpsFncVtYsWQAfdGSVkImtAMrRprAFtbMAk+4fMCQKT/Gqdo/20J2vhoM2yJSKEMEeXqK7o2MaRL0wiytjcaTG+TQiWL3Pb4Q+xwVZ0E3D+I1WquSpgP3qxiv02DbXJyvb+fEn7OjXWjW6Z0Jqda5+6ewTH+NW9D81R8udSAlEhbj85K6sVYYRHQ9QBQ70Q0MZelMDHWmAh28xWOr4H+3xo="
before_install:
- echo -n | openssl s_client -connect https://scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
- sudo add-apt-repository -y ppa:zoogie/sdl2-snapshots
- sudo add-apt-repository -y ppa:george-edison55/cmake-3.x
- sudo add-apt-repository -y ppa:h-rayflood/llvm
#g++4.9
- if [ "$CXX" = "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
#clang 4.0
- if [ "$CXX" == "clang++" ]; then wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -; fi
- if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-4.0 main"; fi
- sudo apt-get update -qq
- 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 apt-get install -y libsqlite3-dev
- sudo apt-get install -y libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev
- sudo apt-get install -y cmake cmake-data
#g++6
- if [ "$CXX" = "g++" ]; then sudo apt-get install -y g++-6; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-6" CC="gcc-6"; fi
#clang 4.0
- if [ "$CXX" == "clang++" ]; then sudo apt-get install -y clang-4.0; fi
- if [ "$CXX" == "clang++" ]; then export CXX="clang++-4.0"; fi
script:
- mkdir -p build
- cd build
- cmake -DCMAKE_BUILD_TYPE=travis ..
- make
- make check
after_success:
- bash <(curl -s https://codecov.io/bash)
addons:
coverity_scan:
project:
name: "LiquidityC/flat"
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: "mkdir -p build; cd build; cmake ..; make clean"
build_command: "make"
branch_pattern: coverity_scan