gba/.travis.yml

52 lines
1.4 KiB
YAML
Raw Normal View History

language: rust
sudo: false
cache:
2018-12-26 17:52:30 +11:00
# Cache ONLY .cargo, not target/ like usual
directories:
- $HOME/.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-12-08 19:53:37 +11:00
# Obtain the devkitPro tools, using `target/` as a temp directory
- mkdir -p target
- cd target
2018-11-20 19:02:10 +11:00
- 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"
- cd ..
# Run all verificaions, both debug and release
2019-02-11 06:54:29 +11:00
- cargo test --lib
- cargo test --lib --release
- cargo test --tests
- cargo test --tests --release
# Let cargo make take over the rest
- cargo make justrelease
2019-02-11 06:54:29 +11:00
# Test a build of the book so that a failed book build kills this run
- cd book && mdbook build
deploy:
provider: pages
local-dir: target/book-output
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: false
name: DocsBot
verbose: true
on:
branch: master