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