commands:
make: !Command
description: Build the library
container: ubuntu
run: [cargo, build]
make-wasm: !Command
description: Build wasm library (just to check it's buildable)
container: ubuntu
run: [cargo, build, --target=wasm32-unknown-unknown]
cargo: !Command
description: Run arbitrary cargo command
symlink-name: cargo
container: ubuntu
run: [cargo]
test: !Command
description: Run tests
container: ubuntu
run: [cargo, test]
_bulk: !Command
description: Run `bulk` command (for version bookkeeping)
container: ubuntu
run: [bulk]
containers:
ubuntu:
setup:
- !Ubuntu xenial
- !Install [ca-certificates, git, build-essential, vim]
- !TarInstall
url: "https://static.rust-lang.org/dist/rust-1.42.0-x86_64-unknown-linux-gnu.tar.gz"
script: "./install.sh --prefix=/usr \
--components=rustc,rust-std-x86_64-unknown-linux-gnu,cargo"
- !TarInstall
url: "https://static.rust-lang.org/dist/rust-std-1.42.0-wasm32-unknown-unknown.tar.gz"
script: "./install.sh --prefix=/usr --components=rust-std-wasm32-unknown-unknown"
- &bulk !Tar
url: "https://github.com/tailhook/bulk/releases/download/v0.4.10/bulk-v0.4.10.tar.gz"
sha256: 481513f8a0306a9857d045497fb5b50b50a51e9ff748909ecf7d2bda1de275ab
path: /
- !Sh |
cargo install cargo-fix --root=/usr
environ:
HOME: /work/target
RUST_BACKTRACE: 1