2018-11-14 06:47:52 +11:00
|
|
|
language: rust
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
cache:
|
|
|
|
- cargo
|
|
|
|
|
|
|
|
rust:
|
|
|
|
- nightly
|
|
|
|
|
|
|
|
before_script:
|
2018-11-20 20:42:59 +11:00
|
|
|
- rustup component add rust-src
|
2018-12-25 06:12:33 +11:00
|
|
|
#- rustup component add clippy --toolchain=nightly
|
2018-11-14 06:47:52 +11:00
|
|
|
- (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)
|
2018-11-14 06:47:52 +11:00
|
|
|
- cargo install-update -a
|
|
|
|
|
|
|
|
script:
|
2018-12-25 09:43:36 +11:00
|
|
|
# Travis seems to cache for some dumb reason, but we don't want that at all.
|
|
|
|
- rm -fr target
|
2018-12-08 19:53:37 +11:00
|
|
|
# Obtain the devkitPro tools, using `target/` as a temp directory
|
2018-11-22 10:41:11 +11:00
|
|
|
- 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
|
2018-11-20 19:09:51 +11:00
|
|
|
- export PATH="$PATH:/opt/devkitpro/devkitARM/bin"
|
2018-11-20 21:05:34 +11:00
|
|
|
- export PATH="$PATH:/opt/devkitpro/tools/bin"
|
2018-11-22 10:41:11 +11:00
|
|
|
- cd ..
|
2018-12-21 10:15:23 +11:00
|
|
|
# Run all verificaions, both debug and release
|
2018-12-25 06:12:33 +11:00
|
|
|
#- cargo clippy
|
|
|
|
#- cargo clippy --release
|
2018-12-20 14:58:41 +11:00
|
|
|
- cargo test --no-fail-fast --lib
|
|
|
|
- cargo test --no-fail-fast --lib --release
|
|
|
|
- cargo test --no-fail-fast --tests
|
|
|
|
- cargo test --no-fail-fast --tests --release
|
2018-12-21 10:15:23 +11:00
|
|
|
# Let cargo make take over the rest
|
2018-12-21 12:13:46 +11:00
|
|
|
- cargo make justrelease
|
2018-11-20 19:02:10 +11:00
|
|
|
# Test build the book so that a failed book build kills this run
|
2018-11-14 06:47:52 +11:00
|
|
|
- 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
|