Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0e645b58
Commit
0e645b58
authored
Dec 15, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[EE] Use dedicated runners for all the CI jobs
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
173bc2a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
20 deletions
+25
-20
.gitlab-ci.yml
.gitlab-ci.yml
+25
-20
No files found.
.gitlab-ci.yml
View file @
0e645b58
image
:
"
dev.gitlab.org:5005/gitlab/gitlab-build-images:ruby-2.3.5-golang-1.8-git-2.13-chrome-62.0-node-8.x-yarn-1.2-postgresql-9.6"
.dedicated-runner
:
&dedicated-runner
retry
:
1
tags
:
-
gitlab-org
.default-cache
:
&default-cache
key
:
"
ruby-235-with-yarn"
paths
:
...
...
@@ -18,7 +23,6 @@ image: "dev.gitlab.org:5005/gitlab/gitlab-build-images:ruby-2.3.5-golang-1.8-git
variables
:
MYSQL_ALLOW_EMPTY_PASSWORD
:
"
1"
ELASTIC_URL
:
"
http://elastic:changeme@docker.elastic.co-elasticsearch-elasticsearch:9200"
RAILS_ENV
:
"
test"
NODE_ENV
:
"
test"
SIMPLECOV
:
"
true"
...
...
@@ -28,8 +32,10 @@ variables:
KNAPSACK_RSPEC_SUITE_REPORT_PATH
:
knapsack/${CI_PROJECT_NAME}/rspec_report-master.json
KNAPSACK_SPINACH_SUITE_REPORT_PATH
:
knapsack/${CI_PROJECT_NAME}/spinach_report-master.json
FLAKY_RSPEC_SUITE_REPORT_PATH
:
rspec_flaky/report-suite.json
## EE specific variables ##
# This hack is needed to make ES not that memory hungry
ES_JAVA_OPTS
:
"
-Xms256m
-Xmx256m"
ELASTIC_URL
:
"
http://elastic:changeme@docker.elastic.co-elasticsearch-elasticsearch:9200"
before_script
:
-
bundle --version
...
...
@@ -45,11 +51,6 @@ stages:
-
post-cleanup
# Predefined scopes
.dedicated-runner
:
&dedicated-runner
retry
:
1
tags
:
-
gitlab-org
.tests-metadata-state
:
&tests-metadata-state
<<
:
*dedicated-runner
variables
:
...
...
@@ -89,8 +90,8 @@ stages:
.rspec-metadata
:
&rspec-metadata
<<
:
*dedicated-runner
<<
:
*pull-cache
<<
:
*except-docs
<<
:
*pull-cache
stage
:
test
script
:
-
JOB_NAME=( $CI_JOB_NAME )
...
...
@@ -138,8 +139,8 @@ stages:
.spinach-metadata
:
&spinach-metadata
<<
:
*dedicated-runner
<<
:
*pull-cache
<<
:
*except-docs
<<
:
*pull-cache
stage
:
test
script
:
-
JOB_NAME=( $CI_JOB_NAME )
...
...
@@ -178,6 +179,7 @@ stages:
# Trigger a package build in omnibus-gitlab repository
#
package-qa
:
<<
:
*dedicated-runner
image
:
ruby:2.4-alpine
before_script
:
[]
stage
:
build
...
...
@@ -191,6 +193,7 @@ package-qa:
# Review docs base
.review-docs
:
&review-docs
<<
:
*dedicated-runner
image
:
ruby:2.4-alpine
before_script
:
-
gem install gitlab --no-doc
...
...
@@ -297,9 +300,9 @@ flaky-examples-check:
-
scripts/detect-new-flaky-examples $NEW_FLAKY_SPECS_REPORT
setup-test-env
:
<<
:
*use-pg
<<
:
*dedicated-runner
<<
:
*except-docs
<<
:
*use-pg
stage
:
prepare
cache
:
<<
:
*default-cache
...
...
@@ -390,18 +393,18 @@ spinach-mysql 3 4: *spinach-metadata-mysql
SETUP_DB
:
"
false"
.rake-exec
:
&rake-exec
<<
:
*ruby-static-analysis
<<
:
*dedicated-runner
<<
:
*except-docs
<<
:
*pull-cache
<<
:
*ruby-static-analysis
stage
:
test
script
:
-
bundle exec rake $CI_JOB_NAME
static-analysis
:
<<
:
*ruby-static-analysis
<<
:
*dedicated-runner
<<
:
*except-docs
<<
:
*ruby-static-analysis
stage
:
test
script
:
-
scripts/static-analysis
...
...
@@ -467,10 +470,16 @@ db:migrate:reset-mysql:
<<
:
*db-migrate-reset
<<
:
*use-mysql
db:check-schema-pg:
<<
:
*db-migrate-reset
<<
:
*use-pg
script
:
-
source scripts/schema_changed.sh
.migration-paths
:
&migration-paths
<<
:
*dedicated-runner
<<
:
*pull-cache
<<
:
*except-docs
<<
:
*pull-cache
stage
:
test
variables
:
SETUP_DB
:
"
false"
...
...
@@ -538,12 +547,6 @@ db:seed_fu-mysql:
<<
:
*db-seed_fu
<<
:
*use-mysql
db:check-schema-pg:
<<
:
*db-migrate-reset
<<
:
*use-pg
script
:
-
sh scripts/schema_changed.sh
# Frontend-related jobs
gitlab:assets:compile:
<<
:
*dedicated-runner
...
...
@@ -568,10 +571,10 @@ gitlab:assets:compile:
-
webpack-report/
karma
:
<<
:
*use-pg
<<
:
*dedicated-runner
<<
:
*except-docs
<<
:
*pull-cache
<<
:
*use-pg
stage
:
test
variables
:
BABEL_ENV
:
"
coverage"
...
...
@@ -610,6 +613,7 @@ codequality:
paths
:
[
codeclimate.json
]
qa:internal:
<<
:
*dedicated-runner
<<
:
*except-docs
stage
:
test
variables
:
...
...
@@ -699,8 +703,9 @@ cache gems:
-
master@gitlab-org/gitlab-ee
gitlab_git_test
:
<<
:
*
pull-cache
<<
:
*
dedicated-runner
<<
:
*except-docs
<<
:
*pull-cache
variables
:
SETUP_DB
:
"
false"
script
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment