-
Notifications
You must be signed in to change notification settings - Fork 106
/
.travis.yml
39 lines (33 loc) · 1.44 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
language: node_js
node_js:
- '6'
- '8'
- 'stable'
services:
- postgresql
env:
matrix:
- DB_TYPE=postgres
- DB_TYPE=sqlite
install:
- npm install --no-shrinkwrap
before_script:
- rm -f dev.sqlite
- cp master.sqlite dev.sqlite
- npm run pg:setup
- npm run db:migrate --- up
script:
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$PR, BRANCH=$BRANCH"
- echo "TRAVIS_NODE_VERSION=$TRAVIS_NODE_VERSION"
- echo "SHOULD_DEPLOY=($TRAVIS_NODE_VERSION=9)"
- npm test
deploy:
provider: heroku
api_key:
secure: oiHK6gRtBYlY0YwC+mKowBIFYikpr8hdAB4eizNRjzF2XNBioPPeMeAd2XJKn82Ph8VQflXN1NdatLBMoX/+mEgdlzDzXystaxuK0hz2rIwKSjpamyZaYh9lcqGRqgX5Kbycw42IzY19zbb5g3asyQWusIaaq2yMBl+KQM8RIXm/qbvGVfeyFGzoCVIVthr8QCmN7O5YlAevJNrk2qhp4KUTNJ4mcZwODcARrd12ZQ3T5RZ4UAogiJ+Hd9xbJTe9m2RxfkvGzwRvJdhpD/bxJyQStBh6H01XMaInNDzfjlzJnHR+gUKC2AzUfh5IGMyxVfdf6dAntMMMdZbfrmIcWpjxc27LJsJZxBraOTU/QJrQidm0pRgX6Jp3cd08MDuyAODojCBxbqScsLIaFvZtfb/jLzC57sxwYDRr1C+TNB57aYvRCU7CfjRU8cnYH1b+HQUmcNKbBfZPDwOzS3ZS9SBZUZ5Ojp4SXjYhd15Owd+bwyO7co0Lc/fYQzIUnzjX2GbJ6/Sp1LuQBaRN3ykw3mivl//2uet0SFcL3ZVr6GPlE22QdHHM3/EVZlpFaz3Rzu+fofsGq1jtFGkj7SP37DK+TVw0sy4IKJ+Cu8KraSb2XSEJgef96+1wE1h3M9Sgg0ZOr9Ebg4O6DPaEhdSZutcTUPwA/SSVB8tsiuNICAE=
app: damp-oasis-38940
on:
repo: mike-north/sql-fundamentals
branch: solutions
condition: SHOULD_DEPLOY