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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
cf4c9b49
Commit
cf4c9b49
authored
Jul 20, 2016
by
Z.J. van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use YAML inheritance to DRY the .gitlab-ci.yml
parent
a697b3c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
19 deletions
+14
-19
.gitlab-ci.yml
.gitlab-ci.yml
+14
-19
No files found.
.gitlab-ci.yml
View file @
cf4c9b49
...
...
@@ -63,11 +63,14 @@ update-knapsack:
# Execute all testing suites
.rspec-knapsack
:
&rspec-knapsack
stage
:
test
.use-db
:
&use-db
services
:
-
mysql:latest
-
redis:alpine
.rspec-knapsack
:
&rspec-knapsack
stage
:
test
<<
:
*use-db
script
:
-
bundle exec rake assets:precompile 2>/dev/null
-
JOB_NAME=( $CI_BUILD_NAME )
...
...
@@ -83,9 +86,7 @@ update-knapsack:
.spinach-knapsack
:
&spinach-knapsack
stage
:
test
services
:
-
mysql:latest
-
redis:alpine
<<
:
*use-db
script
:
-
bundle exec rake assets:precompile 2>/dev/null
-
JOB_NAME=( $CI_BUILD_NAME )
...
...
@@ -134,9 +135,7 @@ spinach 9 10: *spinach-knapsack
# Execute all testing suites against Ruby 2.3
.ruby-23
:
&ruby-23
image
:
"
ruby:2.3"
services
:
-
mysql:latest
-
redis:alpine
<<
:
*use-db
only
:
-
master
cache
:
...
...
@@ -187,11 +186,14 @@ spinach 9 10 ruby23: *spinach-knapsack-ruby23
# Other generic tests
.
exec
:
&exec
.
static-analyses-variables
:
&static-analyses-variables
variables
:
SIMPLECOV
:
"
false"
USE_DB
:
"
false"
USE_BUNDLE_INSTALL
:
"
true"
.exec
:
&exec
<<
:
*static-analyses-variables
stage
:
test
script
:
-
bundle exec $CI_BUILD_NAME
...
...
@@ -205,26 +207,19 @@ license_finder: *exec
rake db:migrate:reset:
stage
:
test
services
:
-
mysql:latest
-
redis:alpine
<<
:
*use-db
script
:
-
rake db:migrate:reset
teaspoon
:
stage
:
test
services
:
-
mysql:latest
-
redis:alpine
<<
:
*use-db
script
:
-
teaspoon
bundler:audit:
stage
:
test
variables
:
SIMPLECOV
:
"
false"
USE_DB
:
"
false"
USE_BUNDLE_INSTALL
:
"
true"
<<
:
*static-analyses-variables
only
:
-
master
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