gba/.travis.yml

41 lines
1.1 KiB
YAML
Raw Normal View History

language: rust
sudo: false
cache:
- cargo
rust:
- nightly
before_script:
- (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
- sudo dkp-pacman -S gba-dev
- export PATH="$PATH:/opt/devkitpro/devkitARM/bin"
# Test and compile the stuff
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