diff --git a/.travis.yml b/.travis.yml index b84c4b6b..24de1484 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 @@ -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 diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..7ed9fabe --- /dev/null +++ b/Makefile @@ -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'