2014-04-25 18:57:00 +02:00
|
|
|
language: cpp
|
|
|
|
|
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:
|
|
|
|
- secure: "jA29KvTCTR7q4BMzPPUBGazjJwrIWa7k4fo5ZSMlyxh2NbztZTKQYwodgDcXBoptCd1KJ9H3FXwBnNdMNVnTkvoPL9uWnN4K/3D1D20FCag1kmlBwnaVqVei5cRiZ9TOMuaxhjkdg8pcrQLTlXEEdMZf6A2OW0VgoBGDVSX9nYc="
|
2015-07-17 01:45:51 +02:00
|
|
|
|
2014-04-25 18:57:00 +02:00
|
|
|
branches:
|
2015-07-17 01:45:51 +02:00
|
|
|
except:
|
|
|
|
- ppu_recompiler
|
2014-04-25 18:57:00 +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
|
|
|
|
# show memory usage before and after shutdown of services
|
2015-08-17 17:14:29 +02:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
|
|
sudo service --status-all;
|
|
|
|
sudo free -m -t;
|
|
|
|
sudo /etc/init.d/mysql stop;
|
|
|
|
sudo /etc/init.d/postgresql stop;
|
|
|
|
sudo /etc/init.d/couchdb stop;
|
|
|
|
sudo /etc/init.d/redis-server stop;
|
|
|
|
sudo free -m -t;
|
|
|
|
fi;
|
2015-07-11 02:15:07 +02:00
|
|
|
|
2015-08-17 17:14:29 +02:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
|
|
echo "yes" | sudo apt-key adv --fetch-keys 'http://repos.codelite.org/CodeLite.asc';
|
|
|
|
echo "yes" | sudo apt-add-repository 'deb http://repos.codelite.org/wx3.0/ubuntu/ precise universe';
|
|
|
|
echo "yes" | sudo add-apt-repository 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu precise main';
|
|
|
|
echo "yes" | sudo add-apt-repository 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.6 main';
|
|
|
|
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -;
|
|
|
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y;
|
|
|
|
sudo apt-get update;
|
|
|
|
sudo apt-get install libwxgtk3.0-dev libopenal-dev freeglut3-dev libglew-dev libc6-dev llvm-3.6 llvm-3.6-dev libedit-dev;
|
|
|
|
sudo apt-get install aria2 -qq;
|
|
|
|
download_extract() { aria2c -x 16 $1 -o $2 && tar -xf $2; };
|
|
|
|
fi;
|
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$CXX" = "g++" ]; then
|
2015-07-11 02:15:07 +02:00
|
|
|
sudo apt-get install -qq g++-4.9;
|
2015-07-27 02:40:42 +02:00
|
|
|
export CXX="g++-4.9" CC="gcc-4.9" 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-08-17 17:14:29 +02:00
|
|
|
elif [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
2015-07-21 21:46:21 +02:00
|
|
|
sudo apt-get install -qq --allow-unauthenticated clang-3.6 libstdc++-4.8-dev;
|
2015-04-09 18:53:10 +02:00
|
|
|
export CXX="clang++-3.6" CC="clang-3.6";
|
|
|
|
fi;
|
2014-04-25 18:57:00 +02:00
|
|
|
# Travis uses CMake 2.8.7. We require 2.8.8. Grab latest
|
2015-04-09 18:53:10 +02:00
|
|
|
# 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
|
|
|
|
sudo apt-get install lib32stdc++6 -qq &&
|
|
|
|
aria2c -x 16 http://www.cmake.org/files/v3.0/cmake-3.0.0-Linux-i386.sh &&
|
|
|
|
chmod a+x cmake-3.0.0-Linux-i386.sh &&
|
|
|
|
sudo ./cmake-3.0.0-Linux-i386.sh --skip-license --prefix=/usr;
|
|
|
|
sudo pip install cpp-coveralls;
|
|
|
|
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:
|
2015-08-19 16:57:44 +02:00
|
|
|
- git submodule update --init asmjit ffmpeg
|
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-01-18 10:28:21 +01:00
|
|
|
addons:
|
|
|
|
coverity_scan:
|
|
|
|
project:
|
|
|
|
name: "DHrpcs3/rpcs3"
|
|
|
|
description: "PS3 emulator/debugger"
|
2015-01-18 11:13:36 +01:00
|
|
|
notification_email: raul.tambre@gmail.com
|
|
|
|
build_command_prepend: ""
|
2015-01-18 10:28:21 +01:00
|
|
|
build_command: "make -j 4"
|
|
|
|
branch_pattern: coverity_scan
|
|
|
|
|
2015-04-08 20:02:54 +02:00
|
|
|
# These modifys are from https://github.com/devernay/cminpack/blob/master/.travis.yml
|
|
|
|
# It passed but when coverall it failed.
|
2014-04-25 18:57:00 +02:00
|
|
|
script:
|
2015-04-08 20:02:54 +02:00
|
|
|
# Add a command to show all the variables now. maybe only useful for debugging travis.
|
2015-08-16 01:02:21 +02:00
|
|
|
# - echo "--Shell Export Lists START--" ; export -p; echo "--Shell Export Lists STOP--";
|
2015-04-09 18:53:10 +02:00
|
|
|
# And to ensure the versions of toolchain
|
|
|
|
- echo "--CXX version?"; "$CXX" --version; echo "--CXX version confirmed";
|
|
|
|
# From https://github.com/devernay/cminpack/blob/master/.travis.yml: that is $COVERITY_SCAN_BRANCH not ${COVERITY_SCAN_BRANCH}
|
2015-04-08 20:02:54 +02:00
|
|
|
- if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then make -j 4; fi
|
|
|
|
after_success:
|
|
|
|
- if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then coveralls --extension .c --extension .cpp --extension .h; fi
|
2015-07-11 02:15:07 +02:00
|
|
|
after_failure:
|
2015-08-17 17:14:29 +02:00
|
|
|
# show memory usage again and show actions of the OOM killer
|
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
|
|
sudo free -m -t;
|
|
|
|
sudo dmesg;
|
|
|
|
fi;
|