forked from mas-bandwidth/yojimbo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (48 loc) · 2.19 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
sudo: required
dist: trusty
language: cpp
compiler:
- clang
- gcc
install:
- wget https://github.com/premake/premake-core/releases/download/v5.0.0-alpha13/premake-5.0.0-alpha13-linux.tar.gz -O /tmp/premake5.tar.gz
- tar -zxvf /tmp/premake5.tar.gz
- wget https://github.com/jedisct1/libsodium/releases/download/1.0.16/libsodium-1.0.16.tar.gz -O /tmp/libsodium.tar.gz
- pushd .
- cd /tmp
- tar -zxvf /tmp/libsodium.tar.gz
- cd libsodium-*
- ./configure
- make
- sudo make install
- popd
- wget https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.13.0.tar.gz -O /tmp/mbedtls.tar.gz
- pushd .
- cd /tmp
- tar -zxvf mbedtls.tar.gz
- cd mbedtls-mbedtls-*
- cmake .
- make
- sudo make install
- popd
- sudo ldconfig
script:
- ./premake5 gmake
- make clean && make all config=debug_x64 && ./bin/test
- make clean && make all config=release_x64 && ./bin/test
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: "hhPY+xG2i6EH8DIdfh1S6qKRGqiL7+fQX+xBm941OlZCLdyHCyVIVwvBqADVcCyVtcJsEEbzS1CzVQabFg2fqrJihPgpajYDcVd/oGvQOGGr/aiO9eSaGWwH/G5uwei9YP+K3RSwEtb6LUAHPyIPvvN+Ib3i59c6mra4Wpl5jyVz+AHE9bMKuUv6jbvFczSK9cjSMFu0rc1HecTGyCVgRxpPSRv8ozgMOkTowTrHbDYyqsFijfB7+9zdomSagfQlAvAMqy1uRrNxvcCD/yNjw45WL6/Mukn+SXr5wKmPpu6p+L6lD4zc3K7XJ9l76biZ1BMVdt9G5QZJWagSIXRsrc91DHFk1VMxeKKqo+uwiAPuZ1tyeOFcKTOzFfdzGUe/V+vuvfGu3P/e6yHTe4HFxO/rKP8UO8GHTD3cG66Jx9o/Up7Vrc/PKP+/AQiDw/2SkF1NyKEwSivNbtQPBNt2XZ+fXsZGiwiur/XO4el02cDmxIxC1q07xL0TNtHRKfv+VxmDExkDPU2UhJUlXK8TF+YH6aulKlZb3c1lfY7m7VHNhFtv2J29UpodxapObedmbbvUCry7JM1fMBb+Ap9WXyS45gPqunLI4fp8PSpTqnOhbiKtOqqEVT8mXRXL8I4kMBC6HiSJEpFfa5RIFLRnC+1OsxdXsx568gA/3jA+lKk="
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-
addons:
coverity_scan:
project:
name: "networkprotocol/yojimbo"
description: "Build submitted via Travis CI"
notification_email: glenn.fiedler@gmail.com
build_command_prepend: "./premake5 gmake; make clean"
build_command: "make -j 4"
branch_pattern: coverity_scan