forked from npm/types
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (67 loc) · 1.74 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
60
61
62
63
64
65
66
67
68
69
70
language: node_js
cache: npm
node_js: 14
install: skip
dist: focal
jobs:
fast_finish: true
include:
- stage: verify
if: branch != master AND type != pull_request
os: linux
install: npm install
script:
- npm run build
- npm run test
- &build
stage: build
if: branch = master
os: linux
install: npm install
script: npm run build
# https://docs.travis-ci.com/user/using-workspaces/
workspaces:
create:
name: linux-shared
paths:
- docs
- node_modules
- index.d.ts
- <<: *build
os: windows
if: branch = master AND env(CI_WIN_BUILD) = true AND type = pull_request
# https://travis-ci.community/t/timeout-after-build-finished-and-succeeded/1336/2
env: YARN_GPG=no
workspaces:
create:
name: win-shared
paths:
- docs
- node_modules
- index.d.ts
- &test
if: branch = master AND type = pull_request
stage: test
os: linux
install: skip
script: npm run test
workspaces:
use: linux-shared
- <<: *test
node_js: 12
- <<: *test
if: branch = master AND type != pull_request
script: npm run test
- <<: *test
if: branch = master AND type = pull_request AND env(CI_WIN_BUILD) = true
os: windows
env: YARN_GPG=no
workspaces:
use: win-shared
- 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