mirror of
https://github.com/rails/execjs
synced 2023-03-27 23:21:20 -04:00
Configure Travis to support MiniRacer and TheRubyRacer simultaneously.
This commit is contained in:
parent
f587a97475
commit
477b79b7f6
3 changed files with 32 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
Gemfile.lock
|
Gemfile.lock
|
||||||
pkg/*
|
pkg/*
|
||||||
|
.bundle/*
|
||||||
|
|
29
.travis.yml
29
.travis.yml
|
@ -1,11 +1,13 @@
|
||||||
language: ruby
|
language: ruby
|
||||||
cache: bundler
|
cache: bundler
|
||||||
sudo: false
|
sudo: false
|
||||||
|
# we need trust so correct gcc runs for mini_racer, latest v8 requires gcc 4.8+
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- if [ "$EXECJS_RUNTIME" == "V8" ]; then brew update; fi
|
- if [ "$EXECJS_RUNTIME" == "V8" ]; then brew update; fi
|
||||||
- if [ "$EXECJS_RUNTIME" == "V8" ]; then brew install v8; fi
|
- if [ "$EXECJS_RUNTIME" == "V8" ]; then brew install v8; fi
|
||||||
script: bundle exec ruby test/test_execjs.rb
|
- if [ "$EXECJS_RUNTIME" == "MiniRacer" ]; then gem install bundler -v 1.12.0; fi
|
||||||
|
script: bundle && bundle exec ruby test/test_execjs.rb
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
@ -15,6 +17,10 @@ matrix:
|
||||||
env: EXECJS_RUNTIME=Duktape
|
env: EXECJS_RUNTIME=Duktape
|
||||||
- rvm: 2.0.0
|
- rvm: 2.0.0
|
||||||
env: EXECJS_RUNTIME=RubyRacer
|
env: EXECJS_RUNTIME=RubyRacer
|
||||||
|
- rvm: 2.0.0
|
||||||
|
env: EXECJS_RUNTIME=MiniRacer
|
||||||
|
dist: trusty
|
||||||
|
sudo: true
|
||||||
|
|
||||||
- rvm: 2.1
|
- rvm: 2.1
|
||||||
env: EXECJS_RUNTIME=Node
|
env: EXECJS_RUNTIME=Node
|
||||||
|
@ -22,6 +28,10 @@ matrix:
|
||||||
env: EXECJS_RUNTIME=Duktape
|
env: EXECJS_RUNTIME=Duktape
|
||||||
- rvm: 2.1
|
- rvm: 2.1
|
||||||
env: EXECJS_RUNTIME=RubyRacer
|
env: EXECJS_RUNTIME=RubyRacer
|
||||||
|
- rvm: 2.1
|
||||||
|
env: EXECJS_RUNTIME=MiniRacer
|
||||||
|
dist: trusty
|
||||||
|
sudo: true
|
||||||
|
|
||||||
- rvm: 2.2
|
- rvm: 2.2
|
||||||
env: EXECJS_RUNTIME=Node
|
env: EXECJS_RUNTIME=Node
|
||||||
|
@ -29,13 +39,21 @@ matrix:
|
||||||
env: EXECJS_RUNTIME=Duktape
|
env: EXECJS_RUNTIME=Duktape
|
||||||
- rvm: 2.2
|
- rvm: 2.2
|
||||||
env: EXECJS_RUNTIME=RubyRacer
|
env: EXECJS_RUNTIME=RubyRacer
|
||||||
|
- rvm: 2.2
|
||||||
|
env: EXECJS_RUNTIME=MiniRacer
|
||||||
|
dist: trusty
|
||||||
|
sudo: true
|
||||||
|
|
||||||
- rvm: 2.3.0
|
- rvm: 2.3.1
|
||||||
env: EXECJS_RUNTIME=Node
|
env: EXECJS_RUNTIME=Node
|
||||||
- rvm: 2.3.0
|
- rvm: 2.3.1
|
||||||
env: EXECJS_RUNTIME=Duktape
|
env: EXECJS_RUNTIME=Duktape
|
||||||
- rvm: 2.3.0
|
- rvm: 2.3.1
|
||||||
env: EXECJS_RUNTIME=RubyRacer
|
env: EXECJS_RUNTIME=RubyRacer
|
||||||
|
- rvm: 2.3.1
|
||||||
|
env: EXECJS_RUNTIME=MiniRacer
|
||||||
|
dist: trusty
|
||||||
|
sudo: true
|
||||||
|
|
||||||
- rvm: jruby-19mode
|
- rvm: jruby-19mode
|
||||||
env: EXECJS_RUNTIME=Node
|
env: EXECJS_RUNTIME=Node
|
||||||
|
@ -52,3 +70,6 @@ matrix:
|
||||||
env: EXECJS_RUNTIME=RubyRacer
|
env: EXECJS_RUNTIME=RubyRacer
|
||||||
- os: osx
|
- os: osx
|
||||||
env: EXECJS_RUNTIME=V8
|
env: EXECJS_RUNTIME=V8
|
||||||
|
- os: osx
|
||||||
|
env: EXECJS_RUNTIME=MiniRacer
|
||||||
|
osx_image: xcode7.3
|
||||||
|
|
7
Gemfile
7
Gemfile
|
@ -4,8 +4,11 @@ gemspec
|
||||||
|
|
||||||
group :test do
|
group :test do
|
||||||
gem 'duktape', platform: :mri
|
gem 'duktape', platform: :mri
|
||||||
|
if ENV['EXECJS_RUNTIME'] == 'MiniRacer'
|
||||||
|
gem 'mini_racer', '0.1.0.beta.3', platform: :mri
|
||||||
|
else
|
||||||
gem 'therubyracer', platform: :mri
|
gem 'therubyracer', platform: :mri
|
||||||
gem 'therubyrhino', ">=1.73.3", platform: :jruby
|
end
|
||||||
|
gem 'therubyrhino', '>=1.73.3', platform: :jruby
|
||||||
gem 'minitest', require: false
|
gem 'minitest', require: false
|
||||||
gem 'mini_racer', platform: :mri
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue