-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (38 loc) · 1.24 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
sudo: required
dist: trusty
language: node_js
node_js:
- '10.13.0'
branches:
only:
- master
services:
- docker
env:
global:
- NODE_ENV=test
- DATABASE_URL=postgres://postgres@localhost/test
cache:
directories:
- node_modules
install:
- npm install
before_script:
- sudo service postgresql stop
- npm run lint
- npm run mount
script:
- npm test
after_success:
- echo build succeeded
deploy:
- provider: heroku
app: diegobarrera
api_key:
secure: "TfSHPvK5uAu35OoasEDdZfDcXMfRJeFXVq3F6ngftWH5tdKAN9G0vBIsKljtEsLLRb9psECtQAzYfwqW7rODmlW3ciswjN+2n00uw3DOEnwf49J1UHR3b/Oz1cu0z+m4VOr9TypgdLA1XIDKc0hqczZS6uuhtyCj9LG4rGfcT/UmuY3QUTTz81Ot79/92lMV/PdVuZxnnqtAtoigje5Iq1pmxCmVEBZE+rd9bD7Cc6NAUfbapuJUUVYGiZEDkM06vSqWKq5qsCUWZpHBEs021PIabhejhLZ2VdzjcnR6SttZS8owTQGxk5ioyPfSCjv/QCrmW0iZmq99m8Z4w3bXGlAaYwdMfBD+cWWBYhxL57LF+IYFFu7bNLygIolCDEiS0XQeTjACCyhTdf739Kleywpg718JUGkjXTUfI7BUH85p0u5SNBhZleN8Cp8UXv6/KQIf0d37B6QcvkSNiVITr7gq+92HXObau/30W/dZxe/esTzCUmN4AmEJq+CrDg09AYqL+AsC+q/WQ38vEyIoT5tUTOlVFWZfsIUcGRRn8/ggadr7YDg09kxTpQIr1G7/a3ZzAaGzsC3C/0jdMP/Wc12SRHV841al9X+LsxgkNVNOtHIOgHvjM4xjOD1Xr8wVELlTnYIiyMYjM4p3mdY/wf+SNIawpshVu2Z/GJns9ps="
on:
branch:
- master
run: npm run db:migrate
notifications:
email: false