-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
40 lines (40 loc) · 872 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
dist: trusty
sudo: required
# keep the npm cache around to speed up installs
cache:
directories:
- "$HOME/.npm"
notifications:
slack:
on_success: change
on_failure: always
node_js:
- 'node'
- '10'
- '8'
os:
- linux
before_install:
- npm install -g codecov
- npm i -g travis-deploy-once
- npm install -g greenkeeper-lockfile@latest
install:
- npm i -g npm@latest
- npm install
before_script:
- npm prune
- echo "Check if TypeScript files have valid syntax/types"
- npm run type-check
- echo "Check if TypeScript files have valid linting"
- npm run lint
- echo "GreenKeeper lockfile update"
- greenkeeper-lockfile-update
after_script:
- greenkeeper-lockfile-upload
after_success:
- codecov
- travis-deploy-once && npx -p node@8 npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/