summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.travis.yml7
-rw-r--r--Rakefile2
-rw-r--r--appveyor.yml2
-rwxr-xr-xbin/ruby2d2
-rw-r--r--test/ci-build.rb1
5 files changed, 8 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index ae3603e..e441480 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,10 +1,13 @@
os: osx
-osx_image: xcode9.2
+osx_image: xcode9.3
language: ruby
before_install:
- sw_vers
- brew update
- brew tap simple2d/tap
- - brew install simple2d
+ - brew install simple2d mruby
script:
- rake
+ - ruby2d build --native test/ci-build.rb
+ - ./build/app
+ - ruby2d build --web test/ci-build.rb
diff --git a/Rakefile b/Rakefile
index 808e1d5..76d901c 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,5 +1,5 @@
require 'rspec/core/rake_task'
-require './lib/ruby2d/version'
+require_relative 'lib/ruby2d/version'
# Helpers
diff --git a/appveyor.yml b/appveyor.yml
index f5ef121..b6cb64a 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,5 +1,5 @@
install:
- - set PATH=C:\ruby24-x64\bin;C:\msys64\usr\bin;C:\msys64\usr\local\bin;%PATH%
+ - set PATH=C:\ruby25-x64\bin;C:\msys64\usr\bin;C:\msys64\usr\local\bin;%PATH%
- set MSYSTEM=MINGW64
- bash --version
- wget https://raw.githubusercontent.com/simple2d/simple2d/master/bin/simple2d.sh
diff --git a/bin/ruby2d b/bin/ruby2d
index d7b1e15..eabb756 100755
--- a/bin/ruby2d
+++ b/bin/ruby2d
@@ -331,8 +331,6 @@ Choose an option with the #{"simulator".bold} command:
--log <app> Stream log for the app only, given the app name
--log-errors Stream log containing only error messages\n\n"
-# puts ARGV.inspect
-
case ARGV[0]
when 'build'
if ARGV.delete '--debug' then @debug = true end
diff --git a/test/ci-build.rb b/test/ci-build.rb
new file mode 100644
index 0000000..443bf3e
--- /dev/null
+++ b/test/ci-build.rb
@@ -0,0 +1 @@
+require 'ruby2d'