generated from qiwi/blank-ts-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
89 lines (86 loc) · 2.38 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
language: node_js
node_js: 14
install: skip
cache: yarn
dist: focal
jobs:
fast_finish: true
include:
- stage: verify
if: branch != master AND type != pull_request
os: linux
install:
- yarn
- yarn bootstrap
script:
- yarn build
- yarn test
- &build
if: branch = master
os: linux
stage: build
install:
- yarn
- yarn bootstrap
script:
- yarn build
- yarn uglify
# https://docs.travis-ci.com/user/using-workspaces/
workspaces:
create:
name: linux-shared
paths:
- node_modules
- packages
- <<: *build
if: branch = master AND env(CI_WIN_BUILD) = true AND type = pull_request
os: windows
script: yarn build
# https://travis-ci.community/t/timeout-after-build-finished-and-succeeded/1336/2
env: YARN_GPG=no
workspaces:
create:
name: win-shared
paths:
- node_modules
- packages/**/target
- &test
if: branch = master AND type = pull_request
stage: test
os: linux
script: yarn test
workspaces:
use: linux-shared
- <<: *test
node_js: 12
- <<: *test
if: branch = master AND type != pull_request
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script: yarn test:report
after_script:
- ./cc-test-reporter format-coverage -t lcov ./coverage/lcov.info
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- <<: *test
if: branch = master AND type = pull_request AND env(CI_WIN_BUILD) = true
os: windows
env: YARN_GPG=no
install: yarn bootstrap
workspaces:
use: win-shared
- <<: *test
if: branch = master AND type = pull_request AND env(CI_WIN_BUILD) = true
os: windows
node_js: 12
install: yarn bootstrap
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
script: npx -p @qiwi/semrel-toolkit multi-semrel
# script: echo 'Deploy step is disabled' && exit 0