mirror of
https://github.com/wiiu-env/SwipSwapMe.git
synced 2024-11-22 04:29:17 +01:00
66 lines
2.5 KiB
YAML
66 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-beta/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 swipswapme_nightly_$commit.zip wiiu
|
|
- git config --local user.name "Maschell"
|
|
- git config --local user.email "Maschell@gmx.de"
|
|
- git tag "SwipSwapMe-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)"
|
|
deploy:
|
|
provider: releases
|
|
skip_cleanup: true
|
|
api_key:
|
|
secure: Gqu3sySILamrn1sY2Hcr32DHHXHvffzPg6uIR9gsJxMLReZT+OU4x9Pys88epPqpQCAnwbmoJYDSBrUTAumfwLxBeBv4FzySL87Ztbv9JLIvOakwNAi0d0dAtHYl7D/+2JlU57pY2CYK/k/Y/kKz0WswAi2QYZ68uY028l+2dc5a2y4L06ZMqbd3xWIzBGxgyJurmMXrHGdsiLz+2WEbDf/9dSuBrwjqGC5StfmupOwZVIBivZgrQz/g9Y8snK4FDPuR2eLOZKxas1QxcjFKI5hWlex/oHpxD41Zy5DyfawvgZU3YmScCJs/BzaOBkEs3boHbC199ppHCB0fl/GFgHdlmVmjdKOKJhuhRbj5zLKoEem0ujFi6MQF+OBHdEFhgpqC+CWuz+HZR3M/2p/e90W/0ZJOhWpWUWaIFLnQJ3abXAbd0oqnqJCbPZI5m7z+N/cNjGAJg/AQqYi/ophT4+Nh+9zNcDRtOwY8eQsYXKMCGOiaP/84LaO708TJQJFpY2GScorVrCWdFW/BPOU/RICLdKlBP6ljaMsC+TYFlJv1VRAh2+gLC8kNO5tdG6oNMYHgAPTGS45AHhIJNSiUOL0DhuTbrFEHVsae8uzmMdgxnQQVMRf17UVr7t5Dsap2CdD36eZspbPjmin4xFfaUxPoUoVrfwaSPpsWQJH+vYA=
|
|
file: swipswapme_nightly_$commit.zip
|
|
on:
|
|
repo: Maschell/SwipSwapMe
|