File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ install: true
5
5
script : " script/cibuild"
6
6
7
7
before_install :
8
- - gem uninstall --force bundler
9
- - gem install bundler -v 1.15.4
8
+ - " script/travis-before-install"
10
9
11
10
matrix :
12
11
include :
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Script runs before travis CI builds.
4
+
5
+ set -ex
6
+ DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && cd .. && pwd ) "
7
+
8
+ cd " $DIR "
9
+ DESIRED_BUNDLER_VERSION=$( grep " add_development_dependency 'bundler'" octocatalog-diff.gemspec | cut -d" '" -f4)
10
+ gem install bundler -v " $DESIRED_BUNDLER_VERSION "
11
+
12
+ BUNDLER_VERSIONS=$( gem list bundler | grep ^bundler | cut -d' (' -f2 | cut -d' )' -f1 | tr " ," " " )
13
+ for v in $BUNDLER_VERSIONS ; do
14
+ if [ " $v " != " $DESIRED_BUNDLER_VERSION " ]; then gem uninstall bundler --force -v " $v " ; fi
15
+ done
You can’t perform that action at this time.
0 commit comments