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
075d2bac
Commit
075d2bac
authored
Apr 13, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly use $BUNDLE_INSTALL_FLAGS
parent
11ef3154
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
.gitlab-ci.yml
.gitlab-ci.yml
+2
-2
scripts/prepare_build.sh
scripts/prepare_build.sh
+2
-3
No files found.
.gitlab-ci.yml
View file @
075d2bac
...
...
@@ -427,10 +427,10 @@ bundler:audit:
script
:
-
git fetch origin v8.14.10
-
git checkout -f FETCH_HEAD
-
bundle install
--without production --jobs $(nproc) $FLAGS --retry=3
-
bundle install
$BUNDLE_INSTALL_FLAGS
-
bundle exec rake db:drop db:create db:schema:load db:seed_fu
-
git checkout $CI_COMMIT_SHA
-
bundle install
--without production --jobs $(nproc) $FLAGS --retry=3
-
bundle install
$BUNDLE_INSTALL_FLAGS
-
. scripts/prepare_build.sh
-
bundle exec rake db:migrate
...
...
scripts/prepare_build.sh
View file @
075d2bac
...
...
@@ -4,6 +4,7 @@
export
SETUP_DB
=
${
SETUP_DB
:-
true
}
export
USE_BUNDLE_INSTALL
=
${
USE_BUNDLE_INSTALL
:-
true
}
export
BUNDLE_INSTALL_FLAGS
=
"--without production --jobs
$(
nproc
)
--path vendor --retry 3 --quiet"
# Determine the database by looking at the job name.
# For example, we'll get pg if the job is `rspec pg 19 20`
...
...
@@ -31,7 +32,7 @@ sed -i 's/localhost/redis/g' config/resque.yml
cp
config/gitlab.yml.example config/gitlab.yml
if
[
"
$USE_BUNDLE_INSTALL
"
!=
"false"
]
;
then
retry bundle
install
--
without
production
--jobs
$(
nproc
)
--clean
$
FLAGS
retry bundle
install
--
clean
$BUNDLE_INSTALL_
FLAGS
fi
# Only install knapsack after bundle install! Otherwise oddly some native
...
...
@@ -45,5 +46,3 @@ if [ "$SETUP_DB" != "false" ]; then
bundle
exec
rake add_limits_mysql
fi
fi
export
FLAGS
=
"--path vendor --retry 3 --quiet"
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