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.
40 lines
612 B
YAML
40 lines
612 B
YAML
image: bitsmart/rust:1.32
|
|
|
|
stages:
|
|
- lint
|
|
- build
|
|
- test
|
|
|
|
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: test
|
|
cache:
|
|
key: artifacts
|
|
paths:
|
|
- target
|
|
- Cargo.lock
|
|
policy: pull
|
|
script:
|
|
- cargo test --features backend_piston,backend_gilrs
|