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
9d85320c
Commit
9d85320c
authored
Dec 06, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run builds with runners with tags gitlab-org and 2gb
parent
532c0319
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
69 additions
and
39 deletions
+69
-39
.gitlab-ci.yml
.gitlab-ci.yml
+69
-39
No files found.
.gitlab-ci.yml
View file @
9d85320c
...
...
@@ -30,7 +30,12 @@ stages:
-
post-test
-
pages
# Prepare and merge knapsack tests
# Predefined scopes
.dedicated-runner
:
&dedicated-runner
tags
:
-
gitlab-org
-
2gb
.knapsack-state
:
&knapsack-state
services
:
[]
variables
:
...
...
@@ -45,47 +50,14 @@ stages:
paths
:
-
knapsack/
knapsack
:
<<
:
*knapsack-state
stage
:
prepare
script
:
-
mkdir -p knapsack/
-
'
[[
-f
knapsack/rspec_report.json
]]
||
echo
"{}"
>
knapsack/rspec_report.json'
-
'
[[
-f
knapsack/spinach_report.json
]]
||
echo
"{}"
>
knapsack/spinach_report.json'
update-knapsack
:
<<
:
*knapsack-state
stage
:
post-test
script
:
-
scripts/merge-reports knapsack/rspec_report.json knapsack/rspec_node_*.json
-
scripts/merge-reports knapsack/spinach_report.json knapsack/spinach_node_*.json
-
rm -f knapsack/*_node_*.json
only
:
-
master@gitlab-org/gitlab-ce
-
master@gitlab-org/gitlab-ee
-
master@gitlab/gitlabhq
-
master@gitlab/gitlab-ee
.use-db
:
&use-db
services
:
-
mysql:latest
-
redis:alpine
setup-test-env
:
<<
:
*use-db
stage
:
prepare
script
:
-
bundle exec rake assets:precompile 2>/dev/null
-
bundle exec ruby -Ispec -e 'require "spec_helper" ; TestEnv.init'
artifacts
:
expire_in
:
7d
paths
:
-
public/assets
-
tmp/tests
.rspec-knapsack
:
&rspec-knapsack
stage
:
test
<<
:
*dedicated-runner
<<
:
*use-db
script
:
-
JOB_NAME=( $CI_BUILD_NAME )
...
...
@@ -103,6 +75,7 @@ setup-test-env:
.spinach-knapsack
:
&spinach-knapsack
stage
:
test
<<
:
*dedicated-runner
<<
:
*use-db
script
:
-
JOB_NAME=( $CI_BUILD_NAME )
...
...
@@ -118,6 +91,44 @@ setup-test-env:
-
knapsack/
-
coverage/
# Prepare and merge knapsack tests
knapsack
:
<<
:
*knapsack-state
<<
:
*dedicated-runner
stage
:
prepare
script
:
-
mkdir -p knapsack/
-
'
[[
-f
knapsack/rspec_report.json
]]
||
echo
"{}"
>
knapsack/rspec_report.json'
-
'
[[
-f
knapsack/spinach_report.json
]]
||
echo
"{}"
>
knapsack/spinach_report.json'
setup-test-env
:
<<
:
*use-db
<<
:
*dedicated-runner
stage
:
prepare
script
:
-
bundle exec rake assets:precompile 2>/dev/null
-
bundle exec ruby -Ispec -e 'require "spec_helper" ; TestEnv.init'
artifacts
:
expire_in
:
7d
paths
:
-
public/assets
-
tmp/tests
update-knapsack
:
<<
:
*knapsack-state
<<
:
*dedicated-runner
stage
:
post-test
script
:
-
scripts/merge-reports knapsack/rspec_report.json knapsack/rspec_node_*.json
-
scripts/merge-reports knapsack/spinach_report.json knapsack/spinach_node_*.json
-
rm -f knapsack/*_node_*.json
only
:
-
master@gitlab-org/gitlab-ce
-
master@gitlab-org/gitlab-ee
-
master@gitlab/gitlabhq
-
master@gitlab/gitlab-ee
rspec 0 20
:
*rspec-knapsack
rspec 1 20
:
*rspec-knapsack
rspec 2 20
:
*rspec-knapsack
...
...
@@ -166,10 +177,12 @@ spinach 9 10: *spinach-knapsack
.rspec-knapsack-ruby21
:
&rspec-knapsack-ruby21
<<
:
*rspec-knapsack
<<
:
*dedicated-runner
<<
:
*ruby-21
.spinach-knapsack-ruby21
:
&spinach-knapsack-ruby21
<<
:
*spinach-knapsack
<<
:
*dedicated-runner
<<
:
*ruby-21
rspec 0 20 ruby21
:
*rspec-knapsack-ruby21
...
...
@@ -214,6 +227,7 @@ spinach 9 10 ruby21: *spinach-knapsack-ruby21
.exec
:
&exec
<<
:
*ruby-static-analysis
<<
:
*dedicated-runner
stage
:
test
script
:
-
bundle exec $CI_BUILD_NAME
...
...
@@ -249,12 +263,14 @@ rake ee_compat_check:
rake db:migrate:reset:
stage
:
test
<<
:
*use-db
<<
:
*dedicated-runner
script
:
-
rake db:migrate:reset
rake db:seed_fu:
stage
:
test
<<
:
*use-db
<<
:
*dedicated-runner
variables
:
SIZE
:
"
1"
SETUP_DB
:
"
false"
...
...
@@ -276,6 +292,7 @@ teaspoon:
-
node_modules/
stage
:
test
<<
:
*use-db
<<
:
*dedicated-runner
script
:
-
npm install
-
npm link istanbul
...
...
@@ -288,6 +305,7 @@ teaspoon:
lint-doc
:
stage
:
test
<<
:
*dedicated-runner
image
:
"
phusion/baseimage:latest"
before_script
:
[]
script
:
...
...
@@ -295,6 +313,7 @@ lint-doc:
bundler:check:
stage
:
test
<<
:
*dedicated-runner
<<
:
*ruby-static-analysis
script
:
-
bundle check
...
...
@@ -302,6 +321,7 @@ bundler:check:
bundler:audit:
stage
:
test
<<
:
*ruby-static-analysis
<<
:
*dedicated-runner
only
:
-
master@gitlab-org/gitlab-ce
-
master@gitlab-org/gitlab-ee
...
...
@@ -313,6 +333,7 @@ bundler:audit:
migration paths
:
stage
:
test
<<
:
*use-db
<<
:
*dedicated-runner
variables
:
SETUP_DB
:
"
false"
only
:
...
...
@@ -334,6 +355,7 @@ migration paths:
coverage
:
stage
:
post-test
services
:
[]
<<
:
*dedicated-runner
variables
:
SETUP_DB
:
"
false"
USE_BUNDLE_INSTALL
:
"
true"
...
...
@@ -347,6 +369,7 @@ coverage:
-
coverage/assets/
lint:javascript:
<<
:
*dedicated-runner
cache
:
paths
:
-
node_modules/
...
...
@@ -358,6 +381,7 @@ lint:javascript:
-
npm --silent run eslint
lint:javascript:report:
<<
:
*dedicated-runner
cache
:
paths
:
-
node_modules/
...
...
@@ -379,6 +403,7 @@ lint:javascript:report:
trigger_docs
:
stage
:
post-test
image
:
"
alpine"
<<
:
*dedicated-runner
before_script
:
-
apk update && apk add curl
variables
:
...
...
@@ -394,6 +419,7 @@ trigger_docs:
notify:slack:
stage
:
post-test
<<
:
*dedicated-runner
variables
:
SETUP_DB
:
"
false"
USE_BUNDLE_INSTALL
:
"
false"
...
...
@@ -409,6 +435,7 @@ notify:slack:
pages
:
before_script
:
[]
stage
:
pages
<<
:
*dedicated-runner
dependencies
:
-
coverage
-
teaspoon
...
...
@@ -423,11 +450,12 @@ pages:
paths
:
-
public
only
:
-
master
-
master
@gitlab-org/gitlab-ce
# Insurance in case a gem needed by one of our releases gets yanked from
# rubygems.org in the future.
cache gems
:
<<
:
*dedicated-runner
only
:
-
tags
variables
:
...
...
@@ -437,3 +465,5 @@ cache gems:
artifacts
:
paths
:
-
vendor/cache
only
:
-
master@gitlab-org/gitlab-ce
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