You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
882 B
YAML

image: bitsmart/rust:1.32
stages:
- lint
- build
- doc
lint:
stage: lint
cache:
key: artifacts
paths:
- target
- Cargo.lock
policy: push
script:
- cargo clippy --features backend_piston,backend_gilrs
build:
stage: build
cache:
key: artifacts
paths:
- target
- Cargo.lock
policy: pull
script:
- cargo build --verbose --features backend_piston,backend_gilrs
test:
stage: build
cache:
key: artifacts
paths:
- target
- Cargo.lock
policy: pull
script:
- cargo test --features backend_piston,backend_gilrs
doc:
stage: doc
cache:
key: artifacts
paths:
- target
- Cargo.lock
policy: pull
script:
- cargo doc --features backend_piston,backend_gilrs
- mv target/doc/prongs/ public/
artifacts:
path:
- public
only:
- master