8000 CI build and deploy demo page on master branch by shinglyu · Pull Request #217 · RustPython/RustPython · GitHub
[go: up one dir, main page]

Skip to content

CI build and deploy demo page on master branch #217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
CI build and deploy demo page on master branch
  • Loading branch information
shinglyu committed Dec 6, 2018
commit b5c199026705859077d0ad1a117d545dc7e4a2ef
42 changes: 32 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,21 +67,43 @@ matrix:
cache: cargo
script:
- cargo doc --no-deps --all
if: branch = release
env:
- REGULAR_TEST=false
- PUBLISH_DOC=true
- name: WASM online demo
language: rust
rust: nightly
cache: cargo
script:
- cd wasm
- bash release.sh
if: branch = release
env:
- REGULAR_TEST=false
- PUBLISH_DEMO=true
allow_failures:
- rust: nightly
env: REGULAR_TEST=true

deploy:
provider: pages
repo: RustPython/website
target-branch: master
local-dir: target/doc
skip-cleanup: true
github-token: $WEBSITE_GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep-history: true
on:
branch: master
condition: $PUBLISH_DOC = true
- provider: pages
repo: RustPython/website
target-branch: master
local-dir: target/doc
skip-cleanup: true
github-token: $WEBSITE_GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep-history: true
on:
branch: release
condition: $PUBLISH_DOC = true
- provider: pages
repo: RustPython/demo
target-branch: master
local-dir: wasm/app/dist
skip-cleanup: true
github-token: $WEBSITE_GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep-history: true
on:
branch: release
condition: $PUBLISH_DEMO = true
8 changes: 8 additions & 0 deletions wasm/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
wasm-pack build && \
cd pkg && \
npm link && \
cd ../app && \
npm install && \
npm link rustpython_wasm && \
webpack --mode production && \
echo "Output saved to app/dist"
0