forked from gajus/eslint-plugin-jsdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
39 lines (39 loc) · 755 Bytes
/
.travis.yml
File metadata and controls
39 lines (39 loc) · 755 Bytes
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
language: node_js
node_js:
- 12
- 10
- 8
before_install:
- npm config set depth 0
before_script: >
node_version=$(node -v);
if [ ${node_version:3:1} = "." ]; then
echo "Node 10+"
npm install --no-save "eslint@${ESLINT}"
else
echo "Node 8+"
npm install --no-save "eslint@${ESLINT}" husky@3.1.0 semantic-release@15.14.0
fi
notifications:
email: false
sudo: false
script:
- npm run test
- 'if [ -n "${LINT-}" ]; then npm run lint; fi'
- npm run build
env:
matrix:
- ESLINT=6
- ESLINT=5
matrix:
fast_finish: true
include:
- node_js: 'lts/*'
env: LINT=true
exclude:
- node_js: 6
env: ESLINT=6
after_success:
- export NODE_ENV=production
- npm run build
- semantic-release