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

51 lines
1.2 KiB
YAML
Raw Normal View History

2019-07-31 22:56:46 +05:30
# Insurance in case a gem needed by one of our releases gets yanked from
# rubygems.org in the future.
cache gems:
2019-12-04 20:38:33 +05:30
extends:
- .default-retry
2020-06-23 00:09:42 +05:30
- .rails-cache
2019-12-04 20:38:33 +05:30
- .default-before_script
2020-03-13 15:44:24 +05:30
- .setup:rules:cache-gems
2019-12-04 20:38:33 +05:30
stage: test
2020-05-24 23:13:21 +05:30
needs: ["setup-test-env"]
2019-12-04 20:38:33 +05:30
variables:
2020-07-28 23:09:34 +05:30
BUNDLE_INSTALL_FLAGS: --with=production --with=development --with=test --jobs=2 --path=vendor --retry=3 --quiet
2019-12-04 20:38:33 +05:30
SETUP_DB: "false"
2019-07-31 22:56:46 +05:30
script:
- bundle package --all --all-platforms
artifacts:
paths:
- vendor/cache
2020-05-24 23:13:21 +05:30
expire_in: 31d
2019-07-31 22:56:46 +05:30
2019-12-04 20:38:33 +05:30
.minimal-job:
2019-09-30 21:07:59 +05:30
extends:
2019-12-04 20:38:33 +05:30
- .default-retry
2020-04-08 14:13:33 +05:30
needs: []
2019-12-04 20:38:33 +05:30
2020-04-22 19:07:51 +05:30
dont-interrupt-me:
extends: .setup:rules:dont-interrupt-me
stage: sync
image: alpine:edge
interruptible: false
variables:
GIT_STRATEGY: none
script:
- echo "This jobs makes sure this pipeline won't be interrupted! See https://docs.gitlab.com/ee/ci/yaml/#interruptible."
2019-12-04 20:38:33 +05:30
gitlab_git_test:
2020-03-13 15:44:24 +05:30
extends:
- .minimal-job
- .setup:rules:gitlab_git_test
2020-04-08 14:13:33 +05:30
stage: test
2019-07-31 22:56:46 +05:30
script:
- spec/support/prepare-gitlab-git-test-for-commit --check-for-changes
no_ee_check:
2020-03-13 15:44:24 +05:30
extends:
- .minimal-job
- .setup:rules:no_ee_check
2020-04-08 14:13:33 +05:30
stage: test
2019-07-31 22:56:46 +05:30
script:
- scripts/no-ee-check