Skip to content

Commit

Permalink
Build JRuby on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrylo committed May 11, 2017
1 parent 42593e3 commit f45a2aa
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 53 deletions.
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
language: ruby
sudo: false

rvm:
- jruby-9.1.8.0

env:
global:
- JRUBY_OPTS="--dev -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -Xcompile.mode=OFF"
cache:
bundler: true

notifications:
slack:
rooms:
secure: KA961/QiMZGtPX44AGoC+ALulY9X1jiBN2W0HlgSMQnAZ7QAU8ZVLt6jJWXqMzE7q2kD1pPaZJVv6QEFNVB3FDatiMhlL2p07VyDDEjCuV6c6OGJ32lTcsswFIshJsj773RHqDNlMxVtDT5NeRCNa72qYvNQp2QSJMdXNIqq0E0pLzwR9zma53DKdxh9+9iG2eJ060HbOcFJxAtsOxq0V9CgRWw7wLysOMTCZSb/II4IjpVvyOVTDvvtMlvNEnSzBi2b7x5Qh6p0B+2L2aGoXgQYtOQyvcOnvtyVwoV1gIIKlyNrQYq80bTu+QMtaNIVQBtDEMPap+7wqWHcptW3fifdUBOeosPfWGufDfR00/NHq91wLW3eHRX2lZiYXTaQLR3F/wD5vCOtrLfD6goboRnIPd9P2XEfLsgmpUQ10/Jlrvb56AFnEnJl9mjaNT5q7hK4qZR/ODpSnrw5D1x++jcj1A3+e+gM19PMplm94BVh3w+7IYJHjiJsCy5SnHwRdbnf87r2cMDqZuW3pYAf9jrDmXDYm98ijBKUP7dKm7qIPhm6LRIaGiwqB0nOD6UFEp/Ys9m4NFcVGrt54paFjh54wY+hs79ywH2JJnWVBabglUbCs03+nnhHfnBVDGFn9p9QnSwb9ja/hIQ4/flI6IqHf68A1y8IwB0jXHPS4zI=
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Airbrake Ruby
=============

[![Build Status](https://circleci.com/gh/airbrake/airbrake-ruby.svg?style=shield)](https://circleci.com/gh/airbrake/airbrake-ruby)
[![Circle Build Status](https://circleci.com/gh/airbrake/airbrake-ruby.svg?style=shield)](https://circleci.com/gh/airbrake/airbrake-ruby)
[![Travis Build Status](https://travis-ci.org/airbrake/airbrake-ruby.svg?branch=master)](https://travis-ci.org/airbrake/airbrake-ruby)
[![Gem Version](https://badge.fury.io/rb/airbrake-ruby.svg)](http://badge.fury.io/rb/airbrake-ruby)
[![Documentation Status](http://inch-ci.org/github/airbrake/airbrake-ruby.svg?branch=master)](http://inch-ci.org/github/airbrake/airbrake-ruby)
[![Downloads](https://img.shields.io/gem/dt/airbrake-ruby.svg?style=flat)](https://rubygems.org/gems/airbrake-ruby)
Expand Down
68 changes: 16 additions & 52 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,67 +1,31 @@
machine:
ruby:
version: 2.4.1

dependencies:
override:
- gem update --system
- bundle install
- ? |
case $CIRCLE_NODE_INDEX in
0)
rvm-exec 2.0.0-p645 bundle install
;;
1)
rvm-exec 2.1.10 bundle install
;;
2)
rvm-exec 2.2.7 bundle install
;;
3)
# Workaround for https://github.com/sickill/rainbow/issues/48
rvm-exec 2.3.4 gem update --system

rvm-exec 2.3.4 bundle install
;;
4)
rvm-exec 2.4.1 bundle install
;;
5)
export JRUBY_OPTS="--dev -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -Xcompile.mode=OFF"

# Workaround for https://github.com/sickill/rainbow/issues/48
rvm-exec jruby-9.1.8.0 gem update --system

rvm-exec jruby-9.1.8.0 bundle install
;;
0) rvm-exec 2.0.0-p645 bundle install ;;
1) rvm-exec 2.1.10 bundle install ;;
2) rvm-exec 2.2.7 bundle install ;;
3) rvm-exec 2.3.4 bundle install ;;
4) rvm-exec 2.4.1 bundle install ;;
esac
:
parallel: true

test:
override:
- bundle exec rubocop
- ? |
set -e
case $CIRCLE_NODE_INDEX in
0)
rvm-exec 2.0.0-p645 bundle exec rake
;;
1)
rvm-exec 2.1.10 bundle exec rake
;;
2)
rvm-exec 2.2.7 bundle exec rake
;;
3)
rvm-exec 2.3.4 bundle exec rake
;;
4)
rvm-exec 2.4.1 bundle exec rake
;;
5)
JRUBY_OPTS="--dev -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -Xcompile.mode=OFF" rvm-exec jruby-9.1.8.0 bundle exec rake
;;
4) rvm-exec 2.4.1 bundle exec rubocop ;;
esac
:
parallel: true
- ? |
case $CIRCLE_NODE_INDEX in
0) rvm-exec 2.0.0-p645 bundle exec rake ;;
1) rvm-exec 2.1.10 bundle exec rake ;;
2) rvm-exec 2.2.7 bundle exec rake ;;
3) rvm-exec 2.3.4 bundle exec rake ;;
4) rvm-exec 2.4.1 bundle exec rake ;;
esac
:
parallel: true

0 comments on commit f45a2aa

Please sign in to comment.