Tweak gemspecs and script to build gems

This commit is contained in:
richie
2016-10-11 21:55:13 -07:00
parent 02159f2136
commit fa8d42b37b
8 changed files with 51 additions and 8 deletions

35
ci/test.sh Executable file
View File

@@ -0,0 +1,35 @@
#!/usr/bin/env bash
ROOT_PATH=$PWD
set -e # abort if anything fails
bundle check || bundle
echo '####################'
echo 'Unit Tests'
echo '####################'
echo ''
echo '##### rswag-api #####'
cd $ROOT_PATH/rswag-api
bundle exec rspec
echo '##### rswag-specs #####'
cd $ROOT_PATH/rswag-specs
bundle exec rspec
echo '##### rswag-ui #####'
cd $ROOT_PATH/rswag-ui
bundle exec rspec
echo '####################'
echo 'Integration Tests'
echo '####################'
echo ''
echo '##### test-app #####'
cd $ROOT_PATH/test-app
bundle exec rspec
# Cleanup
cd $ROOT_PATH