2019-08-26 20:41:55 +00:00
|
|
|
stages:
|
2019-10-24 18:07:05 +00:00
|
|
|
- sync
|
2019-08-26 20:41:55 +00:00
|
|
|
- prepare
|
2020-04-28 12:09:44 +00:00
|
|
|
- build-images
|
2020-02-20 12:08:51 +00:00
|
|
|
- fixtures
|
2019-08-26 20:41:55 +00:00
|
|
|
- test
|
2019-11-29 15:06:43 +00:00
|
|
|
- post-test
|
2019-08-28 21:07:54 +00:00
|
|
|
- review-prepare
|
2019-08-26 20:41:55 +00:00
|
|
|
- review
|
|
|
|
- qa
|
2019-11-29 15:06:43 +00:00
|
|
|
- post-qa
|
2019-08-26 20:41:55 +00:00
|
|
|
- pages
|
|
|
|
|
2020-04-08 15:09:29 +00:00
|
|
|
# always use `gitlab-org` runners, however
|
|
|
|
# in cases where jobs require Docker-in-Docker, the job
|
|
|
|
# definition must be extended with `.use-docker-in-docker`
|
2020-03-16 12:09:12 +00:00
|
|
|
default:
|
2020-06-12 09:08:23 +00:00
|
|
|
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.6-golang-1.14-git-2.27-lfs-2.9-chrome-83-node-12.x-yarn-1.21-postgresql-11-graphicsmagick-1.3.34"
|
2020-03-16 12:09:12 +00:00
|
|
|
tags:
|
|
|
|
- gitlab-org
|
2020-03-27 09:08:28 +00:00
|
|
|
# All jobs are interruptible by default
|
|
|
|
interruptible: true
|
2020-03-16 12:09:12 +00:00
|
|
|
|
2020-03-09 12:07:45 +00:00
|
|
|
workflow:
|
|
|
|
rules:
|
|
|
|
# If `$FORCE_GITLAB_CI` is set, create a pipeline.
|
|
|
|
- if: '$FORCE_GITLAB_CI'
|
2020-04-23 18:09:46 +00:00
|
|
|
# As part of the process of creating RCs automatically, we update stable
|
|
|
|
# branches with the changes of the most recent production deployment. The
|
|
|
|
# merge requests used for this merge a branch release-tools/X into a stable
|
|
|
|
# branch. For these merge requests we don't want to run any pipelines, as
|
|
|
|
# they serve no purpose and will run anyway when the changes are merged.
|
2020-04-30 18:09:38 +00:00
|
|
|
- if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^release-tools\/\d+\.\d+\.\d+-rc\d+$/ && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^[\d-]+-stable(-ee)?$/ && $CI_PROJECT_PATH == "gitlab-org/gitlab"'
|
2020-04-23 18:09:46 +00:00
|
|
|
when: never
|
2020-03-09 12:07:45 +00:00
|
|
|
# For merge requests, create a pipeline.
|
|
|
|
- if: '$CI_MERGE_REQUEST_IID'
|
|
|
|
# For `master` branch, create a pipeline (this includes on schedules, pushes, merges, etc.).
|
2020-04-21 15:21:10 +00:00
|
|
|
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
2020-03-09 12:07:45 +00:00
|
|
|
# For tags, create a pipeline.
|
|
|
|
- if: '$CI_COMMIT_TAG'
|
|
|
|
# If `$GITLAB_INTERNAL` isn't set, don't create a pipeline.
|
|
|
|
- if: '$GITLAB_INTERNAL == null'
|
|
|
|
when: never
|
|
|
|
# For stable, auto-deploy, and security branches, create a pipeline.
|
|
|
|
- if: '$CI_COMMIT_BRANCH =~ /^[\d-]+-stable(-ee)?$/'
|
|
|
|
- if: '$CI_COMMIT_BRANCH =~ /^\d+-\d+-auto-deploy-\d+$/'
|
|
|
|
- if: '$CI_COMMIT_BRANCH =~ /^security\//'
|
|
|
|
|
2016-01-22 13:45:34 +00:00
|
|
|
variables:
|
2016-05-22 01:41:17 +00:00
|
|
|
RAILS_ENV: "test"
|
2017-04-04 17:47:12 +00:00
|
|
|
NODE_ENV: "test"
|
2016-05-22 01:41:17 +00:00
|
|
|
SIMPLECOV: "true"
|
2019-12-11 21:08:17 +00:00
|
|
|
GIT_DEPTH: "20"
|
2017-04-26 15:57:44 +00:00
|
|
|
GIT_SUBMODULE_STRATEGY: "none"
|
2016-12-15 11:40:33 +00:00
|
|
|
GET_SOURCES_ATTEMPTS: "3"
|
2019-09-27 15:06:16 +00:00
|
|
|
KNAPSACK_RSPEC_SUITE_REPORT_PATH: knapsack/report-master.json
|
2017-10-04 11:24:51 +00:00
|
|
|
FLAKY_RSPEC_SUITE_REPORT_PATH: rspec_flaky/report-suite.json
|
2018-11-14 17:36:02 +00:00
|
|
|
BUILD_ASSETS_IMAGE: "false"
|
2019-08-27 16:48:36 +00:00
|
|
|
ES_JAVA_OPTS: "-Xms256m -Xmx256m"
|
2019-12-13 21:07:41 +00:00
|
|
|
ELASTIC_URL: "http://elastic:changeme@elasticsearch:9200"
|
2020-04-08 15:09:29 +00:00
|
|
|
DOCKER_VERSION: "19.03.0"
|
2016-01-22 13:45:34 +00:00
|
|
|
|
2019-04-12 08:56:38 +00:00
|
|
|
include:
|
2020-06-18 18:08:58 +00:00
|
|
|
- local: .gitlab/ci/build-images.gitlab-ci.yml
|
2019-12-16 15:07:39 +00:00
|
|
|
- local: .gitlab/ci/cache-repo.gitlab-ci.yml
|
2019-04-12 08:56:38 +00:00
|
|
|
- local: .gitlab/ci/cng.gitlab-ci.yml
|
|
|
|
- local: .gitlab/ci/docs.gitlab-ci.yml
|
|
|
|
- local: .gitlab/ci/frontend.gitlab-ci.yml
|
2019-10-01 15:06:05 +00:00
|
|
|
- local: .gitlab/ci/global.gitlab-ci.yml
|
2019-06-13 15:14:06 +00:00
|
|
|
- local: .gitlab/ci/memory.gitlab-ci.yml
|
2019-04-12 08:56:38 +00:00
|
|
|
- local: .gitlab/ci/pages.gitlab-ci.yml
|
|
|
|
- local: .gitlab/ci/qa.gitlab-ci.yml
|
|
|
|
- local: .gitlab/ci/reports.gitlab-ci.yml
|
|
|
|
- local: .gitlab/ci/rails.gitlab-ci.yml
|
|
|
|
- local: .gitlab/ci/review.gitlab-ci.yml
|
2020-02-18 15:08:51 +00:00
|
|
|
- local: .gitlab/ci/rules.gitlab-ci.yml
|
2019-04-12 08:56:38 +00:00
|
|
|
- local: .gitlab/ci/setup.gitlab-ci.yml
|
2019-12-20 09:24:38 +00:00
|
|
|
- local: .gitlab/ci/dev-fixtures.gitlab-ci.yml
|
2019-04-12 08:56:38 +00:00
|
|
|
- local: .gitlab/ci/test-metadata.gitlab-ci.yml
|
2019-06-05 16:31:35 +00:00
|
|
|
- local: .gitlab/ci/yaml.gitlab-ci.yml
|
2019-10-24 18:07:05 +00:00
|
|
|
- local: .gitlab/ci/releases.gitlab-ci.yml
|