Skip to content

Commit d5b341c

Browse files
Partly automate release process (#3716)
1 parent b6b693a commit d5b341c

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

Diff for: .circleci/config.yml

+68
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,71 @@ jobs:
249249
- store_artifacts:
250250
path: packages/python/plotly/dist
251251

252+
full_build:
253+
docker:
254+
- image: continuumio/miniconda3
255+
environment:
256+
LANG: en_US.UTF-8
257+
resource_class: large
258+
259+
steps:
260+
- checkout
261+
262+
- run:
263+
name: Create conda environment
264+
command: |
265+
conda create -n env --yes python=3.9 conda-build conda-verify
266+
conda install -n env -c conda-forge jupyterlab
267+
conda install -c conda-forge nodejs=12
268+
conda init bash
269+
270+
- run:
271+
name: initial NPM Build
272+
command: |
273+
eval "$(conda shell.bash hook)"
274+
conda activate env
275+
cd packages/javascript/jupyterlab-plotly
276+
npm install
277+
npm run build:prod
278+
279+
- run:
280+
name: PyPI Build
281+
command: |
282+
eval "$(conda shell.bash hook)"
283+
conda activate env
284+
cd packages/python/plotly
285+
python setup.py sdist bdist_wheel
286+
287+
- store_artifacts:
288+
path: packages/python/plotly/dist
289+
destination: dist
290+
291+
- run:
292+
name: Conda Build
293+
command: |
294+
eval "$(conda shell.bash hook)"
295+
conda activate env
296+
cd packages/python/plotly
297+
conda build recipe/
298+
mkdir conda_dist
299+
mv /opt/conda/envs/env/conda-bld/noarch/plotly*.tar.bz2 conda_dist
300+
301+
- store_artifacts:
302+
path: packages/python/plotly/conda_dist
303+
destination: conda_dist
304+
305+
- run:
306+
name: NPM Pack
307+
command: |
308+
cd packages/javascript/jupyterlab-plotly
309+
npm pack
310+
mkdir npm_dist
311+
mv jupyterlab-plotly*.tgz npm_dist
312+
313+
- store_artifacts:
314+
path: packages/javascript/jupyterlab-plotly/npm_dist
315+
destination: npm_dist
316+
252317
build-doc:
253318
resource_class: xlarge
254319
docker:
@@ -384,6 +449,9 @@ workflows:
384449
dev_build:
385450
jobs:
386451
- plotlyjs_dev_build
452+
release_build:
453+
jobs:
454+
- full_build
387455

388456
build:
389457
jobs:

0 commit comments

Comments
 (0)