Sha256: 5a5e0bc4c861d4255523da5fab1cbfd73caf9f8fd0aec8391860a724f0c15ed6
Contents?: true
Size: 971 Bytes
Versions: 2
Compression:
Stored size: 971 Bytes
Contents
#!/usr/bin/env bash set -eo pipefail echo '--- testing rails 3.2' echo '-- setting environment' export DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" export RAILS_ENV=test export 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_on_rails:install --install_cypress_with=npm rm -vf cypress/integration/rails_examples/advance_factory_bot_spec.js 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 5017 -e test & sleep 2 # give rails a chance to start up correctly echo '-- cypress run' cp -fv ../cypress.json . if [ -z $CYPRESS_RECORD_KEY ] then node_modules/.bin/cypress run else node_modules/.bin/cypress run --record fi echo '-- stop rails server' kill -9 `cat tmp/pids/server.pid`
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cypress-on-rails-1.12.1 | spec/integrations/rails_3_2/test.sh |
cypress-on-rails-1.12.0 | spec/integrations/rails_3_2/test.sh |