image: rust:latest
stages:
- test
- doc
before_script:
- apt-get update -yqq
- apt-get install -yqq build-essential
- rustup default nightly-2020-05-07
test:
stage: test
script:
- rustc --version && cargo --version
- cargo test --all --verbose
pages:
stage: doc
script:
- rustc --version && cargo --version
- cargo doc --all --verbose --no-deps
- mv ./target/doc ./public
- echo '<meta http-equiv="refresh" content="0; url=polymorph_allocator">' > ./public/index.html
artifacts:
paths:
- public
only:
- main