Skip to content

Commit

Permalink
Added travis docker integration
Browse files Browse the repository at this point in the history
  • Loading branch information
solarkennedy committed Aug 26, 2015
1 parent 961da04 commit 88bb33c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@
language: ruby
bundler_args: --without development
before_install: rm Gemfile.lock || true
sudo: false
sudo: true
rvm:
# - 1.8.7
- 1.9.3
- 2.0.0
- 2.1.0
script: bundle exec rake test
script: if [[ $BEAKER == true ]]; then make beaker; else bundle exec rake test; fi
env:
# - PUPPET_VERSION="~> 2.7.0"
- PUPPET_VERSION="~> 3.1.0"
- PUPPET_VERSION="~> 3.3.0"
- PUPPET_VERSION="~> 3.7.4" FUTURE_PARSER=yes STRICT_VARIABLES=yes
- PUPPET_VERSION="~> 4.0.0"
- PUPPET_VERSION="~> 4.1.0"
- BEAKER=true
matrix:
exclude:
- rvm: 1.9.3
Expand All @@ -42,3 +41,7 @@ matrix:
env: PUPPET_VERSION="~> 4.1.0"
- rvm: 2.0.0
env: PUPPET_VERSION="~> 4.1.0"
- rvm: 1.9.3
env: BEAKER=true
- rvm: 2.0.0
env: BEAKER=true
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Make target for TravisCI to run beaker tests in docker
beaker:
bundle config
rm .bundle/config
bundle config
bundle install
curl -sLo - http://j.mp/install-travis-docker | UML_DOCKERCOMPOSE=0 UML_FIG=0 sh -e
./run 'bundle exec rake beaker'
1 change: 0 additions & 1 deletion spec/acceptance/nodesets/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ HOSTS:
platform: ubuntu-12.04-x64
image: solarkennedy/ubuntu-12.04-puppet
hypervisor: docker
#docker_cmd: /usr/sbin/sshd -D
docker_cmd: '["/sbin/init"]'
docker_preserve_image: true
CONFIG:
Expand Down

0 comments on commit 88bb33c

Please sign in to comment.