2014-05-23 12:20:15 -04:00
|
|
|
language: c
|
2014-05-24 07:22:01 -04:00
|
|
|
|
2014-05-23 13:16:51 -04:00
|
|
|
before_install:
|
2016-01-08 03:26:45 -05:00
|
|
|
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then bash scripts/linux/install.sh; fi
|
2016-01-27 02:47:22 -05:00
|
|
|
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then sudo gem install xcpretty-travis-formatter; fi
|
2016-01-08 03:26:45 -05:00
|
|
|
|
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
2016-01-17 11:16:43 -05:00
|
|
|
env:
|
2016-01-19 10:54:13 -05:00
|
|
|
global:
|
2016-04-13 08:11:08 -04:00
|
|
|
- OPENRCT2_VERSION="0.0.5.0"
|
2016-01-08 03:26:45 -05:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
2016-01-17 10:51:28 -05:00
|
|
|
env:
|
2016-10-15 16:00:52 -04:00
|
|
|
- OPENRCT2_CMAKE_OPTS="-DCMAKE_C_COMPILER=gcc-4.8 -DCMAKE_CXX_COMPILER=g++-4.8 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=OpenRCT2" OPENRCT2_MAKE_OPTS="-j2" TARGET=linux64
|
2016-01-17 10:51:28 -05:00
|
|
|
- secure: "S3u2VCE2Vy8KNXoeh+DhnzjCmgTX0r95uEZrXDU+IKANOOCKn7Dg4OFDZE3LY/i1y2/EUDpnR5yLC38Ks795EUP/sv/OoMl4tjQ20yERjqWh+gcIRrgx7SdVabuAh3t4aBdaLD4Pfnj5avxeCt6rL7yGnj0wdbrbJSBZPsgSnuQ="
|
|
|
|
after_success:
|
|
|
|
- cd build
|
2016-01-25 03:28:40 -05:00
|
|
|
- make install
|
2016-01-25 04:59:39 -05:00
|
|
|
- mv OpenRCT2/bin/openrct2 OpenRCT2/ && mv OpenRCT2/share/openrct2 OpenRCT2/data && mv OpenRCT2/share/doc/openrct2 OpenRCT2/doc
|
|
|
|
- rm -rf OpenRCT2/bin OpenRCT2/share # remove empty dirs
|
2016-01-25 03:28:40 -05:00
|
|
|
- tar cvzf openrct2-linux.tar.gz OpenRCT2/
|
2016-08-29 13:39:12 -04:00
|
|
|
- if [[ "z$OPENRCT2_ORG_TOKEN" != "z" && ("${TRAVIS_BRANCH}" =~ ^(develop|push/) || "z${TRAVIS_TAG}" != "z") ]] ; then
|
2016-10-15 16:00:52 -04:00
|
|
|
curl -o - -v --form "key=$OPENRCT2_ORG_TOKEN" --form "fileName=OpenRCT2-${OPENRCT2_VERSION}-${TRAVIS_BRANCH}-$(git rev-parse --short HEAD)-linux-x86_64.tar.gz" --form "version=${OPENRCT2_VERSION}" --form "gitHash=$TRAVIS_COMMIT" --form "gitBranch=$TRAVIS_BRANCH" --form "flavourId=9" --form "file=@openrct2-linux.tar.gz" "https://openrct2.org/altapi/?command=push-build";
|
|
|
|
else curl --progress-bar --upload-file openrct2-linux.tar.gz https://transfer.sh/openrct2-linux-x86_64.tar.gz -o link && cat link;
|
2016-08-29 13:39:12 -04:00
|
|
|
fi
|
2016-01-08 03:26:45 -05:00
|
|
|
- os: linux
|
2016-10-15 16:00:52 -04:00
|
|
|
env: OPENRCT2_CMAKE_OPTS="-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++" TARGET=linux64
|
2016-01-08 03:26:45 -05:00
|
|
|
- os: linux
|
2016-10-15 16:53:17 -04:00
|
|
|
env: OPENRCT2_CMAKE_OPTS="-DCMAKE_TOOLCHAIN_FILE=../CMakeLists_mingw.txt -DFORCE32=on" TARGET=windows
|
2016-01-08 03:26:45 -05:00
|
|
|
- os: linux
|
2016-10-15 16:00:52 -04:00
|
|
|
env: TARGET=docker64
|
2016-01-08 03:26:45 -05:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
- os: linux
|
2016-10-15 16:00:52 -04:00
|
|
|
env: OPENRCT2_CMAKE_OPTS="-DDISABLE_NETWORK=ON -DDISABLE_HTTP_TWITCH=ON" TARGET=docker64
|
2016-01-08 03:26:45 -05:00
|
|
|
services:
|
|
|
|
- docker
|
2016-06-08 08:58:46 -04:00
|
|
|
- os: linux
|
2016-10-15 16:00:52 -04:00
|
|
|
env: OPENRCT2_CMAKE_OPTS="-DDISABLE_OPENGL=ON" TARGET=docker64
|
2016-06-08 08:58:46 -04:00
|
|
|
services:
|
|
|
|
- docker
|
2016-01-08 03:26:45 -05:00
|
|
|
- os: osx
|
2016-09-13 19:05:23 -04:00
|
|
|
osx_image: xcode8
|
2016-01-17 10:51:28 -05:00
|
|
|
env:
|
|
|
|
- secure: "OXn/i72FxW/oh6RGlaN+gHSbkt1ToFe36etaiDOsJQznt6fe9CpFdnE8U1XBHlGokcEjbGNErRU7CFDKYHQuGrPZyHXwgqG2/0emIqFaFt5ti5ypyYKf5qH9x1LLLfdZxDyHkxXdlJ7Etxbp3G7qrV8CGRQiYRNHm1f98AmuufE="
|
2016-01-08 03:26:45 -05:00
|
|
|
after_success:
|
|
|
|
- cd build/Release
|
2016-10-03 08:59:05 -04:00
|
|
|
- zip -r openrct2-macos.zip OpenRCT2.app
|
2016-08-29 13:39:12 -04:00
|
|
|
- if [[ "z$OPENRCT2_ORG_TOKEN" != "z" && ("${TRAVIS_BRANCH}" =~ ^(develop|push/) || "z${TRAVIS_TAG}" != "z") ]] ; then
|
2016-10-03 08:59:05 -04:00
|
|
|
curl -o - -v --form "key=$OPENRCT2_ORG_TOKEN" --form "fileName=OpenRCT2-${OPENRCT2_VERSION}-${TRAVIS_BRANCH}-${TRAVIS_COMMIT:0:7}-macos.zip" --form "version=${OPENRCT2_VERSION}" --form "gitHash=$TRAVIS_COMMIT" --form "gitBranch=$TRAVIS_BRANCH" --form "flavourId=3" --form "file=@openrct2-macos.zip" "https://openrct2.org/altapi/?command=push-build"; else
|
|
|
|
curl --progress-bar --upload-file openrct2-macos.zip https://transfer.sh/openrct2-macos.zip -o link && cat link;
|
2016-08-29 13:39:12 -04:00
|
|
|
fi
|
2016-04-26 16:42:39 -04:00
|
|
|
- os: linux
|
2016-10-15 16:00:52 -04:00
|
|
|
env: OPENRCT2_CMAKE_OPTS="-DFORCE32=ON -DDISABLE_RCT2=OFF -DCMAKE_INSTALL_PREFIX=OpenRCT2" TARGET=linux
|
2016-08-02 13:17:20 -04:00
|
|
|
after_success:
|
|
|
|
- cd build
|
|
|
|
- make install
|
|
|
|
- mv OpenRCT2/bin/openrct2 OpenRCT2/ && mv OpenRCT2/share/openrct2 OpenRCT2/data && mv OpenRCT2/share/doc/openrct2 OpenRCT2/doc
|
|
|
|
- rm -rf OpenRCT2/bin OpenRCT2/share # remove empty dirs
|
|
|
|
- tar cvzf openrct2-linux.tar.gz OpenRCT2/
|
2016-08-29 13:39:12 -04:00
|
|
|
- if [[ "z$OPENRCT2_ORG_TOKEN" != "z" && ("${TRAVIS_BRANCH}" =~ ^(develop|push/) || "z${TRAVIS_TAG}" != "z") ]] ; then
|
2016-10-15 16:00:52 -04:00
|
|
|
curl -o - -v --form "key=$OPENRCT2_ORG_TOKEN" --form "fileName=OpenRCT2-${OPENRCT2_VERSION}-${TRAVIS_BRANCH}-$(git rev-parse --short HEAD)-linux-i686.tar.gz" --form "version=${OPENRCT2_VERSION}" --form "gitHash=$TRAVIS_COMMIT" --form "gitBranch=$TRAVIS_BRANCH" --form "flavourId=4" --form "file=@openrct2-linux.tar.gz" "https://openrct2.org/altapi/?command=push-build";
|
|
|
|
else curl --progress-bar --upload-file openrct2-linux.tar.gz https://transfer.sh/openrct2-linux-i686.tar.gz -o link && cat link;
|
2016-08-29 13:39:12 -04:00
|
|
|
fi
|
2016-01-08 03:26:45 -05:00
|
|
|
# Following entries used to be included in testing, but they only proved useful while changing things in CMake setup.
|
|
|
|
# They are meant to be used when there are changes to CMakeLists.txt
|
|
|
|
# - os: linux
|
|
|
|
# env: OPENRCT2_CMAKE_OPTS="-DDISABLE_NETWORK=ON -DDISABLE_HTTP_TWITCH=ON -DCMAKE_C_COMPILER=gcc-4.8 -DCMAKE_CXX_COMPILER=g++-4.8"
|
|
|
|
# - os: linux
|
|
|
|
# env: OPENRCT2_CMAKE_OPTS="-DDISABLE_NETWORK=ON -DDISABLE_HTTP_TWITCH=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++"
|
|
|
|
# - os: linux
|
|
|
|
# env: OPENRCT2_CMAKE_OPTS="-DDISABLE_NETWORK=OFF -DDISABLE_HTTP_TWITCH=ON -DCMAKE_C_COMPILER=gcc-4.8 -DCMAKE_CXX_COMPILER=g++-4.8"
|
|
|
|
# - os: linux
|
|
|
|
# env: OPENRCT2_CMAKE_OPTS="-DDISABLE_NETWORK=OFF -DDISABLE_HTTP_TWITCH=OFF -DCMAKE_C_COMPILER=gcc-4.8 -DCMAKE_CXX_COMPILER=g++-4.8"
|
|
|
|
# - os: linux
|
|
|
|
# env: OPENRCT2_CMAKE_OPTS="-DDISABLE_NETWORK=ON -DCMAKE_TOOLCHAIN_FILE=../CMakeLists_mingw.txt" TARGET=windows
|
|
|
|
# - os: linux
|
|
|
|
# env: OPENRCT2_CMAKE_OPTS="-DDISABLE_NETWORK=ON -DDISABLE_HTTP_TWITCH=ON -DCMAKE_TOOLCHAIN_FILE=../CMakeLists_mingw.txt" TARGET=windows
|
|
|
|
# - os: linux
|
|
|
|
# env: OPENRCT2_CMAKE_OPTS="-DDISABLE_HTTP_TWITCH=ON -DCMAKE_TOOLCHAIN_FILE=../CMakeLists_mingw.txt" TARGET=windows
|
2014-05-24 07:22:01 -04:00
|
|
|
|
2014-05-23 12:56:37 -04:00
|
|
|
script:
|
2016-01-08 03:26:45 -05:00
|
|
|
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then bash scripts/linux/build.sh ; fi
|
2016-01-27 02:47:22 -05:00
|
|
|
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then set -o pipefail && xcodebuild | xcpretty -f `xcpretty-travis-formatter`; fi
|
2014-05-24 07:22:01 -04:00
|
|
|
|
2014-05-25 12:44:08 -04:00
|
|
|
notifications:
|
2015-09-09 13:27:01 -04:00
|
|
|
on_failure: change
|
2014-05-25 12:44:08 -04:00
|
|
|
on_success: change
|
|
|
|
|
2015-09-24 16:47:14 -04:00
|
|
|
cache:
|
2014-05-25 12:44:08 -04:00
|
|
|
directories:
|
2015-09-24 16:47:14 -04:00
|
|
|
- .cache
|
2014-05-25 12:44:08 -04:00
|
|
|
apt: true
|