Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update travis deploy script #62

Merged
merged 4 commits into from
Oct 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ addons:
packages:
- google-chrome-stable
services:
- redis-server
- redis-server
before_script:
- psql -c 'create database travis_ci_test;' -U postgres
- cp config/database.yml.travis config/database.yml
- wget http://chromedriver.storage.googleapis.com/2.27/chromedriver_linux64.zip
- wget http://chromedriver.storage.googleapis.com/2.42/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- sudo apt-get install libnss3
- sudo apt-get --only-upgrade install google-chrome-stable
Expand All @@ -24,17 +24,21 @@ before_script:
- sh -e /etc/init.d/xvfb start
- sleep 3
script:
- RAILS_ENV=test bundle exec rails db:migrate --trace
- bundle exec rails db:test:prepare
- bundle exec rails test
- bundle exec rails test:system
- RAILS_ENV=test bundle exec rails db:migrate --trace
- bundle exec rails db:test:prepare
- bundle exec rails test
- bundle exec rails test:system
deploy:
matrix:
- provider: heroku
api_key:
secure: jheoABY2Yhe+eP4DB87h877u4cSc02Rf09PhmRxNroQQHv3XkToVgxXo33TEEuCoucDfhSepOeky4QozarJ7hSHCn1ssPb8jo3klicxPrB90t8SBPHB7evqfcaXAGYZBIPcvoGXzqQ0Brv/IvSP2eK81KUFAA8CAE9jUI4HXJkqRWnL2SC51yytxhnTBruOlTA3Z/90vgj9q6y3Y+xZCP3DrBDoBlvdaeyOXt54X+vcj+ZKepiMTdOuSEkC8dxuLiru7yMWZPANvvP/B/MLnh6XdG/EggRujR/uKvfrRKjKZjRt/TkMM7SarP+klGqOiaHV9KOct28E2Wbmoe03Qllk2NopqsanF4wemUWb8jCp4fLaf6e6KPnzA+Vfr3C8h1AyJYAXDXKx+jAa3pGDSSuDQmvO9lNtpLpxNbVwHSpBvdaY9MDta64oj+5eb2RR/UZZmB8JBuW2+2B22cf/OPU/Z915qWzshE3Fi0pTEgca4Tq37KqzyuYl8n4JnLxsUIWYVytWMMX8JtnvMYJdVLJEWrNidAD/BrZQGRhKUE8vnTMK7sFCzC2XInNpFXXDW0z2Keor8tb0Qk0y+PUyUlwy6YJgmITGkBHcRNWM0tYwO8+DS/duqvlSg0gMdxE6sa6mz9eVk1oP7KBJ/O4VdvJoRkdMiMKC9UvCceLqAT5A=
app: harvey-api
app: hurricane-florence-api
on:
repo: sketch-city/harvey-api
tags: true
run:
- "rails db:migrate"
- "rake cleanup"
- rails db:migrate
- rake cleanup
api_key:
secure: hrf+0+plUYp1LH+yRFlDql2yi6qzUmPlIsRzUSPfkYKgiOoTTRqi5wKsGXHMBEZSoTmdPlkIwyNdv4tCIgegatlY8xB+++OOcyy1GQGEEk0Iqjji1EBh4IYdBXyK6QOiXbGXnll8GSua6DUlRN4om/L0oG1STaqHt1zbpnicawrRIrpzvytCVOdcIAfJlsq/S9zwL0cK7hQvx2dhSZO9O3Qx5MXiYJuAD4Ve1ggIao9HRUs9Ijsdu+AsEDPPOLMJ2ZliGeWm5VxaXh+gtB3QLObFIpa1j4gzOUbNSLZDefcSGKkcg5lAx7ZG+/aUFdeE0Zhu8UrJHg4zQzac4eZXducjQgxyDWAnG5leu/SShv64PG+f9z+YioUQTqyGXxMC5tFz9vTO+6iq1iriHorGf4AeW4+Kv9wJJ5lzvR3AfjmdyXHhC1mI2St/IL+4wlVd30t2pO3CypucF2sPWtBNr3jN18XTHQyob/vvwrHsXS+2a4buZUxFvooBpabpXxAgczUHyZATudE6MgWxhY+OTjGbOYXZFcA1lyqFpseNrexYrkhzTPpy3mmN3U/aKFb6pngFUCf1cxuJUihuCtEA4b36sABpWsUtMyFQF0azVAt9XRdz7D2KdFgo6l7G6J3vfo2JwJiKTGQFh69xWuKwQ2qnWktpEn8bZW8jnZADG9o=
notifications:
slack:
secure: n0v3/iVdKCoEKEe2w/tho42BTHTpf7Z2lpcpJqy+s6igrydmwrCIgZjx/LIeFuJfFWCZqpubIpSzGHPPNQiL3codSyxI7eVev27HpLE69bEJyHHX7eKS6838xRxdD+GlynhRT4UR9UGFsC5SP8JHgLqC48vy3w9x0F+hK2MWptguRnx7TeXTIPtU+dI8lTnjdeyvJKIS41T2ywHZ/BfbwMsAI76/NpaBvIeDe+Hk2efeE6IOgRMTqHbmbgvxDf00c6EP/QCqUthSL0OmAjcOEjRBAHHeXsn7e7lbDMhsTJmU+K+M8iUxZILzUt2EgnG5dng4xjWWeb4alb+PdIfkn3cPk0M4CMeXhXp7pWEKWr3C6aQDTQ7XiTdeapDkdEaNB2F6/Nh9gNEKtMGdfZnioq6+SqffoMNy0ieVEFp4nm36mODzAVB6QD+eW6+qnFrO+uUE587VI2yUPYW/r/+5kr6PEY1J5HL7Lq0AJY6Yi3aIvad7NQ259xFr8kx+3K0bGORBlEpu1zMWozzm1K8ImDcMtChyrSQJpgEAjsyOeqWbtznciyb/8/ZihVIbKd7tNsPoGHfedCFJjgorTcmc+HIt02J5TA91eq8zym9O89/K1toI+esy1VUA7Rgy8zh6aoKI4BG7zgUrX8Jxp1jmSVGgsy3RSKlBV7RGvyBNpys=
3 changes: 2 additions & 1 deletion test/jobs/recode_geocoding_job_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ def setup
end

def teardown
Geocoder::Lookup::Test.reset
# TODO: fix geocoder testing
#Geocoder::Lookup::Test.reset
end

test 'Shelters get recoded' do
Expand Down