Add top-level rake task

This commit is contained in:
Godfrey Chan 2017-04-13 11:36:06 -07:00
parent 8a602f11e3
commit 66dd520bcf
4 changed files with 13 additions and 14 deletions

View File

@ -36,7 +36,7 @@ install:
- bash ./scripts/ci-install
test_script:
- bash ./scripts/ci-test
- rake
notifications:
- provider: Slack

View File

@ -41,7 +41,7 @@ install:
- ./scripts/ci-install
script:
- ./scripts/ci-test
- rake
notifications:
slack:

11
Rakefile Normal file
View File

@ -0,0 +1,11 @@
task :test do
cd "ruby" do
sh "bundle exec rake"
end
examples = ENV["EXAMPLES"] || "calculator console membership turbo_blank"
sh "./examples/runner default #{examples}"
end
task :default => :test

View File

@ -1,12 +0,0 @@
#!/bin/bash
set -x
set -e
DIR=$(dirname "${BASH_SOURCE[0]}")/..
pushd "$DIR/ruby"
bundle exec rake
popd
$DIR/examples/runner default $EXAMPLES