Skip to content

Commit a91c954

Browse files
committed
Fix .travis.yml
- Try to update the bundler before using it. - Use single quotes (') around the variable definition. - Echo the final command right before running it. - Call bash to run the final command.
1 parent f176315 commit a91c954

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.travis.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ rvm:
1616
- '2.4.1'
1717

1818
env:
19-
- CMD=bundle exec rake "cucumber cucumber:boot" CREATE_BINSTUBS=true
20-
- CMD=bundle exec rake spec SPEC_OPTS="--tag content"
21-
- CMD=bundle exec rake spec SPEC_OPTS="--tag ~content"
19+
- CMD='bundle exec rake cucumber cucumber:boot CREATE_BINSTUBS=true'
20+
- CMD='bundle exec rake spec SPEC_OPTS="--tag content"'
21+
- CMD='bundle exec rake spec SPEC_OPTS="--tag ~content"'
2222

2323
matrix:
2424
fast_finish: true
@@ -32,14 +32,18 @@ before_install:
3232
- ln -sf ../../tools/dev/pre-commit-hook.rb ./.git/hooks/post-merge
3333
- ls -la ./.git/hooks
3434
- ./.git/hooks/post-merge
35+
# Update the bundler
36+
- gem install bundler
3537
before_script:
3638
- cp config/database.yml.travis config/database.yml
3739
- bundle exec rake --version
3840
- bundle exec rake db:create
3941
- bundle exec rake db:migrate
40-
script:
4142
# fail build if db/schema.rb update is not committed
42-
- git diff --exit-code db/schema.rb && $CMD
43+
- git diff --exit-code db/schema.rb
44+
script:
45+
- echo "${CMD}"
46+
- bash -c "${CMD}"
4347

4448
notifications:
4549
irc: "irc.freenode.org#msfnotify"

0 commit comments

Comments
 (0)