debian-mirror-gitlab/.gitlab/ci/global.gitlab-ci.yml

75 lines
2.2 KiB
YAML
Raw Normal View History

2019-12-04 20:38:33 +05:30
.default-tags:
tags:
- gitlab-org
.default-retry:
2019-07-31 22:56:46 +05:30
retry:
2019-09-04 21:01:54 +05:30
max: 2 # This is confusing but this means "3 runs at max".
2019-07-31 22:56:46 +05:30
when:
- unknown_failure
- api_failure
- runner_system_failure
2020-03-09 13:42:32 +05:30
- job_execution_timeout
- stuck_or_timeout_failure
2019-07-31 22:56:46 +05:30
2019-12-04 20:38:33 +05:30
.default-before_script:
before_script:
- date
2020-03-09 13:42:32 +05:30
- '[ "$FOSS_ONLY" = "1" ] && rm -rf ee/ qa/spec/ee/ qa/qa/specs/features/ee/ qa/qa/ee/ qa/qa/ee.rb'
2019-12-21 20:55:43 +05:30
- export GOPATH=$CI_PROJECT_DIR/.go
- mkdir -p $GOPATH
2019-12-04 20:38:33 +05:30
- source scripts/utils.sh
- source scripts/prepare_build.sh
- date
2019-07-31 22:56:46 +05:30
# Jobs that only need to pull cache
2019-12-04 20:38:33 +05:30
.default-cache:
2019-07-31 22:56:46 +05:30
cache:
2020-03-09 13:42:32 +05:30
key: "debian-stretch-ruby-2.6.5-pg9.6-node-12.x"
2019-12-04 20:38:33 +05:30
paths:
2019-12-21 20:55:43 +05:30
- .go/pkg/mod
2019-12-04 20:38:33 +05:30
- vendor/ruby
- .yarn-cache/
- vendor/gitaly-ruby
2019-07-31 22:56:46 +05:30
policy: pull
2019-12-21 20:55:43 +05:30
.use-pg9:
services:
2020-03-09 13:42:32 +05:30
- name: postgres:9.6.17
2019-12-21 20:55:43 +05:30
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
- name: redis:alpine
2020-03-09 13:42:32 +05:30
variables:
POSTGRES_HOST_AUTH_METHOD: trust
2019-12-21 20:55:43 +05:30
.use-pg10:
2020-03-09 13:42:32 +05:30
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-10-graphicsmagick-1.3.34"
2019-12-04 20:38:33 +05:30
services:
2020-03-09 13:42:32 +05:30
- name: postgres:10.12
2019-12-04 20:38:33 +05:30
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
- name: redis:alpine
2020-03-09 13:42:32 +05:30
variables:
POSTGRES_HOST_AUTH_METHOD: trust
2019-07-31 22:56:46 +05:30
2019-12-21 20:55:43 +05:30
.use-pg9-ee:
services:
2020-03-09 13:42:32 +05:30
- name: postgres:9.6.17
2019-12-21 20:55:43 +05:30
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
- name: redis:alpine
2020-03-09 13:42:32 +05:30
- name: elasticsearch:6.4.2
variables:
POSTGRES_HOST_AUTH_METHOD: trust
2019-12-21 20:55:43 +05:30
.use-pg10-ee:
2020-03-09 13:42:32 +05:30
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-10-graphicsmagick-1.3.34"
2019-12-04 20:38:33 +05:30
services:
2020-03-09 13:42:32 +05:30
- name: postgres:10.12
2019-12-04 20:38:33 +05:30
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
- name: redis:alpine
2020-03-09 13:42:32 +05:30
- name: elasticsearch:6.4.2
variables:
POSTGRES_HOST_AUTH_METHOD: trust
2019-12-21 20:55:43 +05:30
2020-03-09 13:42:32 +05:30
.as-if-foss:
2019-12-21 20:55:43 +05:30
variables:
FOSS_ONLY: '1'