language: cpp os: linux sudo: false dist: trusty branches: only: - master env: global: - DEVKITPRO=/opt/devkitpro - WUT_ROOT=/opt/devkitpro/wut - DEVKITPPC=/opt/devkitpro/devkitPPC - PORTLIBREPOS=$HOME/portlibrepos cache: directories: - "$HOME/.local" - "$DEVKITPRO" addons: apt: packages: - p7zip-full before_install: - mkdir -p "${PORTLIBREPOS}" - 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 --needed - yes | sudo dkp-pacman -Syu general-tools --needed - wget https://github.com/decaf-emu/wut/releases/download/1.0.0-beta/wut.linux64.7z install: - 7z x -y $(ls | grep "linux") -o${WUT_ROOT} - cd $PORTLIBREPOS - git clone https://github.com/Maschell/WiiUPluginSystem.git - git clone https://github.com/Maschell/libutils.git -b wut - cd WiiUPluginSystem - make && make install - cd $PORTLIBREPOS - cd libutils - mkdir build && cd build - cmake -DCMAKE_TOOLCHAIN_FILE=$WUT_ROOT/share/wut.toolchain.cmake -DCMAKE_INSTALL_PREFIX=$WUT_ROOT ../ - make install - cd $PORTLIBREPOS before_script: - cd $TRAVIS_BUILD_DIR/ script: - make -j8 before_deploy: - cd $TRAVIS_BUILD_DIR/ - mkdir -p "wiiu/plugins" - commit="$(git rev-parse --short=7 HEAD)" - find -type f -name "*.mod" | xargs -i cp {} wiiu/plugins - zip -r wups_playground_plugins_$commit.zip wiiu - git config --local user.name "Maschell" - git config --local user.email "Maschell@gmx.de" - commitLog="$(git log -1 --pretty=%B)" - commitMessage="$(echo -e "WUPSPluginPlayground nightly build. Not a stable release. Expect bugs! \nOnly use the plugins with the bundled loaded as they may not work on others." && echo -e "\nCommitlog:\n")" - git tag "WUPSPluginPlayground-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)" -a -m "$commitMessage" -m "$commitLog" deploy: provider: releases skip_cleanup: true api_key: secure: c1OMwjNnnbAGInzcfAGFVaBU7HfK4MFvEj6zsihCYBP26a+1+yg5+mBrgI9U5bJvydfPUd2PW5fjwpQM26o3MKWdr8UKjx8/175khug5d94O8IgT8C2LgabImXPMI9FbP5Qgmm2M/LS9XnH2+lj7PdR0O5tEkmj2Xn7beotWD8uyVqconfEMvXhpOrqCW3rd9hPnomJ2HWMhvO/+41OlF+fCnxfXH8xfB9HYyQ63eQb0el1yUFupsdj0IzAqtse4zkPSsLgTnJ2TGhdynXoOU2hmRYigDVrOy5kD8Dl+tnPpUnvkNGRKXwo/q2KR3vev5Yp2EbldDLWCR/IScWitPnN2dkn/O8gLPQ+P+aqANrkakoEsWiHvKZgG+eZ6zXCn61cemOiwhjkMl6lf96XSQ9LHyrRP6XrEHJIuALAtoWfQrdKN7P/4V8hGr3tSxgy+hHcs/AXq71lIS11PaCLszfgOP8yq8HQI4+1hD2UrJ1+c3Q7N51K0IRNbm6URbZ/vUcx5ABECcK6F2tVCY7QCb5bzcfiTUr6x1SDjRoHrZhLQBwIUj4uR8R1sfbZ8q2vd1V84F+rLUwT7IOy3KWZAjePrrk0nVTs/BMneRr/eZZR0nlG0c1nADU7m6Whcym+ptMGpJslJCbH42X6Q3w5W1yB/wYpPSsPkeOUItQE6Gtk= file: wups_playground_plugins_$commit.zip on: repo: Maschell/WUPSPluginPlayground