Sha256: fc117ebfacb51996705378d683367c01f15f20c9fb7f03d1c876ab977034b6af

Contents?: true

Size: 977 Bytes

Versions: 1

Compression:

Stored size: 977 Bytes

Contents

#!/usr/bin/env bash

set -eo pipefail

mkdir -p tmp/

cd tmp
rm -rf test_tmpl

gem uninstall oj || true

if [[ "TEST_APP_TEMPLATE" == "true" ]]
then
  rails new test_tmpl
  cd test_tmpl
  rails app:template LOCATION=../template.rb
else
  rails new test_tmpl -m ../template.rb
  cd test_tmpl
fi

echo " => Verify CircleCI config:"
cp .circleci/config.yml.sample .circleci/config.yml
circleci config validate

echo " => Verify installation scripts:"
bin/tools-setup
bin/tools-upgrade

echo " => Verify linters setup:"

git add .
git commit -m 'Initial Commit'
git checkout -b origin/master

git checkout -b test_pr

echo " => class SampleForLinters;end" > sample_for_linters.rb

git add .
git commit -m 'Adds sample_for_linters'

bin/rubocop --fail-level F sample_for_linters.rb
bin/pronto run -c HEAD~1 --no-exit-code

CIRCLECI=false bin/lint-github-pr -f text

echo " => Run git hooks verifications"
bin/git-hooks/post-merge.sample
CIRCLECI=false bin/git-hooks/pre-push.sample

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jt_tools-0.0.2 bin/test