rpcs3/.travis.yml

110 lines
3.5 KiB
YAML
Raw Normal View History

language: cpp
sudo: required
dist: trusty
os:
- linux
#- osx
osx_image: xcode6.4
compiler:
- clang
- gcc
2017-03-02 21:49:42 +00:00
cache:
ccache: true
directories:
- $HOME/hombebrew_cache
env:
global:
2017-04-10 15:14:08 +00:00
- secure: BXyNziNYFLqLtY6Q58BDEUpRJr81HUtHpxf2Sr646bDcbG0Rf2rb2utqHZJ1Om926WdH7RqHuoVti4dr2X1lh4nHMkLD7MrIrfIkNN5T9aZdk19uw9IyMtz/cXon7/wqVo24tVqtBI0UghFxKii/GTDJEvRKgfpPp1e1vKSNGa4=
# 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
matrix:
exclude:
- os: osx
compiler: gcc
git:
submodules: false
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$CXX" = "g++" ]; then
2016-01-03 18:31:00 +00: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.
# Install updated libglew-dev since the version provided by trusty is outdated
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
pip install --user cpp-coveralls requests[security];
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;
else
brew update; brew update;
2017-03-21 17:16:18 +00:00
brew install ccache glew wxwidgets llvm40;
fi;
before_script:
- git submodule update --init rsx_program_decompiler asmjit 3rdparty/ffmpeg 3rdparty/pugixml 3rdparty/GSL 3rdparty/libpng Utilities/yaml-cpp 3rdparty/cereal 3rdparty/hidapi
- mkdir build
- cd build
2017-03-21 17:16:18 +00:00
- cmake ..
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 3; fi
addons:
2015-10-03 13:16:05 +00:00
apt:
sources:
- ubuntu-toolchain-r-test
2017-03-21 17:16:18 +00:00
- llvm-toolchain-trusty-4.0
2015-10-03 13:16:05 +00:00
packages:
- cmake
2017-04-09 12:59:19 +00:00
- libasound2-dev
- libopenal-dev
- freeglut3-dev
#- libglew-dev
- libc6-dev
2017-03-21 17:16:18 +00:00
- llvm-4.0
- llvm-4.0-dev
- libedit-dev
- g++-5
- gcc-5
- libstdc++-5-dev
- lib32stdc++6
- zlib1g-dev
- libwxgtk3.0-dev
- libudev-dev
coverity_scan:
project:
name: $TRAVIS_REPO_SLUG
2015-10-03 10:16:38 +00:00
description: "PS3 emulator/debugger"
notification_email: nekotekina@gmail.com
build_command: "make -j 3"
branch_pattern: coverity_scan
after_success:
- if [ "$COVERITY_SCAN_BRANCH" != 1 ] && [ "$TRAVIS_OS_NAME" = linux ]; then coveralls --extension .c --extension .cpp --extension .h; fi
2017-04-12 09:24:35 +00: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 12:54:32 +00:00
deploy:
provider: releases
2017-04-10 15:14:08 +00:00
file: rpcs3.zip
2017-04-10 12:54:32 +00:00
skip_cleanup: true
on:
branch: master
repo: RPCS3/rpcs3
tags: true
2017-04-10 15:14:08 +00:00
api-key:
secure: BXyNziNYFLqLtY6Q58BDEUpRJr81HUtHpxf2Sr646bDcbG0Rf2rb2utqHZJ1Om926WdH7RqHuoVti4dr2X1lh4nHMkLD7MrIrfIkNN5T9aZdk19uw9IyMtz/cXon7/wqVo24tVqtBI0UghFxKii/GTDJEvRKgfpPp1e1vKSNGa4=