1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-23 03:02:53 +01:00
rpcs3/.travis.yml

91 lines
2.7 KiB
YAML
Raw Normal View History

language: cpp
sudo: required
dist: trusty
os:
- linux
2017-01-21 21:40:37 +01:00
# - osx
osx_image: xcode6.4
compiler:
- clang
- gcc
env:
global:
2015-10-03 12:16:38 +02:00
- secure: "Vf+FY48nip9JppMnq11105NealdErSWsoUhHo63/V3V+LKfA9guenxCp93/qoSIdSGC/sJwb0yIIMGvkTT/rxDJNh6Z+BWUTb2E0WEIIQbvTJNOSUzoq7dfF1LT61XjVjByFzcbC2xjtaBowmcAYEs1jGUUuEjYVCMmD5lY8hUg="
# 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'
# 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
matrix:
exclude:
- os: osx
compiler: gcc
git:
submodules: false
before_install:
# shutdown services on Travis, which may have a memory impact
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo apt-get install -y libwxgtk3.0-dev;
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";
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01';
fi;
# Add coverall for C++ so coverall.io could be triggered. Even it should be --coverage and gcov.
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
2015-10-03 15:16:05 +02:00
sudo pip install cpp-coveralls requests[security];
else
brew update; brew update;
brew install glew wxwidgets llvm38;
fi;
before_script:
2016-07-18 22:56:50 +02:00
- git submodule update --init rsx_program_decompiler asmjit 3rdparty/ffmpeg 3rdparty/pugixml 3rdparty/GSL 3rdparty/libpng Utilities/yaml-cpp 3rdparty/cereal
- mkdir build
- cd build
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cmake ..; else cmake .. -DLLVM_DIR=/usr/local/opt/llvm38/lib/llvm-3.8/share/llvm/cmake; fi
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
addons:
2015-10-03 15:16:05 +02:00
apt:
sources:
- ubuntu-toolchain-r-test
# - llvm-toolchain-trusty-3.8 temporarily disabled
2015-10-03 15:16:05 +02:00
packages:
- cmake
2015-10-03 15:16:05 +02:00
- libopenal-dev
- freeglut3-dev
- libglew-dev
2015-10-03 15:16:05 +02:00
- libc6-dev
# - llvm-3.8
# - llvm-3.8-dev
2015-10-03 15:16:05 +02:00
- libedit-dev
2016-01-03 19:31:00 +01:00
- g++-5
- gcc-5
# - 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
coverity_scan:
project:
name: $TRAVIS_REPO_SLUG
2015-10-03 12:16:38 +02:00
description: "PS3 emulator/debugger"
notification_email: nekotekina@gmail.com
2015-10-03 12:16:38 +02:00
build_command: "make -j 4"
branch_pattern: coverity_scan
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