2014-04-25 18:57:00 +02:00
|
|
|
language: cpp
|
2017-04-09 10:30:38 +02:00
|
|
|
sudo: required
|
2016-06-02 22:58:04 +02:00
|
|
|
dist: trusty
|
2014-04-25 18:57:00 +02:00
|
|
|
|
2015-08-17 17:14:29 +02:00
|
|
|
os:
|
2017-03-04 14:22:46 +01:00
|
|
|
- linux
|
|
|
|
#- osx
|
2015-08-17 17:14:29 +02:00
|
|
|
|
|
|
|
osx_image: xcode6.4
|
|
|
|
|
2014-04-25 18:57:00 +02:00
|
|
|
compiler:
|
2017-03-04 14:22:46 +01:00
|
|
|
- clang
|
|
|
|
- gcc
|
2014-04-25 18:57:00 +02:00
|
|
|
|
2017-03-02 22:49:42 +01:00
|
|
|
cache:
|
|
|
|
ccache: true
|
|
|
|
directories:
|
|
|
|
- $HOME/hombebrew_cache
|
|
|
|
|
2015-01-18 10:28:21 +01:00
|
|
|
env:
|
|
|
|
global:
|
2017-04-10 17:14:08 +02:00
|
|
|
- secure: BXyNziNYFLqLtY6Q58BDEUpRJr81HUtHpxf2Sr646bDcbG0Rf2rb2utqHZJ1Om926WdH7RqHuoVti4dr2X1lh4nHMkLD7MrIrfIkNN5T9aZdk19uw9IyMtz/cXon7/wqVo24tVqtBI0UghFxKii/GTDJEvRKgfpPp1e1vKSNGa4=
|
2017-03-04 14:22:46 +01:00
|
|
|
# Which Travis environment to run Coverity on
|
|
|
|
- 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
|
2015-07-17 01:45:51 +02:00
|
|
|
|
2015-08-17 17:14:29 +02:00
|
|
|
matrix:
|
2017-03-04 14:22:46 +01:00
|
|
|
exclude:
|
|
|
|
- os: osx
|
|
|
|
compiler: gcc
|
2015-08-17 17:14:29 +02:00
|
|
|
|
2014-07-09 21:16:17 +02:00
|
|
|
git:
|
|
|
|
submodules: false
|
|
|
|
|
2014-04-25 18:57:00 +02:00
|
|
|
before_install:
|
2015-08-17 17:14:29 +02:00
|
|
|
- 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;
|
2017-03-04 14:22:46 +01:00
|
|
|
# Add coverall for C++ so coverall.io could be triggered. Even it should be --coverage and gcov.
|
2017-04-09 10:30:38 +02:00
|
|
|
# Install updated libglew-dev since the version provided by trusty is outdated
|
2015-08-17 17:14:29 +02:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
2017-03-04 14:22:46 +01:00
|
|
|
pip install --user cpp-coveralls requests[security];
|
2017-04-09 10:30:38 +02:00
|
|
|
wget http://mirrors.kernel.org/ubuntu/pool/main/g/glew/libglew-dev_1.13.0-2_amd64.deb;
|
|
|
|
wget http://mirrors.kernel.org/ubuntu/pool/main/g/glew/libglew1.13_1.13.0-2_amd64.deb;
|
|
|
|
sudo dpkg -i libglew1.13_1.13.0-2_amd64.deb libglew-dev_1.13.0-2_amd64.deb;
|
2015-08-17 17:14:29 +02:00
|
|
|
else
|
2015-08-19 16:24:57 +02:00
|
|
|
brew update; brew update;
|
2017-03-21 18:16:18 +01:00
|
|
|
brew install ccache glew wxwidgets llvm40;
|
2015-08-17 17:14:29 +02:00
|
|
|
fi;
|
2014-04-25 18:57:00 +02:00
|
|
|
|
|
|
|
before_script:
|
2017-04-29 02:57:12 +02:00
|
|
|
- git submodule update --init rsx_program_decompiler asmjit 3rdparty/ffmpeg 3rdparty/pugixml 3rdparty/GSL 3rdparty/libpng Utilities/yaml-cpp 3rdparty/cereal 3rdparty/hidapi
|
2017-03-04 14:22:46 +01:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2017-03-21 18:16:18 +01:00
|
|
|
- cmake ..
|
2014-04-25 18:57:00 +02:00
|
|
|
|
2015-10-02 18:55:18 +02:00
|
|
|
script:
|
2017-03-04 14:22:46 +01:00
|
|
|
# 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 3; fi
|
2015-10-02 18:55:18 +02:00
|
|
|
|
2015-01-18 10:28:21 +01:00
|
|
|
addons:
|
2015-10-03 15:16:05 +02:00
|
|
|
apt:
|
|
|
|
sources:
|
2017-03-04 14:22:46 +01:00
|
|
|
- ubuntu-toolchain-r-test
|
2017-03-21 18:16:18 +01:00
|
|
|
- llvm-toolchain-trusty-4.0
|
2015-10-03 15:16:05 +02:00
|
|
|
packages:
|
2017-03-04 14:22:46 +01:00
|
|
|
- cmake
|
2017-04-09 14:59:19 +02:00
|
|
|
- libasound2-dev
|
2017-03-04 14:22:46 +01:00
|
|
|
- libopenal-dev
|
|
|
|
- freeglut3-dev
|
2017-04-09 10:30:38 +02:00
|
|
|
#- libglew-dev
|
2017-03-04 14:22:46 +01:00
|
|
|
- libc6-dev
|
2017-03-21 18:16:18 +01:00
|
|
|
- llvm-4.0
|
|
|
|
- llvm-4.0-dev
|
2017-03-04 14:22:46 +01:00
|
|
|
- libedit-dev
|
|
|
|
- g++-5
|
|
|
|
- gcc-5
|
|
|
|
- libstdc++-5-dev
|
|
|
|
- lib32stdc++6
|
|
|
|
- zlib1g-dev
|
|
|
|
- libwxgtk3.0-dev
|
2017-04-29 02:57:12 +02:00
|
|
|
- libudev-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"
|
2017-01-30 23:16:47 +01:00
|
|
|
notification_email: nekotekina@gmail.com
|
2017-03-04 14:22:46 +01:00
|
|
|
build_command: "make -j 3"
|
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:
|
2017-03-04 14:22:46 +01:00
|
|
|
- if [ "$COVERITY_SCAN_BRANCH" != 1 ] && [ "$TRAVIS_OS_NAME" = linux ]; then coveralls --extension .c --extension .cpp --extension .h; fi
|
2017-04-12 11:24:35 +02:00
|
|
|
- if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = false ]; then zip -r9 rpcs3.zip bin; curl ${UPLOAD_URL}${TRAVIS_COMMIT:0:7}-${TRAVIS_BUILD_NUMBER}-${CC} --upload-file rpcs3.zip; fi
|
2017-04-10 14:54:32 +02:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
2017-04-10 17:14:08 +02:00
|
|
|
file: rpcs3.zip
|
2017-04-10 14:54:32 +02:00
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
repo: RPCS3/rpcs3
|
|
|
|
tags: true
|
2017-04-10 17:14:08 +02:00
|
|
|
api-key:
|
|
|
|
secure: BXyNziNYFLqLtY6Q58BDEUpRJr81HUtHpxf2Sr646bDcbG0Rf2rb2utqHZJ1Om926WdH7RqHuoVti4dr2X1lh4nHMkLD7MrIrfIkNN5T9aZdk19uw9IyMtz/cXon7/wqVo24tVqtBI0UghFxKii/GTDJEvRKgfpPp1e1vKSNGa4=
|