Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 66d8d1d

Browse files
committed
setup for edge with lap22
1 parent 22169d4 commit 66d8d1d

File tree

5 files changed

+42
-46
lines changed

5 files changed

+42
-46
lines changed

Rakefile

+39-25
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,44 @@
1-
require 'bundler'
2-
Bundler.require
3-
Bundler::GemHelper.install_tasks
1+
# require 'bundler'
2+
# Bundler.require
3+
# Bundler::GemHelper.install_tasks
4+
#
5+
# # Store the BUNDLE_GEMFILE env, since rake or rspec seems to clean it
6+
# # while invoking task.
7+
# ENV['REAL_BUNDLE_GEMFILE'] = ENV['BUNDLE_GEMFILE']
8+
#
9+
# require 'rspec/core/rake_task'
10+
# require 'opal/rspec/rake_task'
11+
#
12+
# RSpec::Core::RakeTask.new('ruby:rspec')
13+
#
14+
# task :test do
15+
# Rake::Task['ruby:rspec'].invoke
16+
# end
17+
#
18+
# require 'generators/reactive_ruby/test_app/test_app_generator'
19+
# desc "Generates a dummy app for testing"
20+
# task :test_app do
21+
# ReactiveRuby::TestAppGenerator.start
22+
# puts "Setting up test app database..."
23+
# system("bundle exec rake db:drop db:create db:migrate > #{File::NULL}")
24+
# end
25+
#
26+
# task :test_prepare do
27+
# system("./dciy_prepare.sh")
28+
# end
29+
#
30+
# task default: [ :test ]
431

5-
# Store the BUNDLE_GEMFILE env, since rake or rspec seems to clean it
6-
# while invoking task.
7-
ENV['REAL_BUNDLE_GEMFILE'] = ENV['BUNDLE_GEMFILE']
32+
require "bundler/gem_tasks"
33+
require "rspec/core/rake_task"
834

9-
require 'rspec/core/rake_task'
10-
require 'opal/rspec/rake_task'
35+
RSpec::Core::RakeTask.new(:spec)
1136

12-
RSpec::Core::RakeTask.new('ruby:rspec')
13-
14-
task :test do
15-
Rake::Task['ruby:rspec'].invoke
16-
end
17-
18-
require 'generators/reactive_ruby/test_app/test_app_generator'
19-
desc "Generates a dummy app for testing"
20-
task :test_app do
21-
ReactiveRuby::TestAppGenerator.start
22-
puts "Setting up test app database..."
23-
system("bundle exec rake db:drop db:create db:migrate > #{File::NULL}")
24-
end
25-
26-
task :test_prepare do
27-
system("./dciy_prepare.sh")
37+
namespace :spec do
38+
task :prepare do
39+
sh %{bundle update}
40+
sh %{cd spec/test_app; bundle update}
41+
end
2842
end
2943

30-
task default: [ :test ]
44+
task :default => :spec

dciy.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[dciy.commands]
2-
prepare = ["./dciy_prepare.sh"]
3-
cibuild = ["./dciy_run.sh"]
2+
prepare = ["bundle exec rake spec:prepare"]
3+
cibuild = ["bundle exec rake"]

dciy_prepare.sh

-8
This file was deleted.

dciy_run.sh

-10
This file was deleted.

lib/reactive-ruby/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module React
2-
VERSION = '1.0.0.lap21'
2+
VERSION = '1.0.0.lap22'
33
end

0 commit comments

Comments
 (0)