Skip to content

Commit ad3cc19

Browse files
committed
chore(other): log prepr when building on master
- only use TDS Bot in pull requests
1 parent 5300eaa commit ad3cc19

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

circle.yml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ commands:
2525
- attach_workspace:
2626
at: .
2727

28+
expect:
29+
steps:
30+
- run: sudo apt-get update -y
31+
- run: sudo apt-get install -y expect
32+
2833
install:
2934
steps:
3035
- run:
@@ -66,15 +71,23 @@ jobs:
6671
background: true
6772
- run: npm run test:e2e-direct -- -a
6873

69-
prepr:
74+
prepr-log:
7075
executor: prepr
7176
steps:
7277
- attach
73-
- run: sudo apt-get update -y
74-
- run: sudo apt-get install -y expect
78+
- expect
7579
- run:
76-
name: TDS Bot Analysis
77-
command: if [ "$CIRCLE_PULL_REQUEST" != "" ]; then scripts/prePr.sh ; node ./scripts/circleci/github-pr.js ; fi
80+
name: Package version bumps
81+
command: scripts/prePr.sh
82+
83+
prepr-bot:
84+
executor: prepr
85+
steps:
86+
- attach
87+
- expect
88+
- run:
89+
name: TDS Bot output
90+
command: if [ "$CI_PULL_REQUEST" != "" ]; then node ./scripts/circleci/github-pr.js; fi
7891

7992
release:
8093
executor: builder
@@ -149,8 +162,17 @@ workflows:
149162
- e2e:
150163
requires: [build]
151164

152-
- prepr:
165+
- prepr-bot:
153166
requires: [build, lint, unit, e2e]
167+
filters:
168+
branches:
169+
ignore: master
170+
171+
- prepr-log:
172+
requires: [build, lint, unit, e2e]
173+
filters:
174+
branches:
175+
only: master
154176

155177
- approve-release:
156178
type: approval

0 commit comments

Comments
 (0)