Read about our upcoming Code of Conduct on this issue

global.gitlab-ci.yml 1.65 KB
Newer Older
Stan Hu's avatar
Stan Hu committed
1
2
3
4
5
.default-tags:
  tags:
    - gitlab-org

.default-retry:
Kamil Trzciński's avatar
Kamil Trzciński committed
6
  retry:
Kamil Trzciński's avatar
Kamil Trzciński committed
7
    max: 2  # This is confusing but this means "3 runs at max".
Kamil Trzciński's avatar
Kamil Trzciński committed
8
9
10
11
12
    when:
      - unknown_failure
      - api_failure
      - runner_system_failure

Stan Hu's avatar
Stan Hu committed
13
14
15
16
17
18
.default-before_script:
  before_script:
    - date
    - source scripts/utils.sh
    - source scripts/prepare_build.sh
    - date
Kamil Trzciński's avatar
Kamil Trzciński committed
19
20

# Jobs that only need to pull cache
Stan Hu's avatar
Stan Hu committed
21
.default-cache:
Kamil Trzciński's avatar
Kamil Trzciński committed
22
  cache:
Stan Hu's avatar
Stan Hu committed
23
24
25
26
27
    key: "debian-stretch-ruby-2.6.3-node-12.x"
    paths:
      - vendor/ruby
      - .yarn-cache/
      - vendor/gitaly-ruby
Kamil Trzciński's avatar
Kamil Trzciński committed
28
29
    policy: pull

Stan Hu's avatar
Stan Hu committed
30
.except-docs:
Kamil Trzciński's avatar
Kamil Trzciński committed
31
  except:
Philippe Lafoucrière's avatar
Philippe Lafoucrière committed
32
    refs:
33
      - /(^docs[\/-].+|.+-docs$)/
Philippe Lafoucrière's avatar
Philippe Lafoucrière committed
34

Stan Hu's avatar
Stan Hu committed
35
.except-qa:
Philippe Lafoucrière's avatar
Philippe Lafoucrière committed
36
37
38
  except:
    refs:
      - /(^qa[\/-].*|.*-qa$)/
Kamil Trzciński's avatar
Kamil Trzciński committed
39

Stan Hu's avatar
Stan Hu committed
40
41
42
43
44
.except-docs-qa:
  except:
    refs:
      - /(^docs[\/-].+|.+-docs$)/
      - /(^qa[\/-].*|.*-qa$)/
45

Stan Hu's avatar
Stan Hu committed
46
47
48
49
50
51
.except-docs-qa-geo:
  except:
    refs:
      - /(^docs[\/-].+|.+-docs$)/
      - /(^qa[\/-].*|.*-qa$)/
      - /(^geo[\/-].*|.*-geo$)/
52

Stan Hu's avatar
Stan Hu committed
53
.review-only:
54
55
  only:
    refs:
56
57
      - branches@gitlab-org/gitlab-foss
      - branches@gitlab-org/gitlab
58
59
60
61
62
63
    kubernetes: active
  except:
    refs:
      - master
      - /^\d+-\d+-auto-deploy-\d+$/
      - /(^docs[\/-].+|.+-docs$)/
Stan Hu's avatar
Stan Hu committed
64
65
66
67
68
69
70
71
72
73
74
75
76

.use-pg:
  services:
    - name: postgres:9.6.14
      command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
    - name: redis:alpine

.use-pg-10:
  image: "dev.gitlab.org:5005/gitlab/gitlab-build-images:ruby-2.6.3-golang-1.11-git-2.22-chrome-73.0-node-12.x-yarn-1.16-postgresql-10-graphicsmagick-1.3.33"
  services:
    - name: postgres:10.9
      command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
    - name: redis:alpine