aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml29
1 files changed, 26 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 0ff067e..3353577 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,7 +8,30 @@ matrix:
allow_failures:
- rust: nightly
+install:
+ - set -eo 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
- - cargo test
+ - (cd ctr-std && cargo build)
+ - | # Build all examples
+ for example in examples/*; do
+ [ -e "$example" ] || continue
+ cd "$example" && xargo build
+ done