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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
ea731cac
Commit
ea731cac
authored
Jun 03, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preserve knapsack state
parent
d8e90d03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
15 deletions
+23
-15
.gitlab-ci.yml
.gitlab-ci.yml
+23
-15
No files found.
.gitlab-ci.yml
View file @
ea731cac
...
...
@@ -21,7 +21,7 @@ before_script:
-
source ./scripts/prepare_build.sh
-
cp config/gitlab.yml.example config/gitlab.yml
-
bundle --version
-
retry bundle install --without postgres production --jobs $(nproc) "${FLAGS[@]}"
-
'
[
"$USE_BUNDLE_INSTALL"
!=
"true"
]
||
retry
bundle
install
--without
postgres
production
--jobs
$(nproc)
"${FLAGS[@]}"'
-
retry gem install knapsack
-
'
[
"$USE_DB"
!=
"true"
]
||
bundle
exec
rake
db:drop
db:create
db:schema:load
db:migrate'
...
...
@@ -31,18 +31,26 @@ stages:
-
post-test
-
notifications
pre
par
e
:
pre
compil
e
:
stage
:
prepare
variables
:
USE_DB
:
"
false"
script
:
-
bundle exec rake assets:precompile
-
mkdir -p knapsack/
-
echo "{}" > knapsack/rspec_report.json
-
echo "{}" > knapsack/spinach_report.json
artifacts
:
paths
:
-
public/assets/
.knapsack_state
:
&knapsack_state
variables
:
USE_DB
:
"
false"
USE_BUNDLE_INSTALL
:
"
false"
cache
:
key
:
"
knapsack"
paths
:
-
knapsack/
artifacts
:
paths
:
-
knapsack/
.knapsack
:
&knapsack
...
...
@@ -59,21 +67,21 @@ prepare:
paths
:
-
knapsack/
post-tests
:
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
variables
:
USE_DB
:
"
false"
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
cache
:
key
:
"
knapsack"
paths
:
-
knapsack/
artifacts
:
paths
:
-
knapsack/
.exec
:
&exec
stage
:
test
...
...
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