-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
43 lines (43 loc) · 2.31 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
language: ruby
dist: xenial
cache: bundler
rvm:
- 2.6.5
addons:
postgresql: '9.6'
sources:
- google-chrome
apt:
packages:
- google-chrome-stable
services:
- redis-server
- xvfb
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.42/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- sudo apt-get install libnss3
- sudo apt-get --only-upgrade install google-chrome-stable
- sudo cp chromedriver /usr/local/bin/.
- sudo chmod +x /usr/local/bin/chromedriver
script:
- RAILS_ENV=test bundle exec rails db:structure:load --trace
- bundle exec rails db:test:prepare
- bundle exec rails test
- bundle exec rails test:system
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=
deploy:
provider: heroku
api_key:
secure: Ayv5D2B0//cgFhrWksLtKkpCSmYgp8lV2N/qoZvrPOYzEZ77BTOtcpgTPslERmUvsTC3Omn3Hzp/T6W62UhsheaPNoUiTgpfaM/rVRTr5zZRMr9WIZg6CHvOg313xkRGKgsa225QEYgq6InonNFXbv0BxFvrrNK34/daIRfIXMjO25bF3c+eisziFwumTXtmP4EFsxfBG+n/HuAsKhLX2jcKM7ph5mkrtHu9FtAix8RSKuxDvPRG1aPx17p1t78+SwhGKfubnzrM05YY49JAdc+ZHvw/EvE9sZVk6XiEzuRhyQfcepXO2wNToX4Y7oSVKaBDigDAJOE8pJLbKDeJYe2MfAn/uUHWwfNphoop4MW/xQOERQz0QfoGHTHVeFYQlvqYbvPqvRqQZTXeqIlI9TJoo/ghjhyRpTc6sQyFcnM3Sb2Dh0JnoVwNR+QWnc6MGXSB7tMxEDyiTgm/eKTEtqw/BICpN+ocbdXE02G4R/zRjUgL28pI0swIrWVo2kRcQQqGDfj7r2Qb1CCss/xB1wpThHoW+k3dEt6md8/kYCQiXgyFnt9UlZnsIXX6Hq8WEbKrj4MgqMzn3G5iX1p5o9t71/cM9M1HxY2xgv+YqXuw6mwGPDm7/mubPd71JeMOQ1dJ6VHwgXfCe4RBZyaRatBm0l4RZ+gBjBNJB+A4Pkk=
app: hurricane-florence-api
on:
repo: hurricane-response/florence-api
tags: true
run:
- rails db:migrate
- rake cleanup