diff options
author | Hans-Christoph Steiner <hans@eds.org> | 2020-07-16 13:43:55 +0200 |
---|---|---|
committer | Hans-Christoph Steiner <hans@eds.org> | 2021-12-01 11:09:57 +0100 |
commit | c9399da566eeb525906762fa5693e50c9731f78f (patch) | |
tree | 8e5baa5de1c2fba70bb6498853df1c4149fd90db /.gitlab-ci.yml | |
parent | 40f44d627223a45f7a5f512fa9179e60f82df23f (diff) | |
download | snowflake-c9399da566eeb525906762fa5693e50c9731f78f.tar.gz snowflake-c9399da566eeb525906762fa5693e50c9731f78f.zip |
gitlab-ci: expire artifacts in 1 week, improve gradle caching, etc.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 497462f..c483873 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,7 +8,7 @@ DEBIAN_FRONTEND: noninteractive GOPATH: /usr/share/gocode before_script: - - apt-get -qy update + - apt-get update - apt-get -qy install --no-install-recommends build-essential ca-certificates @@ -35,13 +35,13 @@ variables: DEBIAN_FRONTEND: noninteractive before_script: - - apt-get -qy update + - apt-get update - apt-get -qy install --no-install-recommends ca-certificates git lbzip2 -.go_test: &go-test +.go-test: &go-test - test -z "$(go fmt ./...)" - go vet ./... - go test -v -race ./... @@ -57,10 +57,13 @@ - client/*.aar - client/*.jar - client/client - expire_in: 1 day + expire_in: 1 week when: on_success after_script: - echo "Download debug artifacts from https://gitlab.com/${CI_PROJECT_PATH}/-/jobs" + # this file changes every time but should not be cached + - rm -f $GRADLE_USER_HOME/caches/modules-2/modules-2.lock + - rm -rf $GRADLE_USER_HOME/caches/*/plugin-resolution/ # -- jobs ------------------------------------------------------------ |