Skip to content

Update demo with frozen stdlib #1184

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 214 commits into from
Jul 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
ef1d543
Pass more information in user defined parse error
palaviv Jul 5, 2019
0e74d16
Pass ParseError location to CompileError
palaviv Jul 6, 2019
c64a974
Update documentation folder and readme.
windelbouwman Jul 6, 2019
0be08fe
Fix wasm syntax error
palaviv Jul 6, 2019
ef44e72
Trial to improve travis config.
windelbouwman Jul 6, 2019
70c2054
Merge pull request #1106 from palaviv/syntex-error
windelbouwman Jul 6, 2019
f68b064
Stick to python3.6 for now.
windelbouwman Jul 6, 2019
10cad47
Remove wasm warnings
palaviv Jul 6, 2019
f041a0a
Merge pull request #1110 from palaviv/wasm-warns
coolreader18 Jul 6, 2019
69980c2
Merge pull request #1109 from RustPython/update-travis-yml
windelbouwman Jul 6, 2019
ef649be
Add git information in sys and platform modules.
windelbouwman Jul 6, 2019
22c3ed3
Merge branch 'master' of github.com:RustPython/RustPython into update…
windelbouwman Jul 6, 2019
5c39350
Revert Pipfile back to py36
windelbouwman Jul 6, 2019
bcf470e
Merge pull request #1111 from RustPython/sys-version
windelbouwman Jul 6, 2019
93f70ab
Merge pull request #1108 from RustPython/update-docs
windelbouwman Jul 6, 2019
97f9825
parser error handling improvements.
windelbouwman Jul 6, 2019
347d481
fix remaining clippy warnings
mkurnikov Jul 7, 2019
de9a917
add Clippy to CI
mkurnikov Jul 7, 2019
7e138ec
Improve f-string syntax. Fixes #1099
windelbouwman Jul 7, 2019
cc24b73
Set all versions to 0.1.0
windelbouwman Jul 7, 2019
67bbb5d
use unique JOBCACHE value for clippy in travis config
mkurnikov Jul 7, 2019
310f89e
Remove bytecode compilation. Add feature to enable verbose logging in…
windelbouwman Jul 7, 2019
dbc263c
Merge pull request #1114 from mkurnikov/fix-clippy-1.36
windelbouwman Jul 7, 2019
9fee59e
make exceptions repr tests Python 3.7-friendly by eval-repr round-trip
silmeth Jul 7, 2019
1b539de
move asserts out of round trip test utils
silmeth Jul 7, 2019
fe9e711
fix big int crash in json_snippets – actually use a big integer
silmeth Jul 7, 2019
e4322f5
Merge pull request #1112 from RustPython/parser-error-cleaning
palaviv Jul 7, 2019
18bb563
Merge pull request #1115 from RustPython/fstring-fix
windelbouwman Jul 7, 2019
fabc260
Merge pull request #1117 from silmeth/exc-repr
windelbouwman Jul 7, 2019
3d6673c
Formatting of macros.rs
windelbouwman Jul 7, 2019
e45dfc6
Published unicode-casing to crates.io
windelbouwman Jul 7, 2019
f3e2abd
Move importlib python files into vm crate.
windelbouwman Jul 7, 2019
ff21c14
Merge pull request #1116 from RustPython/remove-cpython-bytecode-tests
windelbouwman Jul 7, 2019
2be70eb
Add deque to collections
coolreader18 Jul 2, 2019
5956bcb
Add maxlen argument and getter
coolreader18 Jul 2, 2019
805d536
Add repr to deque
coolreader18 Jul 3, 2019
5153ad5
Add cmp methods to deque
coolreader18 Jul 6, 2019
0ca6d24
Add deque tests
coolreader18 Jul 6, 2019
1c1ee5b
Add setter for maxlen
coolreader18 Jul 7, 2019
9d3fa18
Add __mul__ to deque
coolreader18 Jul 7, 2019
d891c87
Add maxlen as a named arg
coolreader18 Jul 7, 2019
deca878
Use VecDeque::rotate_{left,right}
coolreader18 Jul 7, 2019
fbeedb7
Fix seq_mul with negative numbers
coolreader18 Jul 7, 2019
1c1440e
Add __len__ to deque
coolreader18 Jul 7, 2019
7b23a96
Fix warnings test
coolreader18 Jul 7, 2019
03b7299
make TextIOBase writable, handle malformed utf-8 in read()
silmeth Jul 8, 2019
5b32dfb
Fix clippy and azure pipelines
coolreader18 Jul 8, 2019
5450f8e
use vm.try_class, early return on unsupported op error
silmeth Jul 8, 2019
29e046f
Add flamegraph profiling
coolreader18 Jul 8, 2019
f585f7e
Add frame name to its flame span
coolreader18 Jul 9, 2019
0893076
Add #![doc(html_logo_url = ...)] to crates
coolreader18 Jul 9, 2019
86decbb
Merge pull request #1097 from RustPython/coolreader18/collections-deque
windelbouwman Jul 9, 2019
53ce362
Merge pull request #1120 from RustPython/coolreader18/flame-profiling
windelbouwman Jul 9, 2019
afec714
use vm.call_method() instead of get_method&invoke, remove String alloc
silmeth Jul 9, 2019
e5d0a02
Merge pull request #1119 from silmeth/text_file_io
windelbouwman Jul 9, 2019
86cbc2e
Fix exception stack
palaviv Jul 9, 2019
b815d47
Use cloned
palaviv Jul 9, 2019
2e618af
sys: Fix sys.maxsize and add sys.maxunicode
corona10 Jul 9, 2019
bdd7fa8
Merge pull request #1122 from palaviv/fix-exception-stack
windelbouwman Jul 9, 2019
9261d94
Merge pull request #1124 from corona10/sys_maxunicode
windelbouwman Jul 9, 2019
d349d25
complex: Fix hash function to work correctly
corona10 Jul 9, 2019
d16c288
Improve re module. Favor string.py over string.rs
windelbouwman Jul 10, 2019
8a46cdf
Merge pull request #1121 from RustPython/coolreader18/docs-logo
windelbouwman Jul 10, 2019
5edcecb
Merge pull request #1127 from RustPython/re-kung-fu
coolreader18 Jul 10, 2019
0ab3965
Add time.gmtime function.
windelbouwman Jul 10, 2019
9204035
Cover up bare trait objects with a dyn
coolreader18 Jul 10, 2019
fb23cc6
Add time.ctime, time.strftime
windelbouwman Jul 10, 2019
b2c515c
Merge pull request #1129 from RustPython/coolreader18/no-bare-trait-o…
windelbouwman Jul 10, 2019
dd20263
Merge pull request #1123 from corona10/fix_complex_hash
windelbouwman Jul 10, 2019
98e6486
Merge pull request #1128 from RustPython/re-kung-fu
windelbouwman Jul 10, 2019
1612198
Add default argument to dict.pop. Add logging and traceback python mo…
windelbouwman Jul 10, 2019
ecdbe04
Add profiling using flamescope/speedscope
coolreader18 Jul 10, 2019
33b3cee
Add profiling documentation to README.md
coolreader18 Jul 10, 2019
84a48ae
Remove flame_note! macro
coolreader18 Jul 10, 2019
8e06a30
Update to flamescope 0.1.1
coolreader18 Jul 10, 2019
3beaf5f
Address feedback
coolreader18 Jul 10, 2019
55fbe7f
Merge pull request #1130 from RustPython/re-kung-fu
coolreader18 Jul 10, 2019
140ad71
Add testcase for logging module.
windelbouwman Jul 10, 2019
8869130
Merge pull request #1126 from RustPython/coolreader18/flamescope-prof…
windelbouwman Jul 10, 2019
5e5d726
Add defaultdict to collections
coolreader18 Jul 11, 2019
bf3f09c
Add pprint.py
coolreader18 Jul 11, 2019
3c9045d
Merge pull request #1134 from RustPython/coolreader18/collections-def…
windelbouwman Jul 11, 2019
91d5fc3
Add contextlib.py
coolreader18 Jul 11, 2019
0b7ca17
Add fnmatch and shlex
coolreader18 Jul 11, 2019
56fb6af
Remove async sections of contextlib.py
coolreader18 Jul 11, 2019
c5ad583
Merge pull request #1136 from RustPython/coolreader18/cpython-libs2
windelbouwman Jul 11, 2019
2893780
Check output of logger calls.
windelbouwman Jul 11, 2019
8c1c090
Merge pull request #1131 from RustPython/re-kung-fu
windelbouwman Jul 11, 2019
76dbd8e
Remove proc-macro-hack
coolreader18 Jul 11, 2019
80aedd6
Remove more proc-macro-hack
coolreader18 Jul 11, 2019
2c65988
Switch to hexf_parse
coolreader18 Jul 11, 2019
e373ad2
Make repl rudimentary
coolreader18 Jul 12, 2019
53cc568
Revert unnecesarily change Cargo.lock entries
coolreader18 Jul 12, 2019
c899287
Add vecdeque_rotate to features
coolreader18 Jul 12, 2019
869ea2e
Remove pwd on redox
coolreader18 Jul 12, 2019
838aaa5
Update num-bigint version
coolreader18 Jul 12, 2019
37d2f99
Add rustpython bin
coolreader18 Jul 12, 2019
704b157
Add optimize flag to ignore assert statements.
windelbouwman Jul 12, 2019
67813f1
Fix os module
coolreader18 Jul 12, 2019
dd11780
Fix num-* crates
coolreader18 Jul 12, 2019
fc6c683
Fix os module again
coolreader18 Jul 12, 2019
6dc742b
Remove wasm/lib/target symlink
coolreader18 Jul 12, 2019
1b0d288
Insert path into sys.path for redox
coolreader18 Jul 12, 2019
afd7a33
Implement os.stat for redox
coolreader18 Jul 12, 2019
bd749ea
Use more platform checks
coolreader18 Jul 13, 2019
86a6b2a
Use feature for proc_macro_hack
coolreader18 Jul 13, 2019
f0d4ab5
Add redox installation script
coolreader18 Jul 13, 2019
0d6c536
Tidy up
coolreader18 Jul 13, 2019
e705ec2
Add mktime function.
windelbouwman Jul 13, 2019
ac765a9
Add a settings struct for storage of different settings which influen…
windelbouwman Jul 13, 2019
e20adb3
Use BUILDTIME_RUSTPYTHONPATH env variable
coolreader18 Jul 13, 2019
aa74401
Merge pull request #1139 from RustPython/optimize-flag
windelbouwman Jul 13, 2019
402eb8a
Merge branch 'master' into redox
coolreader18 Jul 13, 2019
d3e1bfe
Merge pull request #1141 from RustPython/time-module-fixes
windelbouwman Jul 13, 2019
d9d7a91
Move vm initialization to own function
coolreader18 Jul 13, 2019
894e42f
Move to redox/ directory
coolreader18 Jul 13, 2019
e0981f8
Add references to usage and conference videos
windelbouwman Jul 13, 2019
cfd0d05
Switch redox recipe to master branch
coolreader18 Jul 13, 2019
fb3ccad
Merge pull request #1140 from RustPython/redox
coolreader18 Jul 13, 2019
16829d2
Merge pull request #1143 from RustPython/update-readme
coolreader18 Jul 14, 2019
ee8bcf4
Move processing of PYTHONPATH out of vm.
windelbouwman Jul 14, 2019
49afefd
Implement ideas from clippy.
windelbouwman Jul 14, 2019
f752c93
Add sys.settrace and sys.setprofile functions to register profiling f…
windelbouwman Jul 14, 2019
e06de30
Implement more nodes in the ast. Add script to walk over AST of sourc…
windelbouwman Jul 14, 2019
cdfcf52
Use env::var where applicable. Fix flame-it feature build.
windelbouwman Jul 14, 2019
93dfbdc
Merge pull request #1144 from RustPython/env-var-processing
coolreader18 Jul 14, 2019
eba282d
Implemented lt, gt, le, ge
RougeEtoile Jul 14, 2019
d8c06d7
cargo fmt
RougeEtoile Jul 15, 2019
f59d84a
Add codecs, locale, shutil, errno, and encodings modules
coolreader18 Jul 15, 2019
8516ad2
Merge pull request #1148 from dmitrijoseph/comp
windelbouwman Jul 15, 2019
f7dd1a2
Add windows errno
coolreader18 Jul 15, 2019
26e3d7f
Merge pull request #1146 from RustPython/ast-module
windelbouwman Jul 15, 2019
a0abe08
Merge pull request #1149 from RustPython/coolreader18/cpython-libs3
windelbouwman Jul 15, 2019
802acf7
Add sys.exc_info
palaviv Jul 13, 2019
b23b8e2
Merge pull request #1150 from palaviv/exc-info
windelbouwman Jul 15, 2019
0741c36
Simplify import AST in line with CPython.
windelbouwman Jul 15, 2019
2e66a6a
Merge pull request #1151 from RustPython/import-syntax
windelbouwman Jul 15, 2019
ff762d7
Address relative import with 3 dots. Closes #1052.
windelbouwman Jul 15, 2019
42b1b75
Merge pull request #1152 from RustPython/import-syntax
palaviv Jul 16, 2019
215308d
Add initial draft of symtable module.
windelbouwman Jul 16, 2019
5821bac
Update READMEs
coolreader18 Jul 17, 2019
19e783d
Merge pull request #1154 from RustPython/coolreader18/update-readmes
windelbouwman Jul 17, 2019
ae018d5
Implement suggestion from clippy.
windelbouwman Jul 17, 2019
97c9b23
Update Dockerfile.wasm
coolreader18 Jul 18, 2019
ce1523c
Fix panic on import statement with levels but no module name.
windelbouwman Jul 19, 2019
b7e085e
Merge pull request #1156 from RustPython/import-bug
windelbouwman Jul 19, 2019
ff0a617
Merge pull request #1155 from RustPython/coolreader18/better-dockerfile
windelbouwman Jul 19, 2019
f919ed0
Extend symtable module.
windelbouwman Jul 19, 2019
b7c035f
Implemented list.__reversed__
Jul 19, 2019
9ec6660
Add argparse and gettext modules
coolreader18 Jul 20, 2019
8101f42
Merge pull request #1153 from RustPython/ast-module
windelbouwman Jul 20, 2019
1b48ade
Merge pull request #1158 from RustPython/coolreader18/cpython-libs4
windelbouwman Jul 20, 2019
befe180
Add freeze-stdlib compile flag
palaviv Jul 20, 2019
f271a0e
Change py_compile_bytecode to return map
palaviv Jul 20, 2019
5c240d7
Support freezing of stdlib
palaviv Jul 20, 2019
d6c19c1
Add location to expressions. Change symboltable to use flags for symb…
windelbouwman Jul 20, 2019
c480449
Fix clippy comments
palaviv Jul 20, 2019
ccd7d89
Suppress clippy warning.
windelbouwman Jul 20, 2019
7226c92
Add hashmap macro to __exports
palaviv Jul 20, 2019
d74c0d5
Merge pull request #1160 from RustPython/ast-module
windelbouwman Jul 20, 2019
18b0f63
Ran cargo fmt --all
Jul 21, 2019
6768e3a
Merge pull request #1157 from adolfogonzalez3/impl-list.__reversed__
coolreader18 Jul 21, 2019
208b37a
Merged
Jul 21, 2019
4af85e9
Merge pull request #1162 from adolfogonzalez3/impl-list.__rmul__
windelbouwman Jul 21, 2019
8c199ee
Refactor the lexer code to bring some more sanity and reduce function…
windelbouwman Jul 21, 2019
e922a6a
Fix trailing newline issue #17
windelbouwman Jul 21, 2019
140d582
Add a bunch of stdlib modules from CPython
coolreader18 Jul 21, 2019
f31b9dc
Merge pull request #1161 from RustPython/coolreader18/cpython-libs5
windelbouwman Jul 21, 2019
c7ffa2e
Merge pull request #1163 from RustPython/ast-module
windelbouwman Jul 21, 2019
255b744
Minor tweak on lexer to fix the REPL.
windelbouwman Jul 21, 2019
aa079ea
Remove sitecustomize.py; fix #1164
coolreader18 Jul 22, 2019
4e1ebb0
Merge pull request #1165 from RustPython/fix-repl
windelbouwman Jul 22, 2019
64f1024
Fix clippy warning
palaviv Jul 22, 2019
0a62535
Change compile_dir path to &Path
palaviv Jul 22, 2019
b174453
Travis CI: Lint Python code with flake8
cclauss Jul 23, 2019
25816a2
Add some extra profiling trace points.
windelbouwman Jul 23, 2019
f7320cf
Move Scope struct to its own file, making the frame module private in…
windelbouwman Jul 23, 2019
e138a73
Move get_item_option to PyDictRef struct.
windelbouwman Jul 23, 2019
73e418c
Add numerator and denominator properties for int
Askaholic Jul 23, 2019
86a1ef2
Add numerator/denominator tests to snippets
Askaholic Jul 23, 2019
2c512d8
Merge pull request #1170 from Askaholic/impl-int-ratio-properties
windelbouwman Jul 23, 2019
f994b05
Move get_item_option back into ItemProtocol
windelbouwman Jul 23, 2019
cbd88e6
env: JOBCACHE=9
cclauss Jul 23, 2019
db8eb7b
Implement str.__iter__ and str.__next__
mpajkowski Jul 23, 2019
6aeec34
Add tests for str.__iter__ and str.__next__
mpajkowski Jul 23, 2019
29248fd
stdlib.io: Implement seekable()
corona10 Jul 24, 2019
a706593
Fix test and add test for negative numberers
Askaholic Jul 24, 2019
1ca863d
Merge pull request #1167 from cclauss/patch-1
windelbouwman Jul 24, 2019
fe44179
Merge pull request #1174 from Askaholic/patch-2
windelbouwman Jul 24, 2019
05ea701
Cleanup frame file.
windelbouwman Jul 24, 2019
0e95f51
Merge pull request #1173 from corona10/seekable
coolreader18 Jul 24, 2019
881baf6
Update flame trace names.
windelbouwman Jul 24, 2019
7d2a7a5
Merge pull request #1169 from RustPython/optimizations1
coolreader18 Jul 24, 2019
0e033ad
Add str.__reversed__ method
mpajkowski Jul 24, 2019
db8de56
Add dont_write_bytecode flag
palaviv Jul 22, 2019
054bc72
Use git hash as pyc magic number
palaviv Jul 22, 2019
fc0aa0c
Use random magic when git hash don't exist
palaviv Jul 22, 2019
dde40a4
Use vm.import
palaviv Jul 24, 2019
1f59532
Silent clippy with allowing range_plus_one
mpajkowski Jul 24, 2019
6ca979e
Merge pull request #1159 from palaviv/freeze-stdlib
palaviv Jul 24, 2019
321e43d
Add freeze-stdlib to wasm build
palaviv Jul 24, 2019
8f1df46
Freeze stdlib by default in WASM
palaviv Jul 24, 2019
ea71428
Merge pull request #1166 from palaviv/write-bytecode
palaviv Jul 24, 2019
a06bd3e
Add an example usecase of the parser.
windelbouwman Jul 24, 2019
a91470d
Merge pull request #1171 from mpajkowski/iter_str
coolreader18 Jul 24, 2019
c998549
Add empty tuple optimization (#1178)
coolreader18 Jul 25, 2019
1fddce4
Implement review comments and improve parsing a bit.
windelbouwman Jul 25, 2019
95561f4
Merge pull request #1180 from palaviv/wasm-freeze-stdlib
windelbouwman Jul 26, 2019
a02e131
Merge pull request #1177 from RustPython/example1
windelbouwman Jul 26, 2019
a72ef1e
Add frozen package support
coolreader18 Jul 27, 2019
ec6c016
Fix wasm errors
coolreader18 Jul 27, 2019
fc97bd9
Merge pull request #1185 from RustPython/coolreader18/frozen-packages
coolreader18 Jul 27, 2019
3c98e6d
Use cargo-sweep to manage cargo caches
coolreader18 Jul 27, 2019
c786109
Merge pull request #1186 from RustPython/coolreader18/cargo-sweep
windelbouwman Jul 28, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 19 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
target
**/node_modules
**/target/
**/*.rs.bk
**/*.bytecode
**/__pycache__/*
**/*.pytest_cache
.*sw*
.repl_history.txt
.vscode
wasm-pack.log
.idea/
tests/snippets/resources

flame-graph.html
flame.txt
flamescope.json

**/node_modules/
wasm/**/dist/
wasm/lib/pkg/
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ __pycache__
.vscode
wasm-pack.log
.idea/
tests/snippets/resources
tests/snippets/resources

flame-graph.html
flame.txt
flamescope.json
141 changes: 73 additions & 68 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,90 @@
language: rust
rust: stable
cache: cargo
before_cache: |
if command -v cargo; then
! command -v cargo-sweep && cargo install cargo-sweep
cargo sweep -i
cargo sweep -t 15
fi

matrix:
fast_finish: true
include:
- name: rust unittests and doctests
- name: Run Rust tests
language: rust
rust: stable
cache: cargo
script:
- cargo build --verbose --all
- cargo test --verbose --all
env:
# Prevention of cache corruption.
# See: https://docs.travis-ci.com/user/caching/#caches-and-build-matrices
- JOBCACHE=1

# To test the snippets, we use Travis' Python environment (because
# installing rust ourselves is a lot easier than installing Python)
- name: python test snippets
- name: Python test snippets
language: python
python: 3.6
cache:
pip: true
# Because we're using the Python Travis environment, we can't use
# the built-in cargo cacher
directories:
- /home/travis/.cargo
- target
- pip
- cargo
env:
- JOBCACHE=2
- TRAVIS_RUST_VERSION=stable
- CODE_COVERAGE=false
script: tests/.travis-runner.sh
- name: rustfmt

- name: Check Rust code style with rustfmt
language: rust
rust: stable
cache: cargo
before_script:
- rustup component add rustfmt-preview
- rustup component add rustfmt
script:
# Code references the generated python.rs, so put something in
# place to make `cargo fmt` happy. (We use `echo` rather than
# `touch` because rustfmt complains about the empty file touch
# creates.)
- echo > parser/src/python.rs
- cargo fmt --all -- --check
- name: publish documentation
env:
- JOBCACHE=3

- name: Lint Rust code with clippy
language: rust
rust: stable
cache: cargo
before_script:
- rustup component add clippy
script:
- cargo clippy --all -- -Dwarnings
env:
- JOBCACHE=8

- name: Lint Python code with flake8
language: python
python: 3.6
cache: pip
env: JOBCACHE=9
install: pip install flake8
script:
flake8 . --count --exclude=./.*,./Lib,./vm/Lib --select=E9,F63,F7,F82
--show-source --statistics

- name: Publish documentation
language: rust
rust: stable
cache: cargo
script:
- cargo doc --no-deps --all
if: branch = release
env:
- DEPLOY_DOC=true
- JOBCACHE=4
deploy:
- provider: pages
repo: RustPython/website
target-branch: master
local-dir: target/doc
skip-cleanup: true
# Set in the settings page of your repository, as a secure variable
github-token: $WEBSITE_GITHUB_TOKEN
keep-history: true

- name: WASM online demo
language: rust
rust: stable
Expand All @@ -65,42 +99,38 @@ matrix:
- npm run dist
if: branch = release
env:
- DEPLOY_DEMO=true
- name: cargo-clippy
language: rust
rust: stable
cache: cargo
before_script:
- rustup component add clippy
script:
- cargo clippy
- JOBCACHE=5
deploy:
- provider: pages
repo: RustPython/demo
target-branch: master
local-dir: wasm/demo/dist
skip-cleanup: true
# Set in the settings page of your repository, as a secure variable
github-token: $WEBSITE_GITHUB_TOKEN
keep-history: true

- name: Code Coverage
language: python
python: 3.6
cache:
pip: true
# Because we're using the Python Travis environment, we can't use
# the built-in cargo cacher
directories:
- /home/travis/.cargo
- target
- pip
- cargo
script:
- tests/.travis-runner.sh
# Only do code coverage on master via a cron job.
if: branch = master AND type = cron
env:
- JOBCACHE=6
- TRAVIS_RUST_VERSION=nightly
- CODE_COVERAGE=true
- name: test WASM

- name: Test WASM
language: python
python: 3.6
cache:
pip: true
# Because we're using the Python Travis environment, we can't use
# the built-in cargo cacher
directories:
- /home/travis/.cargo
- target
- pip
- cargo
addons:
firefox: latest
install:
Expand All @@ -109,30 +139,5 @@ matrix:
script:
- wasm/tests/.travis-runner.sh
env:
- JOBCACHE=7
- TRAVIS_RUST_VERSION=stable
allow_failures:
- name: cargo-clippy

deploy:
- provider: pages
repo: RustPython/website
target-branch: master
local-dir: target/doc
skip-cleanup: true
# Set in the settings page of your repository, as a secure variable
github-token: $WEBSITE_GITHUB_TOKEN
keep-history: true
on:
branch: release
condition: $DEPLOY_DOC = true
- provider: pages
repo: RustPython/demo
target-branch: master
local-dir: wasm/demo/dist
skip-cleanup: true
# Set in the settings page of your repository, as a secure variable
github-token: $WEBSITE_GITHUB_TOKEN
keep-history: true
on:
branch: release
condition: $DEPLOY_DEMO = true
Loading