File tree Expand file tree Collapse file tree 4 files changed +13
-17
lines changed Expand file tree Collapse file tree 4 files changed +13
-17
lines changed Original file line number Diff line number Diff line change 14
14
echo ' Running bundler'
15
15
cd " ${DIR} " && \
16
16
rm -f Gemfile.lock && \
17
- bundle install --without=' ' --no-prune --path vendor/bundle --local && \
18
- bundle binstubs puppet rake rspec-core rubocop parallel_tests && \
17
+ " $DIR /script/ bundle" install --without=' ' --no-prune --path vendor/bundle --local && \
18
+ " $DIR /script/ bundle" binstubs puppet rake rspec-core rubocop parallel_tests && \
19
19
chmod 0755 bin/octocatalog-diff
20
20
if [ $? -ne 0 ]; then
21
21
echo ' bundle install failed - aborting bootstrap'
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Wrap "bundle" as it's used in the CI build scripts.
4
+ set -e
5
+ DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && cd .. && pwd ) "
6
+ cd " $DIR "
7
+ DESIRED_BUNDLER_VERSION=$( grep " add_development_dependency 'bundler'" octocatalog-diff.gemspec | cut -d" '" -f4)
8
+ bundle " _${DESIRED_BUNDLER_VERSION} _" " $@ "
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ if [ "$RUBOCOP_TEST" = "true" ]; then
49
49
echo " "
50
50
51
51
bootstrap
52
- time bundle exec rake rubocop
52
+ time " $DIR /script/ bundle" exec rake rubocop
53
53
RUBOCOP_EXITCODE=$?
54
54
echo " "
55
55
else
@@ -90,7 +90,7 @@ if [ "$RSPEC_TEST" = "true" ]; then
90
90
91
91
# Run the tests
92
92
echo " Running tests"
93
- time bundle exec rake test
93
+ time " $DIR /script/ bundle" exec rake test
94
94
exitcode=$?
95
95
if [ " $exitcode " -ne 0 ]; then RSPEC_EXITCODE=" $exitcode " ; fi
96
96
cat " $OUTPUT_FILE "
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # Script runs before travis CI builds.
4
-
5
- echo " travis_fold:start:travis-before-install"
6
- set -ex
3
+ set -e
7
4
DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && cd .. && pwd ) "
8
-
9
5
cd " $DIR "
10
6
DESIRED_BUNDLER_VERSION=$( grep " add_development_dependency 'bundler'" octocatalog-diff.gemspec | cut -d" '" -f4)
11
7
gem install bundler -v " $DESIRED_BUNDLER_VERSION "
12
-
13
- BUNDLER_VERSIONS=$( gem list bundler | grep ^bundler | cut -d' (' -f2 | cut -d' )' -f1 | tr " ," " " )
14
- for v in $BUNDLER_VERSIONS ; do
15
- if [ " $v " != " $DESIRED_BUNDLER_VERSION " ]; then
16
- gem uninstall bundler --force -v " $v " || true
17
- fi
18
- done
19
- echo " travis_fold:end:travis-before-install"
You can’t perform that action at this time.
0 commit comments