|
|
@ -3,7 +3,7 @@ image: bitsmart/rust:1.32
|
|
|
|
stages:
|
|
|
|
stages:
|
|
|
|
- lint
|
|
|
|
- lint
|
|
|
|
- build
|
|
|
|
- build
|
|
|
|
- test
|
|
|
|
- doc
|
|
|
|
|
|
|
|
|
|
|
|
lint:
|
|
|
|
lint:
|
|
|
|
stage: lint
|
|
|
|
stage: lint
|
|
|
@ -28,7 +28,7 @@ build:
|
|
|
|
- cargo build --verbose --features backend_piston,backend_gilrs
|
|
|
|
- cargo build --verbose --features backend_piston,backend_gilrs
|
|
|
|
|
|
|
|
|
|
|
|
test:
|
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
stage: build
|
|
|
|
cache:
|
|
|
|
cache:
|
|
|
|
key: artifacts
|
|
|
|
key: artifacts
|
|
|
|
paths:
|
|
|
|
paths:
|
|
|
@ -37,3 +37,20 @@ test:
|
|
|
|
policy: pull
|
|
|
|
policy: pull
|
|
|
|
script:
|
|
|
|
script:
|
|
|
|
- cargo test --features backend_piston,backend_gilrs
|
|
|
|
- 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
|
|
|
|