mirror of
https://github.com/Maschell/hid_to_vpad.git
synced 2024-11-16 20:09:16 +01:00
[Travis] Now using pacman to get devkitPPC
This commit is contained in:
parent
72f7982df5
commit
87786e1f77
58
.travis.yml
58
.travis.yml
@ -1,46 +1,48 @@
|
|||||||
language: c
|
language: cpp
|
||||||
sudo: false
|
|
||||||
|
|
||||||
os:
|
os: linux
|
||||||
- linux
|
sudo: false
|
||||||
|
dist: trusty
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- DEVKITPRO=$HOME/devkitPro
|
- DEVKITPRO=/opt/devkitpro
|
||||||
- DEVKITPPC=${DEVKITPRO}/devkitPPC
|
- DEVKITPPC=/opt/devkitpro/devkitPPC
|
||||||
|
- PORTLIBREPOS=$HOME/portlibrepos
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- ${DEVKITPRO}
|
- "$HOME/.local"
|
||||||
|
- "$PORTLIBREPOS"
|
||||||
|
- "$DEVKITPRO"
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- p7zip-full
|
- p7zip-full
|
||||||
- zip
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
|
- mkdir -p "${PORTLIBREPOS}"
|
||||||
- mkdir -p "${DEVKITPRO}"
|
- mkdir -p "${DEVKITPRO}"
|
||||||
- wget https://downloads.devkitpro.org/devkitPPC_r29-1-x86_64-linux.tar.bz2 -O devkitPPC-linux.tar.bz2
|
- 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
|
||||||
- wget https://github.com/Maschell/dynamic_libs/archive/lib.tar.gz -O dynamic_libs.tar.gz
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo dpkg -i /tmp/devkitpro-pacman.deb; fi
|
||||||
- wget https://github.com/Maschell/libutils/archive/master.tar.gz -O libutils.tar.gz
|
- yes | sudo dkp-pacman -Syu devkitPPC
|
||||||
- wget https://github.com/Maschell/libgui/archive/master.tar.gz -O libgui.tar.gz
|
- yes | sudo dkp-pacman -Syu general-tools
|
||||||
- wget https://github.com/Maschell/controller_patcher/archive/master.tar.gz -O controller_patcher.tar.gz
|
|
||||||
- wget https://github.com/Maschell/controller_patcher_configs/archive/master.tar.gz -O controller_patcher_configs.tar.gz
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- tar -xjf devkitPPC-linux.tar.bz2 -C ${DEVKITPRO}/
|
- cd $PORTLIBREPOS
|
||||||
- tar -xzvf dynamic_libs.tar.gz
|
- ((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))
|
||||||
- tar -xzvf libutils.tar.gz
|
- (git clone https://github.com/Maschell/libutils.git || (cd libutils && git pull))
|
||||||
- tar -xzvf libgui.tar.gz
|
- ((git clone https://github.com/Maschell/libgui.git && (7z x -y ./libgui/libs/portlibs.zip -o${DEVKITPRO})) || (cd libgui && git pull))
|
||||||
- tar -xzvf controller_patcher.tar.gz
|
- (git clone https://github.com/Maschell/controller_patcher.git || (cd controller_patcher && git pull))
|
||||||
- tar -xzvf controller_patcher_configs.tar.gz
|
- (git clone https://github.com/Maschell/controller_patcher_configs.git || (cd controller_patcher_configs && git pull))
|
||||||
- 7z x -y ./dynamic_libs-lib/libs/portlibs.zip -o${DEVKITPRO}
|
- (cd dynamic_libs && ((make -j8 | grep -c "built ... ") && make install && echo "installed" ) || (echo "no need for make install" && make))
|
||||||
- 7z x -y ./libgui-master/libs/portlibs.zip -o${DEVKITPRO}
|
- (cd libutils && ((make -j8 | grep -c "built ... ") && make install && echo "installed" ) || (echo "no need for make install" && make))
|
||||||
- (cd dynamic_libs-lib && make -j8 && make install)
|
- (cd libgui && ((make -j8 | grep -c "built ... ") && make install) || echo "no need for make install")
|
||||||
- (cd libutils-master && make -j8 && make install)
|
- (cd controller_patcher && ((make -j8 | grep -c "built ... ") && make install && echo "installed" ) || (echo "no need for make install" && make))
|
||||||
- (cd libgui-master && make -j8 && make install)
|
|
||||||
- (cd controller_patcher-master && make -j8 && make install)
|
before_script:
|
||||||
|
- cd $TRAVIS_BUILD_DIR/
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make -j8
|
- make -j8
|
||||||
@ -49,7 +51,7 @@ before_deploy:
|
|||||||
- mkdir -p "wiiu/apps/hidtovpad"
|
- mkdir -p "wiiu/apps/hidtovpad"
|
||||||
- mkdir -p "wiiu/apps/hidtovpad/languages"
|
- mkdir -p "wiiu/apps/hidtovpad/languages"
|
||||||
- mkdir -p "wiiu/controller"
|
- mkdir -p "wiiu/controller"
|
||||||
- cp ./controller_patcher_configs-master/*.ini ./wiiu/controller
|
- cp ./controller_patcher_configs/*.ini ./wiiu/controller
|
||||||
- cp ./languages/*.lang ./wiiu/apps/hidtovpad/languages
|
- cp ./languages/*.lang ./wiiu/apps/hidtovpad/languages
|
||||||
- commit="$(git rev-parse --short=7 HEAD)"
|
- commit="$(git rev-parse --short=7 HEAD)"
|
||||||
- chmod +x gitrev.sh
|
- chmod +x gitrev.sh
|
||||||
|
2
Makefile
2
Makefile
@ -11,7 +11,7 @@ endif
|
|||||||
ifeq ($(strip $(DEVKITPRO)),)
|
ifeq ($(strip $(DEVKITPRO)),)
|
||||||
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPRO")
|
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPRO")
|
||||||
endif
|
endif
|
||||||
export PATH := $(DEVKITPPC)/bin:$(PORTLIBS)/bin:$(PATH)
|
export PATH := $(DEVKITPPC)/bin:$(PORTLIBS)/bin:$(PATH):$(DEVKITPRO)/tools/bin
|
||||||
export PORTLIBS := $(DEVKITPRO)/portlibs/ppc
|
export PORTLIBS := $(DEVKITPRO)/portlibs/ppc
|
||||||
|
|
||||||
PREFIX := powerpc-eabi-
|
PREFIX := powerpc-eabi-
|
||||||
|
Loading…
Reference in New Issue
Block a user