Skip to content

Commit

Permalink
Correct PYODIDE_BASE_URL for console.html in CircleCI artifacts (pyod…
Browse files Browse the repository at this point in the history
…ide#1453)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
  • Loading branch information
2 people authored and hamlet4401 committed Jul 3, 2021
1 parent fd9f748 commit 23ab6ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ jobs:
paths:
- ./packages/.artifacts
- ./build
- run:
name: Prepare CircleCI artifacts
command: PYODIDE_BASE_URL="./" make build/console.html

- store_artifacts:
path: /root/repo/build/
Expand Down
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ env:
env


.PHONY: build/pyodide.js
build/pyodide.js: src/pyodide.js
cp $< $@
sed -i -e 's#{{ PYODIDE_BASE_URL }}#$(PYODIDE_BASE_URL)#g' $@
Expand All @@ -69,19 +70,23 @@ build/test.html: src/templates/test.html
cp $< $@


.PHONY: build/console.html
build/console.html: src/templates/console.html
cp $< $@
sed -i -e 's#{{ PYODIDE_BASE_URL }}#$(PYODIDE_BASE_URL)#g' $@


.PHONY: build/webworker.js
build/webworker.js: src/webworker.js
cp $< $@
sed -i -e 's#{{ PYODIDE_BASE_URL }}#$(PYODIDE_BASE_URL)#g' $@


.PHONY: build/webworker_dev.js
build/webworker_dev.js: src/webworker.js
cp $< $@
sed -i -e 's#{{ PYODIDE_BASE_URL }}#./#g' $@


test: all
pytest src emsdk/tests packages/*/test* pyodide_build -v

Expand Down

0 comments on commit 23ab6ec

Please sign in to comment.