containers:
doc:
setup:
- !Alpine v3.4
- !Repo edge/main
- !Install [make, py-sphinx]
build:
setup:
- !Ubuntu xenial
- !Install [make, wget, ca-certificates, build-essential]
- !TarInstall
url: "https://static.rust-lang.org/dist/rust-1.13.0-x86_64-unknown-linux-gnu.tar.gz"
script: "./install.sh --prefix=/usr \
--components=rustc,rust-std-x86_64-unknown-linux-gnu,cargo"
environ:
HOME: /work/target
commands:
make: !Command
container: build
run: [cargo, build]
test: !Command
environ: { RUST_BACKTRACE: 1 }
container: build
run: [cargo, test]
cargo: !Command
container: build
run: [cargo]
doc: !Command
container: doc
description: Build sphinx documentation
(user guide rather than API reference)
work-dir: doc
epilog: |
------------------------------------------------------------------------
Docs are built in doc/_build/html/index.html
run: [make, html]