mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-16 23:17:29 +00:00
112 lines
3.8 KiB
YAML
112 lines
3.8 KiB
YAML
language: cpp
|
|
sudo: required
|
|
dist: trusty
|
|
|
|
os:
|
|
- linux
|
|
#- osx
|
|
|
|
osx_image: xcode6.4
|
|
|
|
compiler:
|
|
- clang
|
|
- gcc
|
|
|
|
cache:
|
|
ccache: true
|
|
directories:
|
|
- $HOME/hombebrew_cache
|
|
|
|
env:
|
|
global:
|
|
- secure: OcSxCkJMYqhVPzg6gnUyoDss2K0ntXGmKrhjBhkR57H14U6n6j5eH4c8Uh9gFn0YjE4ctixR/InZqai8COVv1x/SH5FrWTw+QTXezykAcUQnLd23fx56fGX0smOC8F6n/IgTdk32Dlj9egiP2VFiM/Pm2+jSyGUwxhvXW8HonW8=
|
|
# 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
|
|
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;
|
|
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
|
|
- mkdir build
|
|
- cd build
|
|
- 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:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
- llvm-toolchain-trusty-4.0
|
|
packages:
|
|
- cmake
|
|
- libasound2-dev
|
|
- libopenal-dev
|
|
- freeglut3-dev
|
|
#- libglew-dev
|
|
- libc6-dev
|
|
- llvm-4.0
|
|
- llvm-4.0-dev
|
|
- libedit-dev
|
|
- g++-5
|
|
- gcc-5
|
|
- libstdc++-5-dev
|
|
- lib32stdc++6
|
|
- zlib1g-dev
|
|
- libwxgtk3.0-dev
|
|
coverity_scan:
|
|
project:
|
|
name: $TRAVIS_REPO_SLUG
|
|
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
|
|
- if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = false ] && [ -z "$TRAVIS_TAG" ]; then git config --global user.email "builds@travis-ci.com"; git config --global user.name "Nekotekina"; git tag -a v${TRAVIS_BUILD_NUMBER} -m "Travis build $TRAVIS_BUILD_NUMBER pushed a tag."; git push origin --tags; git fetch origin; fi
|
|
|
|
before_deploy: "zip rpcs3-${TRAVIS_COMMIT}-${TRAVIS_BUILD_NUMBER}-linux-${CXX}-x64.zip ../bin/rpcs3"
|
|
|
|
deploy:
|
|
provider: releases
|
|
user: "Nekotekina"
|
|
file: "rpcs3-${TRAVIS_COMMIT}-${TRAVIS_BUILD_NUMBER}-linux-${CXX}-x64.zip"
|
|
skip_cleanup: true
|
|
on:
|
|
branch: master
|
|
repo: RPCS3/rpcs3
|
|
tags: true
|
|
password:
|
|
secure: RTT3Rdwsmllxy2GjftJw2mvJ5HG5qJlrTp2/18rk5M7U9ZznTLE5t/6OHW2cMVdAU85a7QebXXkANbsUhI3zsMFcp+JOavX+bjt/XsF/bpnxB8R7xrvYtKhfB6N0S0818FIDjTNNFGitujZcloCwtBT9YrozrQBJqCwRDcIdpYU=
|