Sha256: cc7f17b863976e1cdaad1ffd3667be31c9d7f1cc00497cb5a050a6deea16628b
Contents?: true
Size: 1.25 KB
Versions: 3
Compression:
Stored size: 1.25 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 with password redis-server --requirepass secret_pass & # 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
appoptics_apm-4.2.3 | ruby_setup.sh |
appoptics_apm-4.2.2 | ruby_setup.sh |
appoptics_apm-4.2.1 | ruby_setup.sh |