File tree Expand file tree Collapse file tree 4 files changed +29
-17
lines changed Expand file tree Collapse file tree 4 files changed +29
-17
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ matrix:
4
4
- env : EMBULK_VERSION=0.8.39
5
5
rvm : jruby-9.1.5.0 # bundled jruby version
6
6
jdk : openjdk7 # embulk 0.8.x uses jdk7
7
- # - env: EMBULK_VERSION=0.9.15
8
- # rvm: jruby-9.1.5.0 # bundled jruby version
9
- # jdk: openjdk8 # embulk 0.9.x uses jdk8
10
- # - env: EMBULK_VERSION=latest
11
- # rvm: jruby-9.1.5.0 # ?
12
- # jdk: openjdk8 # ?
13
- # allow_failures:
14
- # - env: EMBULK_VERSION=latest
15
- # before_install:
16
- # - curl -o embulk.jar --create-dirs -L "http://dl.embulk.org/embulk-${EMBULK_VERSION}.jar"
17
- # script: bundle exec env RUBYOPT="-r $PWD /embulk.jar -r embulk " rake test
7
+ - env : EMBULK_VERSION=0.9.15
8
+ rvm : jruby-9.1.5.0 # bundled jruby version
9
+ jdk : openjdk8 # embulk 0.9.x uses jdk8
10
+ - env : EMBULK_VERSION=latest
11
+ rvm : jruby-9.1.5.0 # ?
12
+ jdk : openjdk8 # ?
13
+ allow_failures :
14
+ - env : EMBULK_VERSION=latest
15
+ before_install :
16
+ - curl -o embulk.jar --create-dirs -L "http://dl.embulk.org/embulk-${EMBULK_VERSION}.jar"
17
+ script : bundle exec env RUBYOPT="-r . /embulk.jar" rake test
Original file line number Diff line number Diff line change @@ -444,16 +444,24 @@ $ embulk run -X page_size=1 -b . -l trace example/example.yml
444
444
445
445
### Run test:
446
446
447
+ Place your embulk with `.jar` extension:
448
+
449
+ ```
450
+ $ cp -a $(which embulk) embulk.jar
451
+ ```
452
+
453
+ Run tests with `env RUBYOPT="-r ./embulk.jar`:
454
+
447
455
```
448
- $ bundle exec rake test
456
+ $ bundle exec env RUBYOPT="-r ./embulk.jar" rake test
449
457
```
450
458
451
459
To run tests which actually connects to BigQuery such as test/test\_bigquery\_client.rb,
452
460
prepare a json\_keyfile at example/your-project-000.json, then
453
461
454
462
```
455
- $ bundle exec ruby test/test_bigquery_client.rb
456
- $ bundle exec ruby test/test_example.rb
463
+ $ bundle exec env RUBYOPT="-r ./embulk.jar" ruby test/test_bigquery_client.rb
464
+ $ bundle exec env RUBYOPT="-r ./embulk.jar" ruby test/test_example.rb
457
465
```
458
466
459
467
### Release gem:
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ Gem::Specification.new do |spec|
15
15
spec . add_dependency 'google-api-client'
16
16
spec . add_dependency 'time_with_zone'
17
17
18
- spec . add_development_dependency 'embulk' , [ '>= 0.8.2' ]
19
18
spec . add_development_dependency 'bundler' , [ '>= 1.10.6' ]
20
19
spec . add_development_dependency 'rake' , [ '>= 10.0' ]
21
20
end
Original file line number Diff line number Diff line change 3
3
require 'test/unit'
4
4
require 'test/unit/rr'
5
5
6
- # require 'embulk/java/bootstrap'
7
6
require 'embulk'
8
- Embulk . setup
7
+ begin
8
+ # Embulk ~> 0.8.x
9
+ Embulk . setup
10
+ rescue NotImplementedError
11
+ # Embulk ~> 0.9.x
12
+ require 'embulk/java/bootstrap'
13
+ end
9
14
Embulk . logger = Embulk ::Logger . new ( '/dev/null' )
10
15
11
16
APP_ROOT = File . expand_path ( '../' , __dir__ )
You can’t perform that action at this time.
0 commit comments