From e0f1b03edf6ea54448d0708ac5451ad0c13d053e Mon Sep 17 00:00:00 2001 From: James Benton Date: Fri, 2 Jun 2017 13:49:09 +0100 Subject: [PATCH] Add .travis.yml --- .travis.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..d7fa2c8 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,37 @@ +language: cpp + +matrix: + include: + - os: linux + dist: trusty + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-6 + - zlib1g-dev + env: + - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6" + +cache: + directories: + - "$HOME/.local" + +before_install: + - eval "${MATRIX_EVAL}" + +git: + submodules: true + +before_script: + - wget https://freefr.dl.sourceforge.net/project/devkitpro/devkitPPC/devkitPPC_r29-1/devkitPPC_r29-1-x86_64-linux.tar.bz2 -O /tmp/devkitPPC.tar.bz2 + - tar -xjf /tmp/devkitPPC.tar.bz2 + - export DEVKITPPC=$PWD/devkitPPC + +script: + - cd "$TRAVIS_BUILD_DIR" + - mkdir cbuild && cd cbuild + - cmake -DCMAKE_INSTALL_PREFIX=/tmp/wut_install ../ + - make -j4 + - make install