aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorpanicbit <[email protected]>2017-07-26 15:07:50 +0200
committerpanicbit <[email protected]>2017-07-26 15:07:50 +0200
commitfb64a5525f0069988c35faabdd633d1b6f831b5d (patch)
tree5af433a9cf218ae7bec7cc4a4380ddba7578ef5e /.travis.yml
parentDon't run cargo test for CI (diff)
downloadctru-rs-fb64a5525f0069988c35faabdd633d1b6f831b5d.tar.xz
ctru-rs-fb64a5525f0069988c35faabdd633d1b6f831b5d.zip
travis: build examples
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml28
1 files 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