.travis.yml in dynamoid-1.3.4 vs .travis.yml in dynamoid-2.0.0

- old
+ new

@@ -1,31 +1,56 @@ +sudo: required + language: ruby rvm: - ruby-2.0.0-p648 - ruby-2.1.10 - ruby-2.2.7 - ruby-2.3.4 - ruby-2.4.1 - jruby-9.1.9.0 gemfile: +gemfile: - gemfiles/rails_4_0.gemfile - gemfiles/rails_4_1.gemfile - gemfiles/rails_4_2.gemfile - gemfiles/rails_5_0.gemfile + - gemfiles/rails_5_1.gemfile matrix: exclude: - rvm: ruby-2.0.0-p648 gemfile: gemfiles/rails_5_0.gemfile + - rvm: ruby-2.0.0-p648 + gemfile: gemfiles/rails_5_1.gemfile - rvm: ruby-2.1.10 gemfile: gemfiles/rails_5_0.gemfile + - rvm: ruby-2.1.10 + gemfile: gemfiles/rails_5_1.gemfile - rvm: ruby-2.4.1 gemfile: gemfiles/rails_4_0.gemfile - rvm: ruby-2.4.1 gemfile: gemfiles/rails_4_1.gemfile -before_install: gem install bundler -v 1.15.4 -install: - - wget http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest.zip --quiet -O spec/dynamodb_temp.zip - - unzip -qq spec/dynamodb_temp.zip -d spec/DynamoDBLocal-latest - - rm spec/dynamodb_temp.zip -script: + +### BUILD LIFECYCLE STEPS ### + +before_install: + # Debugging: Print out the current docker-compose version. + - docker-compose --version + + # If one of your containers does not build for + # whatever reason it's best to report that now before your tests start + # otherwise it can be really tricky to debug why tests are failing sometimes. + - docker ps + +after_install: + - gem install bundler -v 1.15.4 - bundle install - - bundle exec rake unattended_spec + +before_script: + # Start Docker Compose as a daemon + - docker-compose up -d + +script: + - bundle exec rake spec + +after_script: + - docker-compose down