Sha256: 978e5cdb1748b020f722df2fc2b882adb181933fc006e73b920939257ac5b30f
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
Contents
#!/usr/bin/env bash set -eo pipefail echo '--- testing rails 4.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' gem install bundler -v "~> 1.0" --conservative bundle --version bundle install --quiet --gemfile="$DIR/Gemfile" --retry 2 --path vendor/bundle echo '-- cypress install' yarn install bundle exec ./bin/rails g cypress_on_rails:install --cypress_folder=spec/cypress --experimental --skip rm -vf spec/cypress/e2e/rails_examples/advance_factory_bot.cy.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 5 # give rails a chance to start up correctly echo '-- cypress run' cp -fv ../cypress.config.js spec/ # if [ -z $CYPRESS_RECORD_KEY ] # then # yarn run cypress run -P ./spec # else yarn run cypress run -P ./spec --record # fi 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.14.0 | specs_e2e/rails_4_2/test.sh |
cypress-on-rails-1.13.1 | specs_e2e/rails_4_2/test.sh |
cypress-on-rails-1.13.0 | specs_e2e/rails_4_2/test.sh |