Remove RAILS_ENV from travis.yml

Travis sets it to `test` by default
This commit is contained in:
Artur Beljajev 2018-01-28 18:33:46 +02:00
parent 37458b8e41
commit 25b36d3d30

View file

@ -9,12 +9,12 @@ before_script:
- "psql -c 'create database registry_api_log_test;' -U postgres" - "psql -c 'create database registry_api_log_test;' -U postgres"
- "cp config/application-example.yml config/application.yml" - "cp config/application-example.yml config/application.yml"
- "cp config/database-travis.yml config/database.yml" - "cp config/database-travis.yml config/database.yml"
- "RAILS_ENV=test bundle exec rake db:setup:all" - "bundle exec rake db:setup:all"
- "curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter" - "curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter"
- "chmod +x ./cc-test-reporter" - "chmod +x ./cc-test-reporter"
- "./cc-test-reporter before-build" - "./cc-test-reporter before-build"
script: script:
- "RAILS_ENV=test bundle exec rspec" - "bundle exec rspec"
- "bundle exec rake test" - "bundle exec rake test"
after_script: after_script:
- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT" - "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"