summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Fazekas <mfazekas@szemafor.com>2016-04-07 16:24:19 +0200
committerMiklos Fazekas <mfazekas@szemafor.com>2016-04-07 17:14:46 +0200
commitd340fc2d971035daedd03860f105dca15d2fcacf (patch)
tree216232b20bd770bb42d12fea3a9bc7bad72bbc08
parent3cb21f6a5090a0e8189b7da2ee2bca74cc521b0f (diff)
downloadnet-ssh-integration-test-travis.tar.gz
Integration tests on travisintegration-test-travis
-rw-r--r--.travis.yml17
-rw-r--r--test/integration/playbook.yml3
2 files changed, 12 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml
index 2bb6db7..f2bec5e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,13 +1,9 @@
language: ruby
-sudo: false
+sudo: true
+dist: trusty
+
rvm:
- - 2.0
- - 2.1
- - 2.2
- 2.3.0
- - jruby-head
- - rbx-3.20
- - ruby-head
matrix:
allow_failures:
@@ -15,9 +11,16 @@ matrix:
- rvm: rbx-3.20
install:
+ - sudo pip install ansible
- gem install bundler -v "= 1.11.2"
- bundle _1.11.2_ install
script:
- bundle exec rake test
- bundle exec rubocop
+ - sudo ansible-galaxy install rvm_io.rvm1-ruby
+ - who am i
+ - groups
+ - ansible-playbook ./test/integration/playbook.yml -i "localhost," --become -c local -e 'no_rvm=true'
+
+
diff --git a/test/integration/playbook.yml b/test/integration/playbook.yml
index 5056880..781986a 100644
--- a/test/integration/playbook.yml
+++ b/test/integration/playbook.yml
@@ -22,8 +22,9 @@
rvm1_rubies: "{{ ruby_versions }}",
rvm1_install_path: "{{rvm_install_path}}",
rvm1_gpg_key_server: pool.sks-keyservers.net,
- when: "'{{current_ruby_version.stdout|default()}}' != '{{ruby_version}}'" }
+ when: "'{{current_ruby_version.stdout|default()}}' != '{{ruby_version}}' and not no_rvm" }
tasks:
+ - group: name=vagrant state=present
- user: name=net_ssh_1 password="{{foopwd}}" group=vagrant state=present
- user: name=net_ssh_2 password="{{foo2pwd}}" group=vagrant state=present
- file: dest=/home/net_ssh_1/.ssh/ state=directory mode=0740 owner=net_ssh_1