Commit fcf7ca8d authored by Yorick Peterse's avatar Yorick Peterse

Only run EE tests on the EE repository

This ensures that various EE-only tests only run when using the EE
repository, and not when using gitlab-ce/gitlab-foss.
parent d9e7951c
...@@ -8,6 +8,11 @@ ...@@ -8,6 +8,11 @@
- master@gitlab/gitlabhq - master@gitlab/gitlabhq
- master@gitlab/gitlab-ee - master@gitlab/gitlab-ee
.only-gitlab-ee:
only:
- branches@gitlab-org/gitlab-ee
- tags@gitlab-org/gitlab-ee
.rake-exec: .rake-exec:
extends: extends:
- .default-tags - .default-tags
...@@ -305,7 +310,9 @@ coverage: ...@@ -305,7 +310,9 @@ coverage:
## EE-specific content ## EE-specific content
.rspec-base-ee: .rspec-base-ee:
extends: .rspec-base extends:
- .rspec-base
- .only-gitlab-ee
script: script:
- JOB_NAME=( $CI_JOB_NAME ) - JOB_NAME=( $CI_JOB_NAME )
- TEST_TOOL=${JOB_NAME[0]} - TEST_TOOL=${JOB_NAME[0]}
...@@ -344,7 +351,9 @@ rspec system pg ee: ...@@ -344,7 +351,9 @@ rspec system pg ee:
parallel: 5 parallel: 5
.rspec-base-pg-geo: .rspec-base-pg-geo:
extends: .rspec-base extends:
- .rspec-base
- .only-gitlab-ee
script: script:
- JOB_NAME=( $CI_JOB_NAME ) - JOB_NAME=( $CI_JOB_NAME )
- TEST_TOOL=${JOB_NAME[0]} - TEST_TOOL=${JOB_NAME[0]}
...@@ -422,7 +431,9 @@ migration:upgrade-pg-ce-to-ee: ...@@ -422,7 +431,9 @@ migration:upgrade-pg-ce-to-ee:
- bundle exec rake db:migrate - bundle exec rake db:migrate
db:rollback geo: db:rollback geo:
extends: db:rollback extends:
- db:rollback
- .only-gitlab-ee
script: script:
- bundle exec rake geo:db:migrate VERSION=20170627195211 - bundle exec rake geo:db:migrate VERSION=20170627195211
- bundle exec rake geo:db:migrate - bundle exec rake geo:db:migrate
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment