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
6 years ago
6 years ago
stages:
- lint
6 years ago
- build
- doc
6 years ago
lint:
stage: lint
6 years ago
cache:
key: artifacts
paths:
- target
- Cargo.lock
6 years ago
policy: push
6 years ago
script:
- cargo clippy --features backend_piston,backend_gilrs
6 years ago
6 years ago
build:
6 years ago
stage: build
6 years ago
cache:
key: artifacts
paths:
- target
- Cargo.lock
6 years ago
policy: pull
6 years ago
script:
- cargo build --verbose --features backend_piston,backend_gilrs
6 years ago
test:
stage: build
6 years ago
cache:
key: artifacts
paths:
- target
- Cargo.lock
6 years ago
policy: pull
6 years ago
script:
6 years ago
- 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