mirror of
https://github.com/Maschell/libutils.git
synced 2024-11-06 05:05:08 +01:00
Make the travis script compatible
This commit is contained in:
parent
f02d7da869
commit
c8a5dd9654
14
.travis.yml
14
.travis.yml
@ -6,9 +6,9 @@ dist: trusty
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- DEVKITPRO=/opt/devkitpro
|
- DEVKITPRO=/opt/devkitpro
|
||||||
|
- WUT_ROOT=/opt/devkitpro/wut
|
||||||
- DEVKITPPC=/opt/devkitpro/devkitPPC
|
- DEVKITPPC=/opt/devkitpro/devkitPPC
|
||||||
- PORTLIBREPOS=$HOME/portlibrepos
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
@ -27,14 +27,16 @@ before_install:
|
|||||||
- 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 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
|
- 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 devkitPPC --needed
|
||||||
|
- wget $(curl -s https://api.github.com/repos/decaf-emu/wut/releases/latest | grep 'browser_' | grep 'linux' | cut -d\" -f4)
|
||||||
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- cd $PORTLIBREPOS
|
- 7z x -y $(ls | grep "linux") -o${WUT_ROOT}
|
||||||
- ((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))
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- cd $TRAVIS_BUILD_DIR/
|
- cd $TRAVIS_BUILD_DIR/
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make && make install
|
- mkdir build && cd build
|
||||||
|
- cmake -DCMAKE_TOOLCHAIN_FILE=$WUT_ROOT/share/wut.toolchain.cmake -DCMAKE_INSTALL_PREFIX=$WUT_ROOT ../
|
||||||
|
- make install
|
Loading…
Reference in New Issue
Block a user