Sha256: 1e76170ec1035a5511291aab95218a2068ee5bb859cdebbc692b55629692df0e
Contents?: true
Size: 786 Bytes
Versions: 3
Compression:
Stored size: 786 Bytes
Contents
#!/usr/bin/env bash set -euo pipefail echo '--- testing rails 3.2' echo '-- setting environment' DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" RAILS_ENV=test BUNDLE_GEMFILE="$DIR/Gemfile" cd $DIR echo '-- bundle install' bundle --version bundle install --quiet --gemfile="$DIR/Gemfile" --retry 2 --path vendor/bundle echo '-- cypress install' bundle exec ./bin/rails g cypress_dev:install --cypress_folder=cypress --install_cypress_with=npm echo '-- start rails server' # make sure the server is not running (kill -9 `cat tmp/pids/server.pid` || true ) bundle exec ./bin/rails server -p 5002 -e test & sleep 2 # give rails a chance to start up correctly echo '-- cypress run' node_modules/.bin/cypress run echo '-- stop rails server' kill -9 `cat tmp/pids/server.pid`
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cypress-on-rails-1.0.1 | spec/integrations/rails_3_2/test.sh |
cypress-on-rails-1.0.0 | spec/integrations/rails_3_2/test.sh |
cypress-on-rails-1.0.0.beta2 | spec/integrations/rails_3_2/test.sh |