68 lines
2.2 KiB
YAML
68 lines
2.2 KiB
YAML
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.5-golang-1.12-git-2.24-lfs-2.9-chrome-73.0-node-12.x-yarn-1.21-postgresql-9.6-graphicsmagick-1.3.34"
|
|
|
|
stages:
|
|
- sync
|
|
- prepare
|
|
- fixtures
|
|
- test
|
|
- post-test
|
|
- review-prepare
|
|
- review
|
|
- qa
|
|
- post-qa
|
|
- pages
|
|
|
|
# always use `gitlab-org` runners
|
|
default:
|
|
tags:
|
|
- gitlab-org
|
|
|
|
workflow:
|
|
rules:
|
|
# If `$FORCE_GITLAB_CI` is set, create a pipeline.
|
|
- if: '$FORCE_GITLAB_CI'
|
|
# For merge requests, create a pipeline.
|
|
- if: '$CI_MERGE_REQUEST_IID'
|
|
# For `master` branch, create a pipeline (this includes on schedules, pushes, merges, etc.).
|
|
- if: '$CI_COMMIT_BRANCH == "master"'
|
|
# 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\//'
|
|
|
|
variables:
|
|
RAILS_ENV: "test"
|
|
NODE_ENV: "test"
|
|
SIMPLECOV: "true"
|
|
GIT_DEPTH: "20"
|
|
GIT_SUBMODULE_STRATEGY: "none"
|
|
GET_SOURCES_ATTEMPTS: "3"
|
|
KNAPSACK_RSPEC_SUITE_REPORT_PATH: knapsack/report-master.json
|
|
FLAKY_RSPEC_SUITE_REPORT_PATH: rspec_flaky/report-suite.json
|
|
BUILD_ASSETS_IMAGE: "false"
|
|
ES_JAVA_OPTS: "-Xms256m -Xmx256m"
|
|
ELASTIC_URL: "http://elastic:changeme@elasticsearch:9200"
|
|
|
|
include:
|
|
- local: .gitlab/ci/cache-repo.gitlab-ci.yml
|
|
- local: .gitlab/ci/cng.gitlab-ci.yml
|
|
- local: .gitlab/ci/docs.gitlab-ci.yml
|
|
- local: .gitlab/ci/frontend.gitlab-ci.yml
|
|
- local: .gitlab/ci/global.gitlab-ci.yml
|
|
- local: .gitlab/ci/memory.gitlab-ci.yml
|
|
- 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
|
|
- local: .gitlab/ci/rules.gitlab-ci.yml
|
|
- local: .gitlab/ci/setup.gitlab-ci.yml
|
|
- local: .gitlab/ci/dev-fixtures.gitlab-ci.yml
|
|
- local: .gitlab/ci/test-metadata.gitlab-ci.yml
|
|
- local: .gitlab/ci/yaml.gitlab-ci.yml
|
|
- local: .gitlab/ci/releases.gitlab-ci.yml
|