Browse Source

travis: build examples

pull/10/head
panicbit 8 years ago
parent
commit
fb64a5525f
  1. 28
      .travis.yml

28
.travis.yml

@ -8,6 +8,30 @@ matrix:
allow_failures: allow_failures:
- rust: nightly - 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: script:
- cd ctr-std - (cd ctr-std && cargo build)
- cargo build - | # Build all examples
for example in examples/*; do
[ -e "$example" ] || continue
cd "$example" && xargo build
done

Loading…
Cancel
Save