-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.disabled.yml
95 lines (86 loc) · 2.51 KB
/
.travis.disabled.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
90
91
92
93
94
95
language: node_js
cache: yarn
node_js: 16
install: skip
os: linux
dist: focal
jobs:
fast_finish: true
include:
- stage: verify
if: branch != master AND type != pull_request
install: yarn
script:
- yarn build
- if [ "$CI_TEST" != "false" ]; then
yarn test;
fi
- &build
stage: build
if: branch = master
install: yarn
script: yarn build
# https://docs.travis-ci.com/user/using-workspaces/
workspaces:
create:
name: linux-shared
paths:
- target
- flow-typed
- typings
- docs
- node_modules
- <<: *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:
- target
- node_modules
- &test
if: branch = master AND type = pull_request AND env(CI_TEST) != false
stage: test
install: skip
script: yarn test
workspaces:
use: linux-shared
- <<: *test
node_js: 12
- <<: *test
node_js: 14
- <<: *test
if: branch = master AND type != pull_request AND env(CI_TEST) != false
before_script:
- if [ "$CC_TEST_REPORTER_ID" != "" ]; then
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;
fi
script:
- if [ "$CC_TEST_REPORTER_ID" != "" ]; then
yarn test:report;
else
yarn test;
fi
after_script:
- if [ "$CC_TEST_REPORTER_ID" != "" ]; then
./cc-test-reporter format-coverage -t lcov ./coverage/lcov.info;
./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT;
fi
- <<: *test
if: branch = master AND type = pull_request AND env(CI_WIN_BUILD) = true AND env(CI_TEST) != false
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