mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 04:42:43 +01:00
50 lines
1.7 KiB
YAML
50 lines
1.7 KiB
YAML
language: cpp
|
|
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
sudo: required
|
|
dist: trusty
|
|
- os: osx
|
|
osx_image: xcode9.3
|
|
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
- sourceline: 'ppa:cginternals/backports-ppa'
|
|
packages:
|
|
- gcc-7
|
|
- g++-7
|
|
- zlib1g-dev
|
|
|
|
cache:
|
|
directories:
|
|
- "$HOME/.local"
|
|
|
|
git:
|
|
submodules: true
|
|
|
|
install:
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 90; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90; 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" == "osx" ]]; then wget https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman-installer.pkg -O /tmp/devkitpro-pacman-installer.pkg; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo installer -pkg /tmp/devkitpro-pacman-installer.pkg -target /; fi
|
|
- yes | sudo dkp-pacman -Syu devkitPPC
|
|
- export DEVKITPPC=/opt/devkitpro/devkitPPC
|
|
|
|
script:
|
|
- cd "$TRAVIS_BUILD_DIR"
|
|
- mkdir build && cd build
|
|
- cmake -DCMAKE_INSTALL_PREFIX=wut_install ../
|
|
- make -j4 install
|
|
- export WUT_ROOT=$PWD/wut_install
|
|
- cd ../
|
|
- cd samples/helloworld
|
|
- mkdir build && cd build
|
|
- chmod +x $WUT_ROOT/bin/elf2rpl
|
|
- cmake -DCMAKE_TOOLCHAIN_FILE=$WUT_ROOT/share/wut.toolchain.cmake -DCMAKE_INSTALL_PREFIX=$WUT_ROOT/samples ../
|
|
- make -j4 VERBOSE=TRUE install
|