-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (34 loc) · 899 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
sudo: false
language: node_js
cache:
directories:
# https://twitter.com/maybekatz/status/905213355748720640
- ~/.npm
node_js:
# https://medium.com/@mikeal/stop-supporting-old-releases-70cfa0e04b0c
- "lts/*"
# Trigger a push build on master and greenkeeper branches + PRs build on every branches
# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
branches:
only:
- master
install:
- npm install
script:
- npm run coverage
before_script:
- npm prune
after_success:
- npx travis-deploy-once --pro "npx sync-glitch-cli"
# Deploy coverage report to GitHub Pages
deploy:
provider: pages
local-dir: "coverage/lcov-report"
skip-cleanup: true
github-token: $GH_TOKEN # Set in the settings page of your repository, as a secure variable
keep-history: true
on:
branch: master
notifications:
email:
on_failure: always