-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
45 lines (38 loc) · 1.53 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
44
language: node_js
node_js:
- node
cache: npm
env:
global:
- NODE_ENV=test
- GITHUB_REPO="devdbrandy/iReporter"
after_success:
- npm run coverage
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
services:
- postgresql
before_script:
- psql -c 'CREATE DATABASE ireporter_test;' -U postgres
- npm run migrate
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
notifications:
email: false
deploy:
- provider: heroku
api_key:
secure: Tj/RWO+NhDpk2T+h/9ecTaXwOvMQ8MjeewB9IqYTINUbwPwNJp96e9R3roiWVfLHibH8ZZ8tnF4vV38H4ZKTAt6dkqOnylnNjppQi+RuSJ2pbMD7+i14VcTgcIkKqob+/UhLAIYKdpIfLTnrL0K33wp0YyEik4oPC79l4cASPeJsZxd1sUYOk2S0hcAcexMZlVxCH80Q7qc4R6GfykE8TVABj6PGgqtZOj67HzQYITe6w/Npt7jKE4TmeyaJLhLKJddX4Y329br0k0JnUtt0bcFZPO+6ByJAl6RAkpxFvZg012bkowEKZNgmKS9YD70idMNsgBopbOxfLPJtgolIFL7jLdT9U5pSkHX6sWIavcq6yyH7NL7MsApvcdSfGDXrpGMu8+wYsYP1nlmbXNjrxFZhOth6RubGmdqGSOTZ2dTnAAEFeYPjU0bYj6BU8mwldw60QNH5cBuPjXuiz8j1WaWw5NZ2am7lZC8duCkd5rL1/7XduL9/XpTVqLrhBsam13EWLSZ7xqKx2JkBmSrZqkPSRvgWKFVGSEts4sjBAdLJEUpulOFa4NVUgpqU5Ho/DlHgj42ORJBvKAqMudTCF5aTdeiW0xYvaNLIrI31lhtdJft4QvNMBGaXEbE58T++nklqF4BI35h9cLUYYga43GSa4VMABjTkZyOln8IzxDQ=
app: irepot-demo
on:
branch: develop
run:
- "npm run db:refresh"
- "npm run db:seed"
- provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
local-dir: UI
on:
all_branches: true