Sha256: 48b7ff41b4125e2b3938b19ec2f4d2351b33177aa09559dea8f3cecf72fce5ed
Contents?: true
Size: 1.15 KB
Versions: 3
Compression:
Stored size: 1.15 KB
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| travis['env'].each do |env| matrix << { "rvm" => rvm, "gemfile" => gemfile, 'env' => env} end end end travis['matrix']['exclude'].each do |h| matrix.delete_if do |m| m == m.merge(h) end end 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']} #{args['env']}` puts "docker-compose run --rm --service-ports ruby_appoptics_apm /code/ruby-appoptics_apm/ruby_setup.sh #{args['rvm']} #{args['gemfile']} #{args['env']}" end # `docker-compose down --rmi all`
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
appoptics_apm-4.0.9 | run_tests_docker.rb |
appoptics_apm-4.0.8 | run_tests_docker.rb |
appoptics_apm-4.0.7 | run_tests_docker.rb |