forked from solarwinds/appoptics-apm-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
121 lines (107 loc) · 3.18 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
language: ruby
cache:
bundler: true
directories:
- vendor/bundle
env:
- DBTYPE=postgresql
- DBTYPE=mysql2
- DBTYPE=mysql
rvm:
- 2.6.0
- 2.5.3
- 2.4.5
- 2.3.8
# - 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/rails52.gemfile
- gemfiles/rails42.gemfile
- gemfiles/delayed_job.gemfile
- gemfiles/noop.gemfile
matrix:
exclude:
- rvm: ruby-head
gemfile: gemfiles/rails42.gemfile
- rvm: 2.6.0
gemfile: gemfiles/rails42.gemfile
- rmv: 2.6.0
env: DBTYPE=mysql
- rvm: 2.5.3
env: DBTYPE=mysql
- rvm: 2.4.5
env: DBTYPE=mysql
- rvm: ruby-head
env: DBTYPE=mysql
- gemfile: gemfiles/unit.gemfile
env: DBTYPE=mysql
- gemfile: gemfiles/noop.gemfile
env: DBTYPE=mysql
- gemfile: gemfiles/libraries.gemfile
env: DBTYPE=mysql
- gemfile: gemfiles/instrumentation_mocked.gemfile
env: DBTYPE=mysql
- gemfile: gemfiles/instrumentation_mocked_oldgems.gemfile
env: DBTYPE=mysql
- gemfile: gemfiles/frameworks.gemfile
env: DBTYPE=mysql
- gemfile: gemfiles/rails51.gemfile
env: DBTYPE=mysql
- gemfile: gemfiles/rails52.gemfile
env: DBTYPE=mysql
- gemfile: gemfiles/delayed_job.gemfile
env: DBTYPE=mysql
- 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: Figure out if this is still an issue when reviewing cassandra test setup
# 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
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.8/swig-3.0.8.tar.gz
- tar xzf swig-3.0.8.tar.gz
- pushd swig-3.0.8
- ./configure && make && sudo make install
- popd
before_script:
- bundle update --jobs=3 --retry=3
- bundle exec rake fetch_ext_deps
- bundle exec rake clean
- bundle exec rake compile
- psql -c 'create database travis_ci_test;' -U postgres
- mysql -e 'create database travis_ci_test;'
- redis-server --requirepass secret_pass &
- sleep 10
- export APPOPTICS_TOKEN_BUCKET_CAPACITY=1000
- export APPOPTICS_TOKEN_BUCKET_RATE=1000
script: "N=1 bundle exec rake test"
services:
- mongodb
- memcached
- cassandra
# - redis
- rabbitmq