From 838ef34d4c493cdb26a8e4a9e7580f25cd62d69f Mon Sep 17 00:00:00 2001 From: panicbit Date: Wed, 26 Jul 2017 04:11:30 +0200 Subject: [PATCH 1/3] Don't run cargo test for CI --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0ff067e..cc61346 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,4 +11,3 @@ matrix: script: - cd ctr-std - cargo build - - cargo test From fb64a5525f0069988c35faabdd633d1b6f831b5d Mon Sep 17 00:00:00 2001 From: panicbit Date: Wed, 26 Jul 2017 15:07:50 +0200 Subject: [PATCH 2/3] travis: build examples --- .travis.yml | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index cc61346..52610de 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,30 @@ matrix: allow_failures: - rust: nightly +install: + - set -euo pipefail + - pushd /tmp + + # Install DevkitARM + - export DEVKITPRO="$HOME/dkp" + - export DEVKITARM="$DEVKITPRO/devkitARM" + - export PATH="$PATH:$DEVKITARM/bin" + - wget https://raw.githubusercontent.com/devkitPro/installer/master/perl/devkitARMupdate.pl + - chmod +x devkitARMupdate.pl + - ./devkitARMupdate.pl "$DEVKITPRO" + + # Install Xargo + - cargo install xargo --git https://github.com/FenrirWolf/xargo --rev metadata + + # Install Rust source + - rustup component add rust-src + + - popd + script: - - cd ctr-std - - cargo build + - (cd ctr-std && cargo build) + - | # Build all examples + for example in examples/*; do + [ -e "$example" ] || continue + cd "$example" && xargo build + done From 163f6bb69eb42fd527ec492775508e16e0979e95 Mon Sep 17 00:00:00 2001 From: panicbit Date: Wed, 26 Jul 2017 15:33:34 +0200 Subject: [PATCH 3/3] travis: allow unbound variables again --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 52610de..3353577 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ matrix: - rust: nightly install: - - set -euo pipefail + - set -eo pipefail - pushd /tmp # Install DevkitARM