2018-05-26 12:26:34 +02:00
language : cpp
2017-11-18 13:14:38 +01:00
2018-05-26 12:26:34 +02:00
os : linux
sudo : false
dist : trusty
2017-11-18 13:14:38 +01:00
env :
global :
- DEVKITPRO=$HOME/devkitPro
2018-05-26 12:29:15 +02:00
- PORTLIBREPOS=$HOME/portlibrepos
2017-11-18 13:14:38 +01:00
cache :
directories :
2018-05-26 12:26:34 +02:00
- "$HOME/.local"
2018-05-26 12:29:15 +02:00
- "$PORTLIBREPOS"
2017-11-18 13:14:38 +01:00
addons :
apt :
packages :
- p7zip-full
2018-05-26 12:26:34 +02:00
before_install :
- mkdir -p "${PORTLIBREPOS}"
2017-12-16 11:23:44 +01:00
- mkdir -p "${DEVKITPRO}"
2018-05-26 12:26:34 +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
- yes | sudo dkp-pacman -Syu devkitPPC
- export DEVKITPPC=/opt/devkitpro/devkitPPC
2017-11-18 13:14:38 +01:00
install :
2018-05-26 12:26:34 +02:00
- cd $PORTLIBREPOS
- ((git clone https://github.com/Maschell/dynamic_libs.git -b lib && (7z x -y ./dynamic_libs/libs/portlibs.zip -o${DEVKITPRO})) || (cd dynamic_libs && git pull))
- (cd dynamic_libs && ((make -j8 | grep -c "built ... ") && make install && echo "installed" ) || (echo "no need for make install" && make))
2017-11-19 22:57:01 +01:00
2017-11-18 13:14:38 +01:00
script :
2018-05-26 12:26:34 +02:00
- cd "$HOME"
- make && make install