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 25, 2015
1 parent 961da04 commit 778740a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 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 -xe
./run 'bundle exec rake beaker'

0 comments on commit 778740a

Please sign in to comment.