From cd40b8754a750f66240ae81caeafa2a9e1ae3261 Mon Sep 17 00:00:00 2001 From: Ryan Lue Date: Mon, 23 Apr 2018 18:45:43 +0800 Subject: [PATCH] Revamp Travis CI build (add RSpec, rm integrations) --- .travis.yml | 12 ++---------- .../sipgate_controller_test.rb | 0 2 files changed, 2 insertions(+), 10 deletions(-) rename test/{integration => controllers}/sipgate_controller_test.rb (100%) diff --git a/.travis.yml b/.travis.yml index 74d93db2f..8d77cc9bb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,20 +62,12 @@ script: - rake db:create - rake db:migrate - rake db:seed + - bundle exec rspec + - rake db:reset - rake test:units - rake test:controllers - ruby -I test/ test/integration/object_manager_test.rb - ruby -I test/ test/integration/package_test.rb - - rake assets:precompile - - rake db:drop - - rake db:create - - rake db:migrate - - rake db:seed - - ruby -I test/ test/integration/geo_location_test.rb - - ruby -I test/ test/integration/geo_calendar_test.rb - - ruby -I test/ test/integration/user_agent_test.rb - - ruby -I test/ test/integration/user_device_controller_test.rb - - rake db:drop after_success: - if [ "${DB}" = "mysql" ]; then contrib/travis-ci.org/trigger_docker_image_build.sh; fi - if [ "${DB}" = "mysql" ]; then contrib/travis-ci.org/trigger_docker_image_compose_build.sh; fi diff --git a/test/integration/sipgate_controller_test.rb b/test/controllers/sipgate_controller_test.rb similarity index 100% rename from test/integration/sipgate_controller_test.rb rename to test/controllers/sipgate_controller_test.rb