Disable GitLab CI cache

This commit is contained in:
Konrad Borowski 2020-03-10 09:03:03 +00:00
parent 3400f23da4
commit 4319af8dec

View File

@ -13,12 +13,8 @@ build:release: &build
stage: test stage: test
image: rust:latest image: rust:latest
script: script:
- &init rustc --version && cargo --version && mv registry /usr/local/cargo || true - &init rustc --version && cargo --version
- cargo build --release --verbose - cargo build --release --verbose
- &clean_cargo |
cargo install cargo-cache --git https://github.com/matthiaskrgr/cargo-cache --no-default-features --features ci-autoclean &&
cargo-cache &&
mv /usr/local/cargo/registry .
needs: needs:
- build:webpack - build:webpack
artifacts: artifacts:
@ -27,11 +23,6 @@ build:release: &build
- migrations - migrations
- static - static
- target/release/pastebinrun - target/release/pastebinrun
cache:
key: release
paths:
- registry
- target
test:stable: &test test:stable: &test
stage: test stage: test
@ -47,14 +38,8 @@ test:stable: &test
script: script:
- *init - *init
- DATABASE_URL=postgresql://user:password@postgres/db SANDBOX_URL=http://sandbox:8888 cargo test --verbose --features=database_tests,sandbox_tests - DATABASE_URL=postgresql://user:password@postgres/db SANDBOX_URL=http://sandbox:8888 cargo test --verbose --features=database_tests,sandbox_tests
- *clean_cargo
needs: needs:
- build:webpack - build:webpack
cache:
key: ${CI_JOB_NAME}
paths:
- registry
- target
test:clippy: test:clippy:
<<: *test <<: *test
@ -62,7 +47,6 @@ test:clippy:
- *init - *init
- rustup component add clippy - rustup component add clippy
- cargo clippy --verbose - cargo clippy --verbose
- *clean_cargo
test:1.39: test:1.39:
<<: *test <<: *test