2014-04-25 18:57:00 +02:00
|
|
|
language: cpp
|
2016-06-02 22:58:04 +02:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
2014-04-25 18:57:00 +02:00
|
|
|
|
2015-08-17 17:14:29 +02:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
|
|
|
osx_image: xcode6.4
|
|
|
|
|
2014-04-25 18:57:00 +02:00
|
|
|
compiler:
|
|
|
|
- clang
|
|
|
|
- gcc
|
|
|
|
|
2015-01-18 10:28:21 +01:00
|
|
|
env:
|
|
|
|
global:
|
2015-10-03 12:16:38 +02:00
|
|
|
- secure: "Vf+FY48nip9JppMnq11105NealdErSWsoUhHo63/V3V+LKfA9guenxCp93/qoSIdSGC/sJwb0yIIMGvkTT/rxDJNh6Z+BWUTb2E0WEIIQbvTJNOSUzoq7dfF1LT61XjVjByFzcbC2xjtaBowmcAYEs1jGUUuEjYVCMmD5lY8hUg="
|
2015-10-02 18:55:18 +02:00
|
|
|
# Which Travis environment to run Coverity on
|
2015-10-03 12:16:38 +02:00
|
|
|
- coverity_scan_run_condition='"$TRAVIS_OS_NAME" = linux -a "$CC" = gcc'
|
2015-10-02 18:55:18 +02:00
|
|
|
# Test mode is for testing if it's working with Coverity. Change to true if testing, to avoid reaching the quota.
|
|
|
|
- coverity_scan_script_test_mode=false
|
2015-07-17 01:45:51 +02:00
|
|
|
|
2015-08-17 17:14:29 +02:00
|
|
|
matrix:
|
|
|
|
exclude:
|
|
|
|
- os: osx
|
|
|
|
compiler: gcc
|
|
|
|
|
2014-07-09 21:16:17 +02:00
|
|
|
git:
|
|
|
|
submodules: false
|
|
|
|
|
2014-04-25 18:57:00 +02:00
|
|
|
before_install:
|
2015-07-11 02:15:07 +02:00
|
|
|
# shutdown services on Travis, which may have a memory impact
|
2015-08-17 17:14:29 +02:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
2016-06-02 22:58:04 +02:00
|
|
|
sudo apt-get install -y libwxgtk3.0-dev;
|
2015-08-17 17:14:29 +02:00
|
|
|
fi;
|
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$CXX" = "g++" ]; then
|
2016-01-03 19:31:00 +01:00
|
|
|
export CXX="g++-5" CC="gcc-5" CXXFLAGS="-Wno-format-security";
|
2015-07-17 02:25:47 +02:00
|
|
|
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01';
|
2015-04-09 18:53:10 +02:00
|
|
|
fi;
|
|
|
|
# Add coverall for C++ so coverall.io could be triggered. Even it should be --coverage and gcov.
|
2015-08-17 17:14:29 +02:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
2015-10-03 15:16:05 +02:00
|
|
|
sudo pip install cpp-coveralls requests[security];
|
2015-08-17 17:14:29 +02:00
|
|
|
else
|
2015-08-19 16:24:57 +02:00
|
|
|
brew update; brew update;
|
|
|
|
brew install glew wxwidgets llvm36;
|
2015-08-17 17:14:29 +02:00
|
|
|
fi;
|
2014-04-25 18:57:00 +02:00
|
|
|
|
|
|
|
before_script:
|
2016-07-11 16:26:47 +02:00
|
|
|
- git submodule update --init rsx_program_decompiler asmjit 3rdparty/ffmpeg 3rdparty/pugixml 3rdparty/GSL 3rdparty/libpng Utilities/yaml-cpp
|
2014-04-25 18:57:00 +02:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2015-08-19 16:24:57 +02:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cmake ..; else cmake .. -DLLVM_DIR=/usr/local/opt/llvm36/lib/llvm-3.6/share/llvm/cmake; fi
|
2014-04-25 18:57:00 +02:00
|
|
|
|
2015-10-02 18:55:18 +02:00
|
|
|
script:
|
|
|
|
# Add a command to show all the variables. May be useful for debugging Travis.
|
|
|
|
# - echo "--Shell Export Lists START--" ; export -p; echo "--Shell Export Lists STOP--";
|
|
|
|
# And to ensure the versions of toolchain
|
|
|
|
- echo "--CXX version?"; "$CXX" --version; echo "--CXX version confirmed";
|
|
|
|
- if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then make -j 4; fi
|
|
|
|
|
2015-01-18 10:28:21 +01:00
|
|
|
addons:
|
2015-10-03 15:16:05 +02:00
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
2016-06-02 22:58:04 +02:00
|
|
|
# - llvm-toolchain-trusty-3.6 temporarily disabled
|
2015-10-03 15:16:05 +02:00
|
|
|
packages:
|
2015-11-04 14:33:24 +01:00
|
|
|
- cmake
|
2015-10-03 15:16:05 +02:00
|
|
|
- libopenal-dev
|
|
|
|
- freeglut3-dev
|
2016-06-02 22:58:04 +02:00
|
|
|
- libglew-dev
|
2015-10-03 15:16:05 +02:00
|
|
|
- libc6-dev
|
2016-06-02 22:58:04 +02:00
|
|
|
# - llvm-3.6
|
|
|
|
# - llvm-3.6-dev
|
2015-10-03 15:16:05 +02:00
|
|
|
- libedit-dev
|
2016-01-03 19:31:00 +01:00
|
|
|
- g++-5
|
|
|
|
- gcc-5
|
2016-06-02 22:58:04 +02:00
|
|
|
# - clang-3.6
|
|
|
|
- libstdc++-5-dev
|
2015-10-03 15:16:05 +02:00
|
|
|
- lib32stdc++6
|
2016-02-03 18:34:51 +01:00
|
|
|
- zlib1g-dev
|
2015-01-18 10:28:21 +01:00
|
|
|
coverity_scan:
|
|
|
|
project:
|
2015-10-02 18:55:18 +02:00
|
|
|
name: $TRAVIS_REPO_SLUG
|
2015-10-03 12:16:38 +02:00
|
|
|
description: "PS3 emulator/debugger"
|
2015-01-18 11:13:36 +01:00
|
|
|
notification_email: raul.tambre@gmail.com
|
2015-10-03 12:16:38 +02:00
|
|
|
build_command: "make -j 4"
|
2015-10-05 06:53:51 +02:00
|
|
|
branch_pattern: coverity_scan
|
2015-01-18 10:28:21 +01:00
|
|
|
|
2015-04-08 20:02:54 +02:00
|
|
|
after_success:
|
2015-10-03 12:16:38 +02:00
|
|
|
- if [ "$COVERITY_SCAN_BRANCH" != 1 ] && [ "$TRAVIS_OS_NAME" = linux ]; then coveralls --extension .c --extension .cpp --extension .h; fi
|