gba/.travis.yml

43 lines
1.2 KiB
YAML
Raw Normal View History

language: rust
sudo: false
cache:
- cargo
rust:
- nightly
before_script:
2018-11-20 20:42:59 +11:00
- rustup component add rust-src
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
2018-11-20 19:02:10 +11:00
- (test -x $HOME/.cargo/bin/cargo-xbuild || cargo install cargo-xbuild)
- (test -x $HOME/.cargo/bin/cargo-make || cargo install cargo-make)
- (test -x $HOME/.cargo/bin/mdbook || cargo install mdbook)
- cargo install-update -a
script:
2018-11-20 19:02:10 +11:00
# Obtain the devkitPro tools
- wget https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb
- sudo dpkg -i devkitpro-pacman.deb
- sudo dkp-pacman -Sy
- sudo dkp-pacman -Syu
2018-11-20 20:11:18 +11:00
- sudo dkp-pacman -S -v --noconfirm gba-tools devkitARM
- export PATH="$PATH:/opt/devkitpro/devkitARM/bin"
2018-11-20 21:05:34 +11:00
- export PATH="$PATH:/opt/devkitpro/tools/bin"
2018-11-20 20:11:18 +11:00
# Test the lib and then compile all examples with `cargo make`
2018-11-15 13:54:48 +11:00
- cargo test --lib && cargo test --lib --release
2018-11-20 19:02:10 +11:00
- cargo make
# Test build the book so that a failed book build kills this run
- cd book && mdbook build
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
target-branch: master
keep-history: true
name: DocsBot
verbose: true
on:
branch: master