Skip to content

Commit ec01107

Browse files
authored
Merge pull request #5808 from plotly/preview-draft-changelog
Preview CHANGELOG when building dist on master
2 parents 4426789 + 56fcae0 commit ec01107

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

Diff for: .circleci/config.yml

+17-12
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ jobs:
1515
steps:
1616
- checkout
1717
- run:
18-
name: set up build environment
18+
name: Set up build environment
1919
command: .circleci/env_build.sh
2020
- run:
2121
name: Pretest
22-
command: |
23-
npm run pretest
24-
npm run cibuild
22+
command: npm run pretest
23+
- run:
24+
name: CI-Build
25+
command: npm run cibuild
2526
- run:
27+
name: Delete git
2628
command: rm -rf .git
2729
- persist_to_workspace:
2830
root: /home/circleci
@@ -76,10 +78,10 @@ jobs:
7678
- attach_workspace:
7779
at: ~/
7880
- run:
79-
name: install kaleido, plotly.io and required fonts
81+
name: Install kaleido, plotly.io and required fonts
8082
command: .circleci/env_image.sh
8183
- run:
82-
name: create all png files
84+
name: Create all png files
8385
command: .circleci/test.sh make-baselines
8486
- persist_to_workspace:
8587
root: ~/
@@ -94,7 +96,7 @@ jobs:
9496
- attach_workspace:
9597
at: ~/
9698
- run:
97-
name: compare pixels
99+
name: Compare pixels
98100
command: .circleci/test.sh test-image ; find build -maxdepth 1 -type f -delete
99101
- store_artifacts:
100102
path: build
@@ -108,13 +110,13 @@ jobs:
108110
- attach_workspace:
109111
at: ~/
110112
- run:
111-
name: install kaleido, plotly.io and required fonts
113+
name: Install kaleido, plotly.io and required fonts
112114
command: .circleci/env_image.sh
113115
- run:
114-
name: install poppler-utils to have pdftops for exporting eps
116+
name: Install poppler-utils to have pdftops for exporting eps
115117
command: sudo apt-get install poppler-utils
116118
- run:
117-
name: create svg, jpg, jpeg, webp, pdf and eps files
119+
name: Create svg, jpg, jpeg, webp, pdf and eps files
118120
command: python3 test/image/make_exports.py
119121
- persist_to_workspace:
120122
root: ~/
@@ -129,7 +131,7 @@ jobs:
129131
- attach_workspace:
130132
at: ~/
131133
- run:
132-
name: test export sizes
134+
name: Test export sizes
133135
command: node test/image/export_test.js ; find build -maxdepth 1 -type f -delete
134136
- store_artifacts:
135137
path: build
@@ -179,8 +181,11 @@ jobs:
179181
steps:
180182
- checkout
181183
- run:
182-
name: set up build environment
184+
name: Set up build environment
183185
command: .circleci/env_build.sh
186+
- run:
187+
name: Preview CHANGELOG for next release (only on master)
188+
command: if [ $CIRCLE_BRANCH == "master" ]; then npm run use-draftlogs && git --no-pager diff --color-words CHANGELOG.md || true; fi
184189
- run:
185190
name: Build dist/
186191
command: npm run build

Diff for: draftlogs/5808_add.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Preview CHANGELOG when building dist on master [[#5780](https://github.com/plotly/plotly.js/pull/5780), [#5808](https://github.com/plotly/plotly.js/pull/5808)]

0 commit comments

Comments
 (0)