before_script:
- git config --global credential.helper cache
- echo url=https://gitlab-ci-token:$CI_JOB_TOKEN@gitlab.com | git credential approve
.cargo:test:
stage: test
script:
- cargo fmt -- --check
- cargo clippy --all-targets --features=capi,controller,kubectl,k8s-openapi/v1_23
- cargo test --all-targets --all-features
stages:
- test
stable:test:
extends: .cargo:test
image: rustdocker/rust:stable
.nightly:test:
extends: .cargo:test
image: rustdocker/rust:nightly