2019-08-26 16:41:55 -04:00
|
|
|
.default-retry:
|
2019-04-12 04:56:38 -04:00
|
|
|
retry:
|
2019-06-05 12:31:35 -04:00
|
|
|
max: 2 # This is confusing but this means "3 runs at max".
|
2019-04-12 04:56:38 -04:00
|
|
|
when:
|
|
|
|
- unknown_failure
|
|
|
|
- api_failure
|
|
|
|
- runner_system_failure
|
2020-02-06 04:09:06 -05:00
|
|
|
- job_execution_timeout
|
|
|
|
- stuck_or_timeout_failure
|
2019-04-12 04:56:38 -04:00
|
|
|
|
2019-08-26 16:41:55 -04:00
|
|
|
.default-before_script:
|
|
|
|
before_script:
|
2020-01-23 07:08:38 -05:00
|
|
|
- '[ "$FOSS_ONLY" = "1" ] && rm -rf ee/ qa/spec/ee/ qa/qa/specs/features/ee/ qa/qa/ee/ qa/qa/ee.rb'
|
2019-09-24 11:06:34 -04:00
|
|
|
- export GOPATH=$CI_PROJECT_DIR/.go
|
|
|
|
- mkdir -p $GOPATH
|
2019-08-26 16:41:55 -04:00
|
|
|
- source scripts/utils.sh
|
|
|
|
- source scripts/prepare_build.sh
|
2019-04-12 04:56:38 -04:00
|
|
|
|
2021-02-02 01:09:47 -05:00
|
|
|
.setup-test-env-cache:
|
2019-04-12 04:56:38 -04:00
|
|
|
cache:
|
2021-02-02 01:09:47 -05:00
|
|
|
key: "setup-test-env-v1"
|
2019-08-26 16:41:55 -04:00
|
|
|
paths:
|
2020-06-02 08:08:33 -04:00
|
|
|
- vendor/ruby/
|
|
|
|
- vendor/gitaly-ruby/
|
|
|
|
- .go/pkg/mod/
|
2019-04-12 04:56:38 -04:00
|
|
|
policy: pull
|
|
|
|
|
2021-02-02 01:09:47 -05:00
|
|
|
.rails-cache:
|
|
|
|
cache:
|
|
|
|
key: "rails-v4"
|
|
|
|
paths:
|
|
|
|
- vendor/ruby/
|
|
|
|
- vendor/gitaly-ruby/
|
|
|
|
policy: pull
|
|
|
|
|
2020-06-02 08:08:33 -04:00
|
|
|
.static-analysis-cache:
|
|
|
|
cache:
|
2020-10-23 14:08:31 -04:00
|
|
|
key: "static-analysis-v2"
|
2020-06-02 08:08:33 -04:00
|
|
|
paths:
|
|
|
|
- vendor/ruby/
|
|
|
|
- node_modules/
|
|
|
|
- tmp/rubocop_cache/
|
|
|
|
policy: pull
|
|
|
|
|
2020-09-22 08:09:39 -04:00
|
|
|
.coverage-cache:
|
|
|
|
cache:
|
|
|
|
key: "coverage-cache-v1"
|
|
|
|
paths:
|
|
|
|
- vendor/ruby/
|
|
|
|
policy: pull
|
|
|
|
|
2021-03-12 07:09:33 -05:00
|
|
|
.danger-review-cache:
|
|
|
|
cache:
|
|
|
|
key: "danger-review-v1"
|
|
|
|
paths:
|
|
|
|
- vendor/ruby/
|
|
|
|
- node_modules/
|
|
|
|
policy: pull
|
|
|
|
|
2020-06-02 08:08:33 -04:00
|
|
|
.qa-cache:
|
2020-05-19 05:08:12 -04:00
|
|
|
cache:
|
2020-10-23 14:08:31 -04:00
|
|
|
key: "qa-v2"
|
2020-05-19 05:08:12 -04:00
|
|
|
paths:
|
2020-06-02 08:08:33 -04:00
|
|
|
- qa/vendor/ruby/
|
2020-05-19 05:08:12 -04:00
|
|
|
policy: pull
|
|
|
|
|
2020-05-11 11:09:37 -04:00
|
|
|
.yarn-cache:
|
|
|
|
cache:
|
2020-06-02 08:08:33 -04:00
|
|
|
key: "yarn-v1"
|
2020-05-11 11:09:37 -04:00
|
|
|
paths:
|
|
|
|
- node_modules/
|
2020-06-02 08:08:33 -04:00
|
|
|
- tmp/cache/webpack-dlls/
|
|
|
|
policy: pull
|
|
|
|
|
|
|
|
.assets-compile-cache:
|
|
|
|
cache:
|
|
|
|
key: "assets-compile-${NODE_ENV}-v1"
|
|
|
|
paths:
|
|
|
|
- vendor/ruby/
|
|
|
|
- node_modules/
|
|
|
|
- assets-hash.txt
|
|
|
|
- public/assets/webpack/
|
|
|
|
- tmp/cache/assets/sprockets/
|
|
|
|
- tmp/cache/babel-loader/
|
|
|
|
- tmp/cache/vue-loader/
|
|
|
|
- tmp/cache/webpack-dlls/
|
|
|
|
policy: pull
|
2020-05-11 11:09:37 -04:00
|
|
|
|
2020-02-20 04:09:13 -05:00
|
|
|
.use-pg11:
|
2021-03-17 05:09:27 -04:00
|
|
|
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.7.2.patched-golang-1.14-git-2.29-lfs-2.9-chrome-89-node-14.15-yarn-1.22-postgresql-11-graphicsmagick-1.3.36"
|
2020-02-20 04:09:13 -05:00
|
|
|
services:
|
|
|
|
- name: postgres:11.6
|
|
|
|
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
|
2021-01-28 04:09:07 -05:00
|
|
|
- name: redis:5.0-alpine
|
2020-02-20 04:09:13 -05:00
|
|
|
variables:
|
|
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
|
|
|
|
2020-07-09 08:08:56 -04:00
|
|
|
.use-pg12:
|
2021-03-17 05:09:27 -04:00
|
|
|
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.7.2.patched-golang-1.14-git-2.29-lfs-2.9-chrome-89-node-14.15-yarn-1.22-postgresql-12-graphicsmagick-1.3.36"
|
2020-07-09 08:08:56 -04:00
|
|
|
services:
|
|
|
|
- name: postgres:12
|
|
|
|
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
|
2021-01-28 04:09:07 -05:00
|
|
|
- name: redis:5.0-alpine
|
2020-07-09 08:08:56 -04:00
|
|
|
variables:
|
|
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
|
|
|
|
2020-02-20 04:09:13 -05:00
|
|
|
.use-pg11-ee:
|
2021-03-17 05:09:27 -04:00
|
|
|
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.7.2.patched-golang-1.14-git-2.29-lfs-2.9-chrome-89-node-14.15-yarn-1.22-postgresql-11-graphicsmagick-1.3.36"
|
2020-02-20 04:09:13 -05:00
|
|
|
services:
|
|
|
|
- name: postgres:11.6
|
|
|
|
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
|
2021-01-28 04:09:07 -05:00
|
|
|
- name: redis:5.0-alpine
|
2021-03-10 04:09:29 -05:00
|
|
|
- name: elasticsearch:7.11.1
|
2020-10-12 11:08:32 -04:00
|
|
|
command: ["elasticsearch", "-E", "discovery.type=single-node"]
|
2020-02-20 04:09:13 -05:00
|
|
|
variables:
|
|
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
|
|
|
|
2020-07-09 08:08:56 -04:00
|
|
|
.use-pg12-ee:
|
2021-03-17 05:09:27 -04:00
|
|
|
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.7.2.patched-golang-1.14-git-2.29-lfs-2.9-chrome-89-node-14.15-yarn-1.22-postgresql-12-graphicsmagick-1.3.36"
|
2020-07-09 08:08:56 -04:00
|
|
|
services:
|
|
|
|
- name: postgres:12
|
|
|
|
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
|
2021-01-28 04:09:07 -05:00
|
|
|
- name: redis:5.0-alpine
|
2021-03-10 04:09:29 -05:00
|
|
|
- name: elasticsearch:7.11.1
|
2020-10-12 11:08:32 -04:00
|
|
|
command: ["elasticsearch", "-E", "discovery.type=single-node"]
|
2020-07-09 08:08:56 -04:00
|
|
|
variables:
|
|
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
|
|
|
|
2020-04-21 11:21:10 -04:00
|
|
|
.use-kaniko:
|
|
|
|
image:
|
2021-01-11 13:10:43 -05:00
|
|
|
name: gcr.io/kaniko-project/executor:debug-v1.3.0
|
2020-04-21 11:21:10 -04:00
|
|
|
entrypoint: [""]
|
|
|
|
before_script:
|
2020-06-02 08:08:33 -04:00
|
|
|
- source scripts/utils.sh
|
2020-05-18 23:08:11 -04:00
|
|
|
- mkdir -p /kaniko/.docker
|
2020-04-21 11:21:10 -04:00
|
|
|
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
|
|
|
|
|
2020-01-28 13:08:35 -05:00
|
|
|
.as-if-foss:
|
2019-10-04 11:06:38 -04:00
|
|
|
variables:
|
2019-10-16 14:08:01 -04:00
|
|
|
FOSS_ONLY: '1'
|
2020-04-08 11:09:29 -04:00
|
|
|
|
|
|
|
.use-docker-in-docker:
|
2021-02-03 13:09:25 -05:00
|
|
|
image: ${GITLAB_DEPENDENCY_PROXY}docker:${DOCKER_VERSION}
|
2020-04-08 11:09:29 -04:00
|
|
|
services:
|
|
|
|
- docker:${DOCKER_VERSION}-dind
|
|
|
|
variables:
|
|
|
|
DOCKER_DRIVER: overlay2
|
|
|
|
DOCKER_HOST: tcp://docker:2375
|
|
|
|
DOCKER_TLS_CERTDIR: ""
|
|
|
|
tags:
|
|
|
|
# See https://gitlab.com/gitlab-com/www-gitlab-com/-/issues/7019 for tag descriptions
|
|
|
|
- gitlab-org-docker
|