forked from loopbackio/loopback-next
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (38 loc) · 894 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
sudo: false
language: node_js
node_js:
- "8"
- "10"
- "12"
os:
- linux
- osx
script:
- npm run postinstall
- npm run build
- npm run test:ci
env: TASK=test
install: npm ci --ignore-scripts
after_success:
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]] && [[ $(echo $TRAVIS_NODE_VERSION | cut -d'.' -f1) == "10" ]]; then npm run coverage:ci; fi
matrix:
include:
- node_js: "8"
os: linux
env: TASK=code-lint
# Running Code Linter -- Requires @loopback/build so it's bootstrapped
script:
- lerna bootstrap --scope @loopback/build --scope @loopback/tslint-config
- npm run lint
- node_js: "8"
os: linux
env: TASK=commit-lint
script: commitlint-travis
- node_js: "8"
os: linux
env: TASK=verify-docs
script: ./bin/verify-doc-changes.sh
branches:
only:
- master
- /^greenkeeper/.*$/