Removed contributor check from travis

This commit is contained in:
Brenda Wallace
2020-08-15 10:14:41 +12:00
committed by Brenda Wallace
parent 8016a35e49
commit 9b6a1b9fce

View File

@@ -9,16 +9,15 @@ cache:
directories:
- tmp/cache/assets/test/sprockets
addons:
postgresql: "9.4"
postgresql: "9.4" # Matches production
code_climate:
repo_token:
secure: "PfhLGBKRgNqhKuYCJsK+VPhdAzcgWFGeeOyxC/eS8gtlvIISVdgyZE+r30uIei0DFI6zEiN62eW4d+xtT4j7/e2ZcAcx7U52mza/SnQNuu3nCGQDJB8VOvV5NbnwXfi8vfr4e889Mt7k3ocd2c4gqB4UtRqrzhygj7HN+B/GfEk="
env:
matrix:
- ELASTIC_SEARCH_VERSION="7.5.1-amd64" COVERAGE=true RAILS_ENV=test # Future target (production needs upgrading)
- STATIC_CHECKS=true
global:
- secure: "Z5TpM2jEX4UCvNePnk/LwltQX48U2u9BRc+Iypr1x9QW2o228QJhPIOH39a8RMUrepGnkQIq9q3ZRUn98RfrJz1yThtlNFL3NmzdQ57gKgjGwfpa0e4Dwj/ZJqV2D84tDGjvdVYLP7zzaYZxQcwk/cgNpzKf/jq97HLNP7CYuf4="
- ELASTIC_SEARCH_VERSION="7.5.1-amd64"
- COVERAGE=true
- GROWSTUFF_EMAIL="noreply@test.growstuff.org"g
- GROWSTUFF_SITE_NAME="Growstuff (travis)"
- RAILS_SECRET_TOKEN='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx']
@@ -33,23 +32,16 @@ before_install:
- ./script/check_elasticsearch.sh
script:
- >
if [ "${STATIC_CHECKS}" = "true" ]; then
./script/check_static.rb
else
bundle exec rails db:create db:migrate;
RAILS_ENV=dev bundle exec rails runner "ActiveMedian.create_function";
RAILS_ENV=test bundle exec rails runner "ActiveMedian.create_function";
bundle exec rails assets:precompile;
bundle exec rails search:reindex;
bundle exec rspec spec;
# npx percy exec -- bundle exec rspec spec # <- run this to send screen shots to percy
fi;
bundle exec rails db:create db:migrate;
RAILS_ENV=dev bundle exec rails runner "ActiveMedian.create_function";
RAILS_ENV=test bundle exec rails runner "ActiveMedian.create_function";
bundle exec rails assets:precompile;
bundle exec rails search:reindex;
bundle exec rspec spec;
after_script:
- >
if [ "${COVERAGE}" = "true" ]; then
gem install codeclimate-test-reporter
codeclimate-test-reporter
fi
gem install codeclimate-test-reporter
codeclimate-test-reporter
before_deploy:
- bundle exec script/heroku_maintenance.rb on
deploy: