File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 16
16
desc "Generates a dummy app for testing for every Spree engine"
17
17
task :test_app do
18
18
require File . expand_path ( '../core/lib/generators/spree/install/install_generator' , __FILE__ )
19
- %w( api backend core dash frontend ) . each do |engine |
19
+ %w( api backend core frontend ) . each do |engine |
20
20
ENV [ 'LIB_NAME' ] = File . join ( 'spree' , engine )
21
21
ENV [ 'DUMMY_PATH' ] = File . expand_path ( "../#{ engine } /spec/dummy" , __FILE__ )
22
22
Rake ::Task [ 'common:test_app' ] . execute
Original file line number Diff line number Diff line change 1
- alias set_gemfile=' export BUNDLE_GEMFILE="`pwd`/Gemfile"'
1
+ # Remove Gemfile.lock if it exists
2
+ function rm_gemfile_lock(){
2
3
if [ -e " Gemfile.lock" ]
3
4
then
4
5
echo " Removing Gemfile.lock..."
5
6
rm Gemfile.lock
6
- fi
7
- bundle check || bundle install
8
- bundle exec rake test_app
9
- cd api; set_gemfile; rm Gemfile.lock; bundle install; bundle exec rspec spec
10
- cd ../backend; set_gemfile; rm Gemfile.lock; bundle install; bundle exec rspec spec
11
- cd ../core; set_gemfile; rm Gemfile.lock; bundle install; bundle exec rspec spec
12
- cd ../frontend; set_gemfile; rm Gemfile.lock; bundle install; bundle exec rspec spec
7
+ fi
8
+ }
9
+
10
+ alias set_gemfile=' export BUNDLE_GEMFILE="`pwd`/Gemfile"'
11
+ rm_gemfile_lock
12
+ bundle check || bundle install
13
+ bundle exec rake test_app
14
+ cd api; set_gemfile; rm_gemfile_lock; bundle install; bundle exec rspec spec
15
+ cd ../backend; set_gemfile; rm_gemfile_lock; bundle install; bundle exec rspec spec
16
+ cd ../core; set_gemfile; rm_gemfile_lock; bundle install; bundle exec rspec spec
17
+ cd ../frontend; set_gemfile; rm_gemfile_lock; bundle install; bundle exec rspec spec
You can’t perform that action at this time.
0 commit comments