stages: - build - test - sanitary image: name: rust:latest build: stage: build script: - rustc --version - cargo --version - cargo update - cargo build cache: key: "$CI_COMMIT_REF_SLUG" paths: - target/ test: stage: test script: - rustc --version - cargo --version - cargo test cache: key: "$CI_COMMIT_REF_SLUG" paths: - target/ policy: pull bench-test: stage: test script: - rustc --version - cargo --version - cargo bench -- --test cache: key: "$CI_COMMIT_REF_SLUG" paths: - target/ build-small_rng: stage: build script: - rustc --version - cargo --version - cargo update - cargo build --features="small_rng" cache: key: "$CI_COMMIT_REF_SLUG" paths: - target/ test-small_rng: stage: test script: - rustc --version - cargo --version - cargo test --features="small_rng" cache: key: "$CI_COMMIT_REF_SLUG" paths: - target/ policy: pull bench-test-small_rng: stage: test script: - rustc --version - cargo --version - cargo bench --features="small_rng" -- --test cache: key: "$CI_COMMIT_REF_SLUG" paths: - target/ sanitary: stage: sanitary script: - '! grep -wr "unimplemented!()" src/' - '! grep -wr "panic!" src/'