Permalink
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (48 sloc) 2.2 KB
sudo: required
dist: trusty
language: cpp
compiler:
- clang
- gcc
install:
- wget https://github.com/premake/premake-core/releases/download/v5.0.0-alpha10/premake-5.0.0-alpha10-linux.tar.gz -O /tmp/premake5.tar.gz
- tar -zxvf /tmp/premake5.tar.gz
- wget https://github.com/jedisct1/libsodium/releases/download/1.0.10/libsodium-1.0.10.tar.gz -O /tmp/libsodium.tar.gz
- pushd .
- cd /tmp
- tar -zxvf /tmp/libsodium.tar.gz
- cd libsodium-1.0.10
- ./configure
- make
- sudo make install
- popd
- wget https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.1.5.tar.gz -O /tmp/mbedtls.tar.gz
- pushd .
- cd /tmp
- tar -zxvf mbedtls.tar.gz
- cd mbedtls-mbedtls-2.1.5
- 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