2018-06-26 12:14:48 +02:00
|
|
|
language: cpp
|
|
|
|
os: linux
|
|
|
|
sudo: false
|
|
|
|
dist: trusty
|
2018-06-26 12:48:47 +02:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2018-06-26 12:14:48 +02:00
|
|
|
env:
|
|
|
|
global:
|
2018-06-26 12:25:02 +02:00
|
|
|
- DEVKITPRO=/opt/devkitpro
|
|
|
|
- WUT_ROOT=/opt/devkitpro/wut
|
|
|
|
- DEVKITPPC=/opt/devkitpro/devkitPPC
|
|
|
|
- PORTLIBREPOS=$HOME/portlibrepos
|
2018-06-26 12:14:48 +02:00
|
|
|
cache:
|
|
|
|
directories:
|
2018-06-26 12:25:02 +02:00
|
|
|
- "$HOME/.local"
|
|
|
|
- "$DEVKITPRO"
|
2018-06-26 12:14:48 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- p7zip-full
|
|
|
|
before_install:
|
2018-06-26 12:25:02 +02:00
|
|
|
- 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
|
2018-06-26 12:35:02 +02:00
|
|
|
- wget https://github.com/decaf-emu/wut/releases/download/1.0.0-beta/wut.linux64.7z
|
2018-06-26 12:25:02 +02:00
|
|
|
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
|
2018-06-26 12:14:48 +02:00
|
|
|
before_script:
|
2018-06-26 12:25:02 +02:00
|
|
|
- cd $TRAVIS_BUILD_DIR/
|
2018-06-26 12:14:48 +02:00
|
|
|
script:
|
2018-06-26 12:25:02 +02:00
|
|
|
- make -j8
|
|
|
|
before_deploy:
|
|
|
|
- cd $TRAVIS_BUILD_DIR/
|
|
|
|
- mkdir -p "wiiu/plugins"
|
|
|
|
- commit="$(git rev-parse --short=7 HEAD)"
|
2018-06-26 12:48:47 +02:00
|
|
|
- find -type f -name "*.mod" | xargs -i cp {} wiiu/plugins
|
2018-06-26 12:25:02 +02:00
|
|
|
- zip -r wups_playground_plugins_$commit.zip wiiu
|
|
|
|
- git config --local user.name "Maschell"
|
|
|
|
- git config --local user.email "Maschell@gmx.de"
|
2018-06-26 13:11:50 +02:00
|
|
|
- git tag "WUPSPluginPlayground-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)"
|
2018-06-26 12:25:02 +02:00
|
|
|
deploy:
|
|
|
|
provider: releases
|
2018-06-26 12:40:34 +02:00
|
|
|
skip_cleanup: true
|
2018-06-26 12:25:02 +02:00
|
|
|
api_key:
|
|
|
|
secure: c1OMwjNnnbAGInzcfAGFVaBU7HfK4MFvEj6zsihCYBP26a+1+yg5+mBrgI9U5bJvydfPUd2PW5fjwpQM26o3MKWdr8UKjx8/175khug5d94O8IgT8C2LgabImXPMI9FbP5Qgmm2M/LS9XnH2+lj7PdR0O5tEkmj2Xn7beotWD8uyVqconfEMvXhpOrqCW3rd9hPnomJ2HWMhvO/+41OlF+fCnxfXH8xfB9HYyQ63eQb0el1yUFupsdj0IzAqtse4zkPSsLgTnJ2TGhdynXoOU2hmRYigDVrOy5kD8Dl+tnPpUnvkNGRKXwo/q2KR3vev5Yp2EbldDLWCR/IScWitPnN2dkn/O8gLPQ+P+aqANrkakoEsWiHvKZgG+eZ6zXCn61cemOiwhjkMl6lf96XSQ9LHyrRP6XrEHJIuALAtoWfQrdKN7P/4V8hGr3tSxgy+hHcs/AXq71lIS11PaCLszfgOP8yq8HQI4+1hD2UrJ1+c3Q7N51K0IRNbm6URbZ/vUcx5ABECcK6F2tVCY7QCb5bzcfiTUr6x1SDjRoHrZhLQBwIUj4uR8R1sfbZ8q2vd1V84F+rLUwT7IOy3KWZAjePrrk0nVTs/BMneRr/eZZR0nlG0c1nADU7m6Whcym+ptMGpJslJCbH42X6Q3w5W1yB/wYpPSsPkeOUItQE6Gtk=
|
|
|
|
file: wups_playground_plugins_$commit.zip
|
|
|
|
on:
|
|
|
|
repo: Maschell/WUPSPluginPlayground
|