2018-05-26 12:54:30 +02:00
language : cpp
2017-11-19 11:08:20 +01:00
2018-05-26 12:54:30 +02:00
os : linux
sudo : false
dist : trusty
2017-11-19 11:08:20 +01:00
env :
global :
2018-06-21 20:44:58 +02:00
- DEVKITPRO=/opt/devkitpro
- WUT_ROOT=/opt/devkitpro/wut
2018-05-26 12:54:30 +02:00
- DEVKITPPC=/opt/devkitpro/devkitPPC
- PORTLIBREPOS=$HOME/portlibrepos
2017-11-19 11:08:20 +01:00
cache :
directories :
2018-05-26 12:54:30 +02:00
- "$HOME/.local"
- "$DEVKITPRO"
2017-11-19 11:08:20 +01:00
addons :
apt :
packages :
- p7zip-full
2018-05-26 12:54:30 +02:00
before_install :
- mkdir -p "${PORTLIBREPOS}"
2017-12-16 11:27:22 +01:00
- mkdir -p "${DEVKITPRO}"
2018-05-26 12:54:30 +02:00
- 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
2018-05-26 16:28:29 +02:00
- yes | sudo dkp-pacman -Syu devkitPPC --needed
2018-06-21 20:44:58 +02:00
- wget $(curl -s https://api.github.com/repos/decaf-emu/wut/releases/latest | grep 'browser_' | grep 'linux' | cut -d\" -f4)
2017-11-19 11:08:20 +01:00
install :
2018-06-21 20:44:58 +02:00
- 7z x -y $(ls | grep "linux") -o${WUT_ROOT}
2018-05-26 13:08:30 +02:00
- 7z x -y ./libs/portlibs.zip -o${DEVKITPRO}
2018-05-26 12:54:30 +02:00
- cd $PORTLIBREPOS
2018-06-21 20:44:58 +02:00
- git clone https://github.com/Maschell/libutils.git -b wut
- 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-05-26 12:54:30 +02:00
before_script :
- cd $TRAVIS_BUILD_DIR/
2017-11-19 11:08:20 +01:00
script :
2018-06-21 20:44:58 +02:00
- mkdir build && cd build
- cmake -DCMAKE_TOOLCHAIN_FILE=$WUT_ROOT/share/wut.toolchain.cmake -DCMAKE_INSTALL_PREFIX=$WUT_ROOT ../
- make install