-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy path.travis.yml
54 lines (44 loc) · 888 Bytes
/
.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
45
46
47
48
49
50
51
52
53
54
language: node_js
node_js:
- '8'
- '6'
cache:
directories:
- ~/.npmrc
env:
global:
- MYSQL_CONN=mysql://root@localhost/
- PG_CONN=postgres://postgres@localhost/postgres
services:
- mysql
- postgresql
before_install:
- npm install -g npm@6.0.0
install:
- npm ci
script:
- npm run lint
- npm run cover
- nyc report --reporter=json
- bash <(curl -s https://codecov.io/bash) -f coverage/coverage-final.json
jobs:
include:
- stage: release
node_js: '8'
services: []
script:
- npm run semantic-release
before_deploy:
- npm run typedoc
deploy:
skip_cleanup: true
provider: surge
project: ./typedoc/
domain: node-sql-template-strings.surge.sh
stages:
- test
- name: release
if: branch = master AND type = push AND fork = false
branches:
only:
- master