summaryrefslogtreecommitdiff
path: root/.gitlab/ci/setup.gitlab-ci.yml
blob: 861f3f1af5b4ed5880db17a405b26f46585a693f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Insurance in case a gem needed by one of our releases gets yanked from
# rubygems.org in the future.
cache gems:
  extends:
    - .default-tags
    - .default-retry
    - .default-cache
    - .default-before_script
    - .only-code-qa-changes
  stage: test
  dependencies: ["setup-test-env"]
  needs: ["setup-test-env"]
  variables:
    SETUP_DB: "false"
  script:
    - bundle package --all --all-platforms
  artifacts:
    paths:
      - vendor/cache
  only:
    refs:
      - master
      - tags
    variables:
      - $CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_NAMESPACE == "gitlab-org"

.minimal-job:
  extends:
    - .default-tags
    - .default-retry
    - .default-only
    - .only-code-changes
  dependencies: []

gitlab_git_test:
  extends: .minimal-job
  script:
    - spec/support/prepare-gitlab-git-test-for-commit --check-for-changes

no_ee_check:
  extends: .minimal-job
  script:
    - scripts/no-ee-check
  only:
    variables:
      - $CI_PROJECT_NAME == "gitlab-foss"
      - $CI_PROJECT_NAME == "gitlab-ce"  # Support former project name for forks/mirrors
      - $CI_PROJECT_NAME == "gitlabhq"  # Support former project name for dev