Sha256: 42685345b1f3078472c72aa70162ce779b1f91a8a8d0db461889827c3e7f5c72
Contents?: true
Size: 950 Bytes
Versions: 4
Compression:
Stored size: 950 Bytes
Contents
#!/usr/bin/env bash set -eo 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_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
4 entries across 4 versions & 1 rubygems