forked from karafka/rdkafka-ruby
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
48 lines (40 loc) · 1.15 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
language: ruby
sudo: false
services:
- docker
env:
global:
- CC_TEST_REPORTER_ID=9f7f740ac1b6e264e1189fa07a6687a87bcdb9f3c0f4199d4344ab3b538e187e
- KAFKA_HEAP_OPTS="-Xmx512m -Xms512m"
rvm:
- 2.4
- 2.5
- 2.6
- 2.7.1
- jruby-9.2.9.0
- jruby-9.2.10.0
- jruby-9.2.11.1
before_install:
- gem update --system
- |
r_eng="$(ruby -e 'STDOUT.write RUBY_ENGINE')";
if [ "$r_eng" == "jruby" ]; then
sudo apt-get update && \
sudo apt-get install -y git && \
sudo apt-get install -y libpthread-stubs0-dev && \
sudo apt-get install -y build-essential && \
sudo apt-get install -y zlib1g-dev && \
sudo apt-get install -y libssl-dev && \
sudo apt-get install -y libsasl2-dev
fi
before_script:
- docker-compose up -d
- cd ext && bundle exec rake && cd ..
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- bundle exec rspec --format documentation
after_script:
- docker-compose stop
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT