language: ruby cache: bundler: true directories: - vendor/bundle env: - DBTYPE=postgresql - DBTYPE=mysql2 rvm: - 2.7.0 - 2.6.4 - 2.5.5 - 2.4.5 - ruby-head # - jruby-9.0.5.0 gemfile: - gemfiles/libraries.gemfile - gemfiles/unit.gemfile - gemfiles/instrumentation_mocked.gemfile - gemfiles/instrumentation_mocked_oldgems.gemfile - gemfiles/frameworks.gemfile - gemfiles/rails60.gemfile - gemfiles/rails52.gemfile - gemfiles/rails42.gemfile - gemfiles/delayed_job.gemfile - gemfiles/noop.gemfile matrix: exclude: - rvm: ruby-head gemfile: gemfiles/rails42.gemfile - rvm: 2.7.0 gemfile: gemfiles/rails42.gemfile - rvm: 2.6.4 gemfile: gemfiles/rails42.gemfile - rvm: 2.4.5 gemfile: gemfiles/rails60.gemfile - rvm: 2.4.5 # excluding because of new sprockets version (4.0.0) gemfile: gemfiles/rails52.gemfile - gemfile: gemfiles/unit.gemfile env: DBTYPE=mysql2 - gemfile: gemfiles/noop.gemfile env: DBTYPE=mysql2 - gemfile: gemfiles/libraries.gemfile env: DBTYPE=mysql2 - gemfile: gemfiles/instrumentation_mocked.gemfile env: DBTYPE=mysql2 - gemfile: gemfiles/instrumentation_mocked_oldgems.gemfile env: DBTYPE=mysql2 - gemfile: gemfiles/frameworks.gemfile env: DBTYPE=mysql2 - gemfile: gemfiles/delayed_job.gemfile env: DBTYPE=mysql2 allow_failures: - rvm: ruby-head # FIXME: No cassandra tests for now # ____ Figure out if this is still an issue when reviving cassandra # Attempt Travis/Cassandra fix re: https://github.com/travis-ci/travis-ci/issues/1484 # Updated Cassandra: https://github.com/travis-ci/travis-ci/issues/1650 # the following is not working anymore on travis # commenting it out as per AO-13532 as we currently don't have instrumentation # for cassandra #before_install: # - sudo service cassandra stop # - sudo sh -c "echo 'JVM_OPTS=\"\${JVM_OPTS} -Djava.net.preferIPv4Stack=false\"' >> /etc/cassandra/cassandra-env.sh" # - echo "127.0.0.1 localhost" | sudo tee /etc/hosts # - echo "127.0.0.1 " `hostname` | sudo tee -a /etc/hosts # - sudo service cassandra start install: # - curl -LO http://kent.dl.sourceforge.net/project/swig/swig/swig-3.0.12/swig-3.0.12.tar.gz # - curl -LO http://kent.dl.sourceforge.net/project/swig/swig/swig-4.0.1/swig-4.0.1.tar.gz # - tar xzf swig-4.0.1.tar.gz # - pushd swig-4.0.1 # - ./configure && make && sudo make install # - popd # use swig from git, it is the only one that works with Ruby 2.7 for now - git clone https://github.com/swig/swig.git - pushd swig - ./autogen.sh - ./configure && make && sudo make install - popd before_script: - export APPOPTICS_GEM_TEST=true - export APPOPTICS_REPORTER=file - export APPOPTICS_COLLECTOR=/tmp/appoptics_traces.bson - export APPOPTICS_REPORTER_FILE_SINGLE=false - export APPOPTICS_TOKEN_BUCKET_CAPACITY=1000 - export APPOPTICS_TOKEN_BUCKET_RATE=1000 - export APPOPTICS_FROM_S3=true # - bundle update --jobs=3 --retry=3 - ./.travis/bundle.sh - bundle exec rake distclean fetch compile - psql -c 'create database travis_ci_test;' -U postgres - mysql -e 'create database travis_ci_test;' - redis-server --requirepass secret_pass & - sleep 10 script: "bundle exec rake test" services: - mongodb - memcached - mysql # - cassandra - postgresql # - redis-server - rabbitmq addons: apt: packages: - rabbitmq-server