libgui-maschell/.travis.yml

42 lines
1.4 KiB
YAML
Raw Normal View History

language: cpp
2017-11-19 11:08:20 +01:00
os: linux
sudo: false
dist: trusty
2017-11-19 11:08:20 +01:00
env:
global:
- DEVKITPRO=/opt/devkitpro
- DEVKITPPC=/opt/devkitpro/devkitPPC
- PORTLIBREPOS=$HOME/portlibrepos
2017-11-19 11:08:20 +01:00
cache:
directories:
- "$HOME/.local"
- "$PORTLIBREPOS"
- "$DEVKITPRO"
2017-11-19 11:08:20 +01:00
addons:
apt:
packages:
- p7zip-full
before_install:
- mkdir -p "${PORTLIBREPOS}"
2017-12-16 11:27:22 +01:00
- 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
2019-05-14 22:27:05 +02:00
- yes | sudo dkp-pacman -Syu devkitPPC ppc-zlib ppc-libmad ppc-libogg ppc-libgd ppc-freetype ppc-libjpeg-turbo ppc-libpng ppc-libvorbisidec ppc-glm ppc-bzip2 --needed
2017-11-19 11:08:20 +01:00
install:
- 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))
- (git clone https://github.com/Maschell/libutils.git || (cd libutils && git pull))
- (cd dynamic_libs && ((make -j8 | grep -c "built ... ") && make install && echo "installed" ) || (echo "no need for make install" && make))
- (cd libutils && ((make -j8 | grep -c "built ... ") && make install && echo "installed" ) || (echo "no need for make install" && make))
before_script:
- cd $TRAVIS_BUILD_DIR/
2017-11-19 11:08:20 +01:00
script:
- make && make install