DiiBuggerWUPS/.travis.yml
2018-07-01 18:32:56 +02:00

67 lines
2.5 KiB
YAML

language: cpp
os: linux
sudo: false
dist: trusty
branches:
only:
- master
env:
global:
- DEVKITPRO=/opt/devkitpro
- WUT_ROOT=/opt/devkitpro/wut
- DEVKITPPC=/opt/devkitpro/devkitPPC
- PORTLIBREPOS=$HOME/portlibrepos
cache:
directories:
- "$HOME/.local"
- "$DEVKITPRO"
addons:
apt:
packages:
- p7zip-full
before_install:
- mkdir -p "${PORTLIBREPOS}"
- 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
- yes | sudo dkp-pacman -Syu general-tools --needed
- wget https://github.com/decaf-emu/wut/releases/download/1.0.0-beta2/wut.linux64.7z
install:
- 7z x -y $(ls | grep "linux") -o${WUT_ROOT}
- cd $PORTLIBREPOS
- git clone https://github.com/Maschell/WiiUPluginSystem.git
- git clone https://github.com/Maschell/libutils.git -b wut
- cd WiiUPluginSystem
- make && make install
- cd $PORTLIBREPOS
- cd libutils
- mkdir build && cd build
- cmake -DCMAKE_TOOLCHAIN_FILE=$WUT_ROOT/share/wut.toolchain.cmake -DCMAKE_INSTALL_PREFIX=$WUT_ROOT
../
- make install
- cd $PORTLIBREPOS
before_script:
- cd $TRAVIS_BUILD_DIR/
script:
- make -j8
before_deploy:
- cd $TRAVIS_BUILD_DIR/
- mkdir -p "wiiu/plugins"
- commit="$(git rev-parse --short=7 HEAD)"
- find -type f -name "*.mod" | xargs -i cp {} wiiu/plugins
- zip -r diibugger_wups_nightly_$commit.zip wiiu
- git config --local user.name "Maschell"
- git config --local user.email "Maschell@gmx.de"
- git tag "DiiBuggerWUPS-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)"
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: p3i7VMXwqTQKZ5DyCJ7Qyp4v24bAhTAOohi4VUCNhDC3iw8D1RTkg07y8WwNKGrOoQmbodDgLlRLbo1wI/8C3qckn5KyDfAP76D89utta6FJHa7BfyM5hwgPMJtbm9gsY7gv8bdlIlOeL5SOsfG632hZ1cPKX9pSYqW2dkVHCh+JriLHDs+VEpzYpjZDxrtYwAWGaOL4vH2LH0/t78oYvDIRDgwOCjX3+ccTjpJsWMxBVy3wjiV1XHjNYL7Nj0j6FHIv9AfBtCgguoxXaBVb5iDmr61fKX2iCh8H17AN7W0SU57AHShgz/Cntuwbi+DWzg3Xzd6vnBHkCQ9osQAqhGUjgZfJHU+pSeo+GaTqYrkINJDq4Y/lFdoO/K9jio1ocoIzr5EFjIdn4ritMFXby7Z5N1Xdoo/oU1Pbqsij8OrFPd+RdzCgCoQ16l4Y1oA39FcSpgxBD2HYwzvYdiSDbHAdDLd4Hpp7tC5IIWMpL040l1nuyBuw7WOi58lW4k4ql94WeOejpJBsG6Sb0Mov+Mg7J0RXYnqBpiuBBguwJMIiGBlRQ2R6+IkxlQU2bSvZMXSjlLN1u49Mkc/FqTCYbWajGsaICpVdW2Gbm2NshADkVT2Sdk+A9DoJnBaU3MRWZfOyViR7xeuV57gruPg24dLb8O6AIZmKWASV6U9exZg=
file: diibugger_wups_nightly_$commit.zip
on:
repo: Maschell/DiiBuggerWUPS