-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (37 loc) · 893 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
language: node_js
node_js:
- 15
cache:
npm: true
directories:
- dist
- node_modules
stages:
- Build
- Test and FormatCheck
- name: GenTestRaport
if: branch=master
- name: Publish
if: branch=master
jobs:
include:
- stage: Build
script: bash ./scripts/build.sh
- stage: Test and FormatCheck
script: npm run test:cov
- script: npm run lint && npm run format-check
- stage: GenTestRaport
script: npm run test:cov && cat coverage/lcov.info | coveralls
- stage: Publish
deploy:
provider: pages
skip_cleanup: true
local_dir: dist
github_token: $GITHUB_TOKEN
keep_history: true
on:
branch: master
after_failure:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $WEBHOOK_URL