LoginSignup
2
2

More than 5 years have passed since last update.

embulk のプラグインを travis でテストする

Last updated at Posted at 2015-07-18

Java プラグイン

.travis.yml を次のように書けば実行できた

.travis.yml
language: java
jdk:
  - openjdk7
  - oraclejdk7
  # - oraclejdk8
script:
  - ./gradlew test

Embulk 業界的には java7 でビルドできるようになっていると良い

なお、openjdk8 は用意されていないもよう. See http://docs.travis-ci.com/user/languages/java/

JRuby プラグイン

Gemfile に embulk も書いて

Gemfile
source 'https://rubygems.org'

gemspec
gem 'embulk'

Rakefile を作って bundle exec rake でテストを流せるようにしておき、

Rakefile
require 'rake/testtask'
desc 'Run test_unit based test'
Rake::TestTask.new(:test) do |t|
  t.libs << "test"
  t.test_files = Dir["test/**/test_*.rb"].sort
  t.verbose = true
  #t.warning = true
end
task :default => :test

.travis.yml を次のようにすれば良い。

.travis.yml
language: ruby
cache: bundler
rvm:
  - jruby-head
jdk:
  - openjdk7
before_install:
  - gem install bundler

利用できる jruby (ruby) のバージョン一覧はこちら http://rubies.travis-ci.org/

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2