Sha256: 3bcc4834f5b5f9422c3de443cd549e4a14d55dd002612d7a84d7c2674dd0dabe
Contents?: true
Size: 955 Bytes
Versions: 2
Compression:
Stored size: 955 Bytes
Contents
#!/usr/bin/env bash set -eo pipefail echo '--- testing rails 4.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_on_rails:install --no-install-cypress-examples rm -vf spec/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 5002 -e test & sleep 2 # give rails a chance to start up correctly echo '-- cypress run' cp -fv ../cypress.json spec/ cd spec if [ -z $CYPRESS_RECORD_KEY ] then yarn run cypress run else yarn run 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.5.1 | spec/integrations/rails_4_2/test.sh |
cypress-on-rails-1.5.0 | spec/integrations/rails_4_2/test.sh |