2018-05-26 12:26:34 +02:00
|
|
|
language: cpp
|
|
|
|
os: linux
|
|
|
|
sudo: false
|
|
|
|
dist: trusty
|
2018-08-01 21:03:08 +02:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- wut
|
2017-11-18 13:14:38 +01:00
|
|
|
env:
|
|
|
|
global:
|
2018-08-01 21:03:08 +02:00
|
|
|
- DEVKITPRO=/opt/devkitpro
|
|
|
|
- WUT_ROOT=/opt/devkitpro/wut
|
|
|
|
- DEVKITPPC=/opt/devkitpro/devkitPPC
|
2017-11-18 13:14:38 +01:00
|
|
|
cache:
|
|
|
|
directories:
|
2018-08-01 21:03:08 +02:00
|
|
|
- "$HOME/.local"
|
|
|
|
- "$DEVKITPRO"
|
2017-11-18 13:14:38 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- p7zip-full
|
2018-05-26 12:26:34 +02:00
|
|
|
before_install:
|
2018-08-01 21:03:08 +02:00
|
|
|
- mkdir -p "${DEVKITPRO}"
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb
|
|
|
|
-O /tmp/devkitpro-pacman.deb; fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo dpkg -i /tmp/devkitpro-pacman.deb;
|
|
|
|
fi
|
|
|
|
- yes | sudo dkp-pacman -Syu devkitPPC --needed
|
2018-12-28 18:36:49 +01:00
|
|
|
- wget https://github.com/decaf-emu/wut/releases/download/1.0.0-beta6/wut.linux64.7z
|
2017-11-18 13:14:38 +01:00
|
|
|
install:
|
2018-08-01 21:03:08 +02:00
|
|
|
- 7z x -y $(ls | grep "linux") -o${WUT_ROOT}
|
2018-05-26 12:46:36 +02:00
|
|
|
before_script:
|
2018-08-01 21:03:08 +02:00
|
|
|
- cd $TRAVIS_BUILD_DIR/
|
2017-11-18 13:14:38 +01:00
|
|
|
script:
|
2018-08-01 21:03:08 +02:00
|
|
|
- mkdir build && cd build
|
2018-12-28 18:36:49 +01:00
|
|
|
- cmake -DCMAKE_TOOLCHAIN_FILE=$WUT_ROOT/share/wut.toolchain.cmake -DCMAKE_INSTALL_PREFIX=$TRAVIS_BUILD_DIR/deploy
|
2018-08-01 21:03:08 +02:00
|
|
|
../
|
|
|
|
- make
|
|
|
|
before_deploy:
|
2018-08-01 21:06:25 +02:00
|
|
|
- cd $TRAVIS_BUILD_DIR/
|
2018-08-01 21:03:08 +02:00
|
|
|
- commit="$(git rev-parse --short=7 HEAD)"
|
|
|
|
- cd deploy
|
|
|
|
- zip -r libutilswut_$commit.zip .
|
|
|
|
- cd ..
|
2018-08-07 00:56:09 +02:00
|
|
|
- commitLog="$(git log -1 wut --pretty=%B)"
|
2018-08-01 21:03:08 +02:00
|
|
|
- commitMessage="$(echo -e "-\n" && echo "libutilswut nightly build." && echo -e "\nCommitlog:\n")"
|
2018-08-07 01:10:28 +02:00
|
|
|
- git tag "libutilwut-$commit"
|
2018-08-01 21:03:08 +02:00
|
|
|
deploy:
|
|
|
|
provider: releases
|
2018-08-07 00:47:16 +02:00
|
|
|
skip_cleanup: true
|
2018-08-01 21:03:08 +02:00
|
|
|
api_key:
|
|
|
|
secure: DAZ+eq6SNbj+gTwUIvT8TDeCbKPiDUrgw8p/x/lMoWhdVBWqnlC0WMm1O8k8GNdqOUDXzswkU/Xq58BvF0C8CZos0q4Dhs+oOm3simP3YeAZFf13jWXlocdJPI+kvgp4WS6sK+5H+ZiCNa3zc2/e9sLYsI31eXjtIaF+B8UfzkI/abphoUMCCYm4gmH+VHUVKlqjK1fIrRFbcmn+Ks3QzrjHq95/i90UmJk4GjWwftAac6nmjtEQPitFtMS+J7ebp2S9eiMAUgb7oIkuzgHasKCFNxS8Fw34B0KUs5iSepzqetw97LzZCfKhTVamYXq2pkXfkpMJVbL7KVvhas/3b2xNrduZPU61ieI/RdY3J1a9M9ZKwlRDFIdGw/zHcsTmsv1gScWeXgWv0vW6h98uzQBEgJvpgnvV8lNTOmSToURe41WIgoCMiNJ7okEkPP0cCjMnmGaReC4t6B9DfbQMJv4m3BCgRkM8BFosqv9/5rx0xnxa/zffX+YMxx3N9MwyS95AUZ70Yb3hq2crzCCbo4LzfIofbBhQ4TVGD8y/Qq/lLmM1FGh8+xYeYL1sOUx4OxK4Y03l1aOumUKnaAwgKF06uJgMigg59WRi71r4Tkwqui8LC8/XEDdV+IyaD85NU82wb9fVSIV5UZXTPc8IXsdZZQ3Ezw23cr/imbGBOA8=
|
|
|
|
file: deploy/libutilswut_$commit.zip
|
2018-08-07 01:37:08 +02:00
|
|
|
body: "Nigthly release."
|
2018-08-01 21:03:08 +02:00
|
|
|
on:
|
|
|
|
repo: Maschell/libutils
|
|
|
|
branch: wut
|