mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 07:16:40 +00:00
Tweak gemspecs and script to build gems
This commit is contained in:
35
ci/test.sh
Executable file
35
ci/test.sh
Executable 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
|
||||
Reference in New Issue
Block a user