forked from rack/rack-test
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
56 lines (56 loc) · 1.39 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
env:
global:
- CC_TEST_REPORTER_ID=e2b176de532d3d4ae08889931aa9679fe2e5e1fdc6eeb9381f93c329068235d5
language: ruby
sudo: false
before_install:
- |
if ruby -e "exit(RUBY_ENGINE == 'ruby' && RUBY_VERSION.start_with?('2.2'))"; then
gem install bundler -v '< 2'
else
gem install bundler
fi
before_script:
- travis_retry 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 list
# Unit test
- bundle exec rake
# Release test
- bundle exec thor :build
- ls -l pkg/rack-test-*.gem
- gem install pkg/rack-test-*.gem
- gem list rack-test
- ruby -e 'require "rack/test"'
- gem specification pkg/rack-test-*.gem --ruby
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
rvm:
- 2.2.9
- 2.3.6
- 2.4.3
- 2.5.0
- 2.6.1
- ruby-head
- jruby-head
gemfile:
- Gemfile
- Gemfile.rack-1.x
matrix:
include:
- rvm: jruby-9.1.13.0
jdk: openjdk8
allow_failures:
- rvm: ruby-head
- rvm: jruby-head
fast_finish: true
notifications:
irc:
channels:
- "irc.freenode.org#rack-test"
on_success: change # [always|never|change] # default: always
on_failure: always # [always|never|change] # default: always
template:
- "%{message} by @%{author}: See %{build_url}"