Sha256: 91776b5d211f4a919a380837c1d91970d593d29824004d163a0dbae1d5385148

Contents?: true

Size: 903 Bytes

Versions: 6

Compression:

Stored size: 903 Bytes

Contents

#!/usr/bin/env ruby

# this runs all the tests on the current code base
# any edits take effect immediately
# test output is logged to log/test_runs.log
# make sure log/ and log/test_runs.log is writeable by docker

# `docker build -f Dockerfile -t ruby_appoptics .`
# (docker-compose will build it too if missing)
#
# `docker-compose up -d`
# or to rebuild ruby_appoptics
# `docker-compose up --build -d`

require 'yaml'
travis = YAML.load_file('.travis.yml')

matrix = []
travis['rvm'].each do |rvm|
  travis['gemfile'].each do |gemfile|
    matrix << { "rvm" => rvm, "gemfile" => gemfile }
  end
end

matrix = matrix - travis['matrix']['exclude']

matrix.each do |args|
  args['rvm'] = '1.9.3-p551' if args['rvm'] =~ /1.9.3/
  `docker-compose run --rm --service-ports ruby_appoptics_apm /code/ruby-appoptics_apm/ruby_setup.sh #{args['rvm']} #{args['gemfile']}`
end

# `docker-compose down --rmi all`

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
appoptics_apm-4.0.6 run_tests_docker.rb
appoptics_apm-4.0.5 run_tests_docker.rb
appoptics_apm-4.0.4 run_tests_docker.rb
appoptics_apm-4.0.3 run_tests_docker.rb
appoptics_apm-4.0.2 run_tests_docker.rb
appoptics_apm-4.0.1-x86_64-linux run_tests_docker.rb