forked from tivac/modular-css
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (39 loc) · 994 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
# Force a VM instead of Docker, some tests that depend on the FS fail otherwise
sudo: required
# don't build tags, it's redundant
if: tag IS blank
# Environment setup
language: node_js
node_js:
- node
- '8'
# https://docs.travis-ci.com/user/customizing-the-build/#Fast-Finishing
matrix:
fast_finish: true
# keep the npm cache around to speed up installs
cache:
directories:
- "$HOME/.npm"
before_install:
- npm config set loglevel warn
# Set up npm 6 for installs since we need `npm ci` to exist
- npm install --global npm@6
# Use npm ci command for all dependencies
install:
- npm ci
- lerna exec -- npm ci
script:
- npm test -- --verbose --ci
# Run codecov after all builds, and only
# on a single environment
jobs:
include:
- stage: Code Coverage
node_js: node
script:
- npm test -- --ci --coverage
- npx codecov
# travis buddy adds comments with travis failures to PRs
notifications:
webhooks: https://www.travisbuddy.com/
on_success: never