Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
language: 'python'
python: '2.7'

sudo: required

env:
- SITE_AND_INVENTORY='tests/test.yml -i tests/inventory'

Expand Down Expand Up @@ -35,6 +37,11 @@ script:
| grep -q 'ruby-2.1.0'
&& (echo 'Multiple rubies test: pass' && exit 0)
|| (echo 'Multiple rubies test: fail' && exit 1)
- >
~/.rvm/wrappers/ruby-2.1.2/bundle -v
| grep -q 'Bundler version'
&& (echo 'Bundler setup test: pass' && exit 0)
|| (echo 'Bundler setup test: fail' && exit 1)
- >
ansible-playbook $SITE_AND_INVENTORY --connection=local --extra-vars='rvm1_delete_ruby=ruby-2.1.0'
| grep -q 'ok=1.*failed=0'
Expand Down
4 changes: 1 addition & 3 deletions tasks/rubies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
rvm1_default_ruby_version not in detect_default_ruby_version.stdout

- name: Install bundler if not installed
shell: >
{{ rvm1_install_path }}/wrappers/{{ item }}/gem list
| if ! grep "^bundler " ; then {{ rvm1_install_path }}/wrappers/{{ item }}/gem install bundler ; fi
shell: bash -lc 'cd; rvm use {{ item }}; gem list | if ! grep "^bundler " ; then gem install bundler ; fi'
args:
creates: '{{ rvm1_install_path }}/wrappers/{{ item }}/bundler'
with_items: rvm1_rubies
Expand Down
2 changes: 1 addition & 1 deletion tests/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
vars:
rvm1_rubies:
- 'ruby-2.1.0'
- 'ruby-2.1.2'
- '2.1.2'
rvm1_install_path: '/home/travis/.rvm'
rvm1_install_flags: '--auto-dotfiles --user-install'

Expand Down