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
Boxiang Sun
gitlab-ce
Commits
20dc6a70
Commit
20dc6a70
authored
May 22, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use knapsack directly
parent
3e61c8fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
.gitlab-ci.yml
.gitlab-ci.yml
+3
-11
No files found.
.gitlab-ci.yml
View file @
20dc6a70
...
@@ -21,7 +21,6 @@ before_script:
...
@@ -21,7 +21,6 @@ before_script:
-
source ./scripts/prepare_build.sh
-
source ./scripts/prepare_build.sh
-
cp config/gitlab.yml.example config/gitlab.yml
-
cp config/gitlab.yml.example config/gitlab.yml
-
bundle --version
-
bundle --version
#- retry gem install bundler
-
retry bundle install --without postgres production --jobs $(nproc) "${FLAGS[@]}"
-
retry bundle install --without postgres production --jobs $(nproc) "${FLAGS[@]}"
-
'
[
"$USE_DB"
!=
"true"
]
||
bundle
exec
rake
db:drop
db:create
db:schema:load
db:migrate'
-
'
[
"$USE_DB"
!=
"true"
]
||
bundle
exec
rake
db:drop
db:create
db:schema:load
db:migrate'
...
@@ -30,20 +29,12 @@ stages:
...
@@ -30,20 +29,12 @@ stages:
-
test
-
test
-
notifications
-
notifications
test-bundler
:
stage
:
build
variables
:
USE_DB
:
"
false"
script
:
-
retry gem install bundler
-
bundle exec bundle --version
prepare
:
prepare
:
stage
:
build
stage
:
build
variables
:
variables
:
USE_DB
:
"
false"
USE_DB
:
"
false"
script
:
script
:
-
bundle exec rake assets:precompile
#
- bundle exec rake assets:precompile
-
echo "{}" > knapsack_rspec_report.json
-
echo "{}" > knapsack_rspec_report.json
-
echo "{}" > knapsack_cucumber_report.json
-
echo "{}" > knapsack_cucumber_report.json
artifacts
:
artifacts
:
...
@@ -58,7 +49,8 @@ prepare:
...
@@ -58,7 +49,8 @@ prepare:
-
JOB_NAME=( $CI_BUILD_NAME )
-
JOB_NAME=( $CI_BUILD_NAME )
-
export CI_NODE_INDEX=${JOB_NAME[1]}
-
export CI_NODE_INDEX=${JOB_NAME[1]}
-
export CI_NODE_TOTAL=${JOB_NAME[2]}
-
export CI_NODE_TOTAL=${JOB_NAME[2]}
-
bundle exec rake knapsack:${JOB_NAME[0]}
-
gem install knapsack
-
knapsack ${JOB_NAME[0]}
.exec
:
&exec
.exec
:
&exec
stage
:
test
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