diff --git a/.travis.yml b/.travis.yml index a1999cc67..3d7da81bf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,7 @@ env: global: - CC_TEST_REPORTER_ID=dc2c30b67c9e2a5309e1aef699c30fdab55ba4f0e4f1beac029ba93e293835db - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi) + - INSTALL_MYSQL=true matrix: - DATABASE_ADAPTER=default RUBYOPT="-W0" - DATABASE_ADAPTER=postgres RUBYOPT="-W0" diff --git a/Gemfile b/Gemfile index bbc668607..f79bc4e3f 100644 --- a/Gemfile +++ b/Gemfile @@ -3,3 +3,7 @@ source 'https://rubygems.org' gemspec gem 'simplecov', :require => false, :group => :test + +if ENV['INSTALL_MYSQL'] == "true" + gem 'mysql2', '~>0.3.15' +end \ No newline at end of file diff --git a/pact_broker.gemspec b/pact_broker.gemspec index 874c65e05..15f61ff4d 100644 --- a/pact_broker.gemspec +++ b/pact_broker.gemspec @@ -47,7 +47,6 @@ Gem::Specification.new do |gem| gem.add_development_dependency 'pry-byebug' gem.add_development_dependency 'rake', '~>10.0' gem.add_development_dependency 'fakefs', '~>0.4' - gem.add_development_dependency 'mysql2', '~>0.3.15' gem.add_development_dependency 'webmock', '~>2.3' gem.add_development_dependency 'rspec', '~>3.0' gem.add_development_dependency 'rspec-its', '~>1.2'