2019-04-12 04:56:38 -04:00
|
|
|
# Insurance in case a gem needed by one of our releases gets yanked from
|
|
|
|
# rubygems.org in the future.
|
|
|
|
cache gems:
|
2019-08-26 16:41:55 -04:00
|
|
|
extends:
|
|
|
|
- .default-retry
|
2020-06-02 08:08:33 -04:00
|
|
|
- .rails-cache
|
2019-08-26 16:41:55 -04:00
|
|
|
- .default-before_script
|
2020-02-12 10:09:37 -05:00
|
|
|
- .setup:rules:cache-gems
|
2019-08-28 17:07:54 -04:00
|
|
|
stage: test
|
2020-05-13 20:07:47 -04:00
|
|
|
needs: ["setup-test-env"]
|
2019-08-26 16:41:55 -04:00
|
|
|
variables:
|
2020-07-16 11:09:38 -04:00
|
|
|
BUNDLE_INSTALL_FLAGS: --with=production --with=development --with=test --jobs=2 --path=vendor --retry=3 --quiet
|
2019-08-26 16:41:55 -04:00
|
|
|
SETUP_DB: "false"
|
2019-04-12 04:56:38 -04:00
|
|
|
script:
|
|
|
|
- bundle package --all --all-platforms
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- vendor/cache
|
2020-05-11 11:09:37 -04:00
|
|
|
expire_in: 31d
|
2019-04-12 04:56:38 -04:00
|
|
|
|
2019-08-26 16:41:55 -04:00
|
|
|
.minimal-job:
|
2019-07-01 11:04:19 -04:00
|
|
|
extends:
|
2019-08-26 16:41:55 -04:00
|
|
|
- .default-retry
|
2020-02-20 13:08:51 -05:00
|
|
|
needs: []
|
2019-08-26 16:41:55 -04:00
|
|
|
|
2020-03-27 05:08:28 -04:00
|
|
|
dont-interrupt-me:
|
|
|
|
extends: .setup:rules:dont-interrupt-me
|
2020-03-31 08:08:09 -04:00
|
|
|
stage: sync
|
2020-03-27 05:08:28 -04:00
|
|
|
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-08-26 16:41:55 -04:00
|
|
|
gitlab_git_test:
|
2020-02-12 10:09:37 -05:00
|
|
|
extends:
|
|
|
|
- .minimal-job
|
|
|
|
- .setup:rules:gitlab_git_test
|
2020-02-20 13:08:51 -05:00
|
|
|
stage: test
|
2019-04-12 04:56:38 -04:00
|
|
|
script:
|
|
|
|
- spec/support/prepare-gitlab-git-test-for-commit --check-for-changes
|
|
|
|
|
|
|
|
no_ee_check:
|
2020-02-12 10:09:37 -05:00
|
|
|
extends:
|
|
|
|
- .minimal-job
|
|
|
|
- .setup:rules:no_ee_check
|
2020-02-20 13:08:51 -05:00
|
|
|
stage: test
|
2019-04-12 04:56:38 -04:00
|
|
|
script:
|
|
|
|
- scripts/no-ee-check
|
2020-08-25 11:10:17 -04:00
|
|
|
|
|
|
|
verify-tests-yml:
|
|
|
|
extends:
|
|
|
|
- .setup:rules:verify-tests-yml
|
2020-10-23 14:08:31 -04:00
|
|
|
image: ruby:2.7-alpine
|
2020-08-25 11:10:17 -04:00
|
|
|
stage: test
|
|
|
|
needs: []
|
|
|
|
script:
|
|
|
|
- source scripts/utils.sh
|
|
|
|
- install_tff_gem
|
|
|
|
- scripts/verify-tff-mapping
|
2020-09-01 08:11:01 -04:00
|
|
|
|
|
|
|
.detect-test-base:
|
2020-10-23 14:08:31 -04:00
|
|
|
image: ruby:2.7-alpine
|
2020-09-01 08:11:01 -04:00
|
|
|
needs: []
|
|
|
|
stage: prepare
|
|
|
|
script:
|
|
|
|
- source scripts/utils.sh
|
|
|
|
- install_gitlab_gem
|
|
|
|
- install_tff_gem
|
|
|
|
- tooling/bin/find_foss_tests ${MATCHED_TESTS_FILE}
|
2020-09-08 11:08:41 -04:00
|
|
|
- 'echo "test files affected: $(cat $MATCHED_TESTS_FILE)"'
|
2020-09-01 08:11:01 -04:00
|
|
|
artifacts:
|
|
|
|
expire_in: 7d
|
|
|
|
paths:
|
|
|
|
- ${MATCHED_TESTS_FILE}
|
|
|
|
|
|
|
|
detect-tests:
|
|
|
|
extends:
|
|
|
|
- .detect-test-base
|
|
|
|
- .rails:rules:detect-tests
|
|
|
|
variables:
|
|
|
|
MATCHED_TESTS_FILE: tmp/matching_tests.txt
|
|
|
|
|
|
|
|
detect-tests as-if-foss:
|
|
|
|
extends:
|
|
|
|
- .detect-test-base
|
|
|
|
- .rails:rules:detect-tests
|
|
|
|
- .as-if-foss
|
|
|
|
variables:
|
|
|
|
MATCHED_TESTS_FILE: tmp/matching_foss_tests.txt
|
|
|
|
before_script:
|
|
|
|
- '[ "$FOSS_ONLY" = "1" ] && rm -rf ee/ qa/spec/ee/ qa/qa/specs/features/ee/ qa/qa/ee/ qa/qa/ee.rb'
|