Sha256: e15b4bf30b6fab642384829d0229ab9640cbb4897646a7e15cfbd7ebfc41ad8e
Contents?: true
Size: 1.07 KB
Versions: 10
Compression:
Stored size: 1.07 KB
Contents
#!/bin/bash # Usage: $0 [Options] # Specify project # [-m] # main project # [-c] # core project # Test skip option # [--skip-main] # [--skip-core] set -e BASE_DIR=$(cd $(dirname $0); pwd) #### Parse option TEST_MODE="skip" # skip or specify for OPT in $* do case $OPT in -m) TEST_MODE='specify'; SPECIFY_M=1; shift;; -c) TEST_MODE='specify'; SPECIFY_C=1; shift;; --skip-main) TEST_MODE='skip'; SKIP_M=1; shift;; --skip-core) TEST_MODE='skip'; SKIP_C=1; shift;; esac done if [ "$TEST_MODE" = 'skip' ]; then if [ "$SKIP_M" = "" ]; then SPECIFY_M=1; fi if [ "$SKIP_C" = "" ]; then SPECIFY_C=1; fi fi #### Test functions # Test flydata-agent library (flydata-agent/lib, flydata-agent/spec) test_main() { cd $BASE_DIR bundle install bundle exec rspec } # Test flydata-core (flydata-core/lib, flydata-core/spec) test_core() { cd $BASE_DIR/flydata-core bundle install bundle exec rspec } #### Main if [ "$SPECIFY_C" = '1' ]; then test_core fi if [ "$SPECIFY_M" = '1' ]; then test_main fi
Version data entries
10 entries across 10 versions & 1 rubygems