-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
56 lines (46 loc) · 1003 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
55
56
language: node_js
node_js:
- '8'
cache:
directories:
- ~/.npm
services:
- postgresql
env:
global:
- PGUSER=postgres
- MERKEL_DB=postgres://postgres@localhost:5432/merkel_test
before_install:
- npm install -g npm@6.0.0
install:
- npm ci
script:
- createdb merkel_test
- git config --global user.email 'whatever@whatever.com'
- git config --global user.name 'whatever'
- npm run build
- npm run lint
- npm run cover -- --colors
- nyc report --reporter=json
- bash <(curl -s https://codecov.io/bash) -f coverage/coverage-final.json
jobs:
include:
- stage: test
- stage: release
script:
- npm run build
- npm run semantic-release
before_deploy:
- npm run typedoc
deploy:
skip_cleanup: true
provider: surge
project: ./typedoc/
domain: merkel.surge.sh
stages:
- test
- name: release
if: branch = master AND type = push AND fork = false
branches:
only:
- master