summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorred031000 <rubenru09@aol.com>2020-09-04 18:22:15 +0100
committerGitHub <noreply@github.com>2020-09-04 13:22:15 -0400
commit3d77c8a379e27c915f941913373c8fa345a162a0 (patch)
tree98ce2e45b44fb7dc338e6021b219838eb27ec1da
parent131e6e433e5184d4483862501278c6cfd4349d81 (diff)
setup travis (#15)
* initial test of travis * stupid mistake * attempt #3 * add v to see what tar is doing * use the correct dkp address * xz * fix unzip * fix unzip 2 * hacky fix for objcopy * no brackets * debugging * chmod * cleanup
-rw-r--r--.travis.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..884bc81
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,41 @@
+dist: bionic
+os: linux
+language: cpp
+env:
+ global:
+ - CC=gcc-8
+ - CXX=g++-8
+ - DEVKITPRO=$HOME
+ - DEVKITPPC=$DEVKITPRO/devkitPPC
+
+addons:
+ apt:
+ packages:
+ - g++-8-multilib
+ - linux-libc-dev
+ - wine32
+ - wine-stable
+
+cache:
+ apt: true
+
+install:
+ - mkdir -p $HOME/download
+ - pushd $HOME/download
+ - travis_retry wget https://cdn.discordapp.com/attachments/751089877579202691/751090418636029972/GC_COMPILERS.zip
+ - travis_retry wget https://www.red031000.com/pbr/baserom.dol
+ - travis_retry wget https://github.com/devkitPro/buildscripts/releases/download/devkitPPC_r35/devkitPPC_r35-linux.tar.xz
+ - travis_retry wget https://www.red031000.com/pbr/powerpc-eabi-objcopy
+ - tar xJf devkitPPC*.tar.xz -C $HOME
+ - sudo chmod 775 powerpc-eabi-objcopy
+ - mv -f powerpc-eabi-objcopy $DEVKITPPC/bin/powerpc-eabi-objcopy
+ - mkdir $TRAVIS_BUILD_DIR/tools/mwcc_compiler
+ - unzip GC_COMPILERS.zip -d $TRAVIS_BUILD_DIR/tools/mwcc_compiler
+ - mv baserom.dol $TRAVIS_BUILD_DIR
+ - popd
+
+script:
+ - travis_retry make
+
+notifications:
+ email: false