From 3a7f63f64159b21f4ec5c4e64aa36eafcacf567f Mon Sep 17 00:00:00 2001 From: Tom Black Date: Sun, 6 May 2018 16:13:37 -0700 Subject: Update CI Also adds native and web build test --- .travis.yml | 7 +++++-- Rakefile | 2 +- appveyor.yml | 2 +- bin/ruby2d | 2 -- test/ci-build.rb | 1 + 5 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 test/ci-build.rb 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 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' -- cgit v1.2.3