Sha256: 7983fe3808759fe11f199b73875237dd79f5329a8ce37d8784b30357b4a33e41
Contents?: true
Size: 1.2 KB
Versions: 5
Compression:
Stored size: 1.2 KB
Contents
#!/bin/bash # used by run_tests_docker.sh # call with: # docker-compose run --service-ports ruby_appoptics /code/ruby-appoptics_apm/ruby_setup.sh <ruby-version> <gemfile> <true|false> # docker-compose run --service-ports ruby_appoptics /code/ruby-appoptics_apm/ruby_setup.sh 2.4.1 gemfiles/libraries.gemfile cd /code/ruby-appoptics_apm/ rbenv local $1 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 bundle install --gemfile $2 export RVM_TEST=$1 export BUNDLE_GEMFILE=$2 # replicate stdout of tests to file in local log directory export TEST_RUNS_TO_FILE=true if [ "$3" == "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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
appoptics_apm-4.0.5 | ruby_setup.sh |
appoptics_apm-4.0.4 | ruby_setup.sh |
appoptics_apm-4.0.3 | ruby_setup.sh |
appoptics_apm-4.0.2 | ruby_setup.sh |
appoptics_apm-4.0.1-x86_64-linux | ruby_setup.sh |