Sha256: 9aeeb704bda18a68617fdae29545c936e283e4366807b1d35966cf1d5f8601e4
Contents?: true
Size: 1.22 KB
Versions: 2
Compression:
Stored size: 1.22 KB
Contents
#!/bin/bash # used by run_tests_docker.sh # call with: # docker-compose run --service-ports ruby_appoptics_apm /code/ruby-appoptics_apm/ruby_setup.sh <ruby-version> <gemfile> <DBNAME=mysql2> <true|false> # docker-compose run --service-ports ruby_appoptics_apm /code/ruby-appoptics_apm/ruby_setup.sh 2.4.3 gemfiles/libraries.gemfile cd /code/ruby-appoptics_apm/ rbenv global $1 rm gemfiles/*.lock export RVM_TEST=$1 export BUNDLE_GEMFILE=$2 bundle install bundle update bundle exec rake fetch_ext_deps bundle exec rake clean bundle exec rake compile # start postgres service postgresql start # start redis service redis-server start # start memcached service memcached start # mysql add table for tests mysql -e 'create database travis_ci_test;' -h$MYSQL_HOST -p$MYSQL_ROOT_PASSWORD # replicate stdout of tests to file in local log directory export TEST_RUNS_TO_FILE=true export $3 if [ "$4" == "true" ]; then /bin/bash # now run tests either with: # bundle exec rake test TEST=test/instrumentation/curb_test.rb # or # bundle exec ruby -I test test/instrumentation/curb_test.rb -n test_obey_collect_backtraces_when_false else bundle exec rake test fi mysql -e 'drop database travis_ci_test;' -h$MYSQL_HOST -p$MYSQL_ROOT_PASSWORD
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
appoptics_apm-4.2.0 | ruby_setup.sh |
appoptics_apm-4.1.2 | ruby_setup.sh |