Merge pull request #4 from yui-knk/fix_test_script

Reform build process on travis ci
This commit is contained in:
yui-knk
2016-02-11 20:03:23 +09:00
4 changed files with 25 additions and 6 deletions
+1
View File
@@ -0,0 +1 @@
/mruby/
+1 -6
View File
@@ -6,10 +6,5 @@ before_install:
- sudo apt-get -qq update
install:
- sudo apt-get -qq install rake bison git gperf
before_script:
- cd ../
- git clone https://github.com/mruby/mruby.git
- cd mruby
- cp -fp ../mruby-set/.travis_build_config.rb build_config.rb
script:
- make all test
- rake test
+22
View File
@@ -0,0 +1,22 @@
MRUBY_CONFIG = File.expand_path(ENV["MRUBY_CONFIG"] || "build_config.rb")
file :mruby do
sh "git clone --depth=1 git://github.com/mruby/mruby.git"
end
desc "compile binary"
task :compile => :mruby do
sh "cd mruby && MRUBY_CONFIG=#{MRUBY_CONFIG} rake all"
end
desc "test"
task :test => :mruby do
sh "cd mruby && MRUBY_CONFIG=#{MRUBY_CONFIG} rake all test"
end
desc "cleanup"
task :clean do
sh "cd mruby && rake deep_clean"
end
task :default => :test
@@ -2,4 +2,5 @@ MRuby::Build.new do |conf|
toolchain :gcc
conf.gembox 'default'
conf.gem '../mruby-set'
conf.enable_test
end