Sha256: d1f161ed94290b171c66c257bbdc269a397c60b0c864b0dd4d55837dadbc50af
Contents?: true
Size: 1.43 KB
Versions: 2
Compression:
Stored size: 1.43 KB
Contents
#!/bin/bash --login # '--login' is needed to deal with the following warning otherwise emitted by rvm: # You need to change your terminal emulator preferences to allow login shell. # Sometimes it is required to use `/bin/bash --login` as the command. # Please visit https://rvm.io/integration/gnome-terminal/ for a example. rvm gemset create observed-test rvm gemset use observed-test gem install bundler observed_dir=`dirname $0` cd $observed_dir observed_dir=`pwd` plugins_dir=$observed_dir/plugins integrations_dir=$observed_dir/integrations integrations="clockwork eventmachine" plugins="http fluentd gauge" #cd $observed_dir dirs=$observed_dir for integration in $integrations do dirs="$dirs $integrations_dir/observed-$integration" done for plugin in $plugins do dirs="$dirs $plugins_dir/observed-$plugin" done echo $dirs function quit_on_failure { if [[ $? -ne 0 ]]; then quit 1 fi } function quit { rvm --force gemset delete observed-test if [[ $1 == "" ]]; then exit 0 fi exit $1 } for target in $dirs do echo Target: $target cd $target echo Current directory: `pwd` export BUNDLE_GEMFILE=$target/Gemfile bundle install if [[ $? -ne 0 ]]; then bundle update fi if [ -d spec ] then bundle exec rspec fi quit_on_failure if [ -d features ] then bundle exec cucumber fi quit_on_failure rake install if [[ $? -ne 0 ]]; then gem install pkg/*.gem fi done quit
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
observed-0.2.0 | run-integration-tests |
observed-0.2.0.rc2 | run-integration-tests |