forked from npm/npm-registry-client
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
59 lines (56 loc) · 1.33 KB
/
.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
language: node_js
cache: npm
node_js: 14
install: skip
dist: focal
sudo: false
jobs:
fast_finish: true
include:
- stage: verify
if: branch != master AND type != pull_request
os: linux
install:
- npm install
- npm install -g npm@latest
- npm --version
script:
- npm run build
- if [ $CI_TEST != "false" ]; then
npm test;
fi
- stage: build
if: branch = master
os: linux
install:
- npm install
- npm install -g npm@latest
script:
- npm run build
# https://docs.travis-ci.com/user/using-workspaces/
workspaces:
create:
name: linux-shared
paths:
- docs
- node_modules
- &test
if: branch = master AND type = pull_request AND env(CI_TEST) != false
stage: test
os: linux
script: npm test
workspaces:
use: linux-shared
#- <<: *test
# node_js: 8
#- <<: *test
# node_js: 10
- <<: *test
node_js: 12
- stage: release
if: branch = master AND type != pull_request AND env(CI_RELEASE) = true
workspaces:
use: linux-shared
install: skip
script: npx -p @qiwi/semrel-toolkit semrel -e @qiwi/semrel-config
# script: echo 'Deploy step is disabled' && exit 0