-
-
Notifications
You must be signed in to change notification settings - Fork 153
/
.travis.yml
45 lines (43 loc) · 926 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
os: linux
dist: xenial
language: node_js
node_js:
- "17"
- "16"
- "14.14.0"
- "12.20.0"
before_install:
- npm config set depth 0
install:
- echo "Avoid Travis's npm auto-install"
before_script: >
node_version=$(node -v);
if [ ${node_version:1:2} = "17" ]; then
echo "Deadsnakes"
sudo add-apt-repository --yes ppa:deadsnakes/ppa
echo "Update apt-get"
sudo apt-get update
echo "Install Python3"
sudo apt-get --assume-yes install python3.6
ln -sf /usr/bin/python3.6 /usr/bin/python3
fi;
npm install --legacy-peer-deps --no-save "eslint@${ESLINT}"
notifications:
email: false
script:
- npm run test
- 'if [ -n "${LINT-}" ]; then npm run lint; fi'
- npm run build
env:
jobs:
- ESLINT=8
- ESLINT=7
jobs:
fast_finish: true
include:
- node_js: 'lts/*'
env: LINT=true
after_success:
- export NODE_ENV=production
- npm run build
- semantic-release