mirror of
https://github.com/Maschell/libutils.git
synced 2024-11-24 13:09:15 +01:00
[Travis] Some more optimization
This commit is contained in:
parent
4b0f58b781
commit
b339704ac6
10
.travis.yml
10
.travis.yml
@ -6,13 +6,15 @@ dist: trusty
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- DEVKITPRO=$HOME/devkitPro
|
- DEVKITPRO=/opt/devkitpro
|
||||||
|
- DEVKITPPC=/opt/devkitpro/devkitPPC
|
||||||
- PORTLIBREPOS=$HOME/portlibrepos
|
- PORTLIBREPOS=$HOME/portlibrepos
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- "$HOME/.local"
|
- "$HOME/.local"
|
||||||
- "$PORTLIBREPOS"
|
- "$PORTLIBREPOS"
|
||||||
|
- "$DEVKITPRO"
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
@ -22,17 +24,17 @@ addons:
|
|||||||
before_install:
|
before_install:
|
||||||
- mkdir -p "${PORTLIBREPOS}"
|
- mkdir -p "${PORTLIBREPOS}"
|
||||||
- mkdir -p "${DEVKITPRO}"
|
- mkdir -p "${DEVKITPRO}"
|
||||||
- main_cwd=$(pwd)
|
|
||||||
- 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
|
- yes | sudo dkp-pacman -Syu devkitPPC
|
||||||
- export DEVKITPPC=/opt/devkitpro/devkitPPC
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- cd $PORTLIBREPOS
|
- 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/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))
|
- (cd dynamic_libs && ((make -j8 | grep -c "built ... ") && make install && echo "installed" ) || (echo "no need for make install" && make))
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- cd $TRAVIS_BUILD_DIR/
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cd $main_cwd
|
|
||||||
- make && make install
|
- make && make install
|
Loading…
Reference in New Issue
Block a user