[Travis] Added travis script

- Don't rely on wiiu_rules
This commit is contained in:
Maschell 2018-05-26 13:23:50 +02:00
parent a8d727ce17
commit 7cbc145f81
2 changed files with 35 additions and 4 deletions

30
.travis.yml Normal file
View File

@ -0,0 +1,30 @@
language: cpp
os: linux
sudo: false
dist: trusty
env:
global:
- DEVKITPRO=/opt/devkitpro
- DEVKITPPC=/opt/devkitpro/devkitPPC
- PORTLIBREPOS=$HOME/portlibrepos
cache:
directories:
- "$HOME/.local"
- "$DEVKITPRO"
addons:
apt:
packages:
- p7zip-full
before_install:
- 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
- yes | sudo dkp-pacman -Syu devkitPPC
script:
- make wiiu-install

View File

@ -8,15 +8,16 @@ $(error "Please set DEVKITPPC in your environment. export DEVKITPPC=<path to>dev
endif endif
ifeq ($(PLATFORM),wiiu) ifeq ($(PLATFORM),wiiu)
include $(DEVKITPPC)/wiiu_rules MACHDEP = -DESPRESSO -mwup -mcpu=750 -meabi -mhard-float
include $(DEVKITPPC)/base_rules
endif endif
ifeq ($(PLATFORM),wii) ifeq ($(PLATFORM),wii)
include $(DEVKITPPC)/wii_rules include $(DEVKITPPC)/wii_rules
endif endif
ifeq ($(PLATFORM),cube) ifeq ($(PLATFORM),cube)
include $(DEVKITPPC)/gamecube_rules include $(DEVKITPPC)/gamecube_rules
endif endif
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
@ -55,7 +56,7 @@ endif
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# any extra libraries we wish to link with the project # any extra libraries we wish to link with the project
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
LIBS := LIBS :=
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# list of directories containing libraries, this must be the top level containing # list of directories containing libraries, this must be the top level containing