pvpgn-server/.travis.yml
2018-05-06 12:42:31 -07:00

56 lines
1.2 KiB
YAML

sudo: required
dist: trusty
language: cpp
os: linux
compiler: gcc
branches:
only:
- master
- coverity_scan
env:
global:
# COVERITY_SCAN_TOKEN
- secure: "U50+BcF3DczR+srgLGoMJ53+IRU+tlg/eW0XfNL3dxCp0FzZqMaM7FpENEaiqIOc/YQ2/x40aAufcHBbevY8qeWms36YtryRlQ7t8kWhFNmGNH6qalwROQWaWd3BcyZds3JIEq3qdbZTsCZ5S0up3v5BAsBjRSThlom9/o4jnWA="
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'ppa:george-edison55/cmake-3.x'
packages:
- gcc-5
- g++-5
- zlib1g-dev
- build-essential
- libmysqlclient-dev
- liblua5.1-0-dev
- cmake
coverity_scan:
project:
name: pvpgn/pvpgn-server
version: 1.99.7.1.1
description: Player vs Player Gaming Network (PvPGN)
build_command_prepend: mkdir build && cd build && cmake -D WITH_MYSQL=true -D WITH_LUA=true ../
build_command: make
branch_pattern: coverity_scan
before_install:
- export CXX="g++-5" CC="gcc-5"
before_script:
- mkdir build
- cd build
- cmake -D WITH_MYSQL=true -D WITH_LUA=true ../
script:
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then
make;
fi
after_script:
- sudo make install
- sudo make uninstall