-
-
Notifications
You must be signed in to change notification settings - Fork 153
/
.travis.yml
43 lines (40 loc) · 1014 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
os: linux
dist: xenial
language: node_js
node_js:
- "14.17.0"
- "16"
- "17"
install:
- npm install --legacy-peer-deps
before_script: >
node_version=$(node -v);
if [ ${ESLINT} = "7" ]; then
if [ ${node_version:1:2} = "16" ]; then
npm install --legacy-peer-deps --engine-strict --no-save "eslint@${ESLINT}" eslint-config-canonical@32.1.0 eslint-plugin-mocha@9
else
npm install --legacy-peer-deps --no-save "eslint@${ESLINT}" eslint-config-canonical@32.1.0 eslint-plugin-mocha@9
fi
else
if [ ${node_version:1:2} = "16" ]; then
npm install --engine-strict --no-save "eslint@${ESLINT}"
npm run lint
npm run build
else
npm install --legacy-peer-deps --no-save "eslint@${ESLINT}" eslint-config-canonical@32.1.0 eslint-plugin-mocha@9
fi
fi
notifications:
email: false
script:
- npm run test
env:
jobs:
- ESLINT=7
- ESLINT=8
after_success:
- export NODE_ENV=production
- npm run build
- semantic-release
cache:
npm: false