Skip to content

Let's update the demo site with the latest state of the art. #1107

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,240 commits into from
Jul 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1240 commits
Select commit Hold shift + click to select a range
eb234ca
Merge pull request #1021 from mkurnikov/speed-up-file-open
windelbouwman Jun 8, 2019
9592e94
Isolate determination of indentation into seperate method.
windelbouwman Jun 8, 2019
9d9fcfc
Removal of walrus operator.
windelbouwman Jun 8, 2019
cd61248
Merge branch 'master' into coolreader18/demo-repl-continuation
coolreader18 Jun 8, 2019
b0db7c1
Add RFC issue template
coolreader18 Jun 8, 2019
d45c632
Add incompatibility issue template
coolreader18 Jun 8, 2019
1b968e9
Merge pull request #1022 from RustPython/coolreader18/demo-repl-conti…
windelbouwman Jun 9, 2019
aa6b155
Merge branch 'master' of https://github.com/RustPython/RustPython int…
windelbouwman Jun 9, 2019
6767b4e
BytesIO First Pass
rmliddle Jun 9, 2019
6542d35
Optional args on new for Bytes/StringIO
rmliddle Jun 9, 2019
f76be43
str.isprintable
Jun 9, 2019
65d0093
Dont fail on '{!r}'.format(...)
alanjds Jun 9, 2019
68011df
Merge pull request #1024 from yanganto/str_isprintable
coolreader18 Jun 9, 2019
e19b674
FormatSpec got a preconversor:FormatPreconversor to handle !r, !s and !a
alanjds Jun 9, 2019
f0a2b4c
Apply the {!r} on str.format calls
alanjds Jun 9, 2019
854bacf
Fix the Rust tests
alanjds Jun 9, 2019
33885a8
Namespace added for objstr: get_value, PyStringRef
rmliddle Jun 10, 2019
740e838
Merge pull request #1027 from alanjds/format-bang
coolreader18 Jun 10, 2019
7ff59b2
Add _bootsrap.py as frozen module
palaviv Jun 1, 2019
e88d6ac
Add init_importlib
palaviv Jun 5, 2019
698044b
Add Module.__name__
palaviv Jun 5, 2019
f1af6b1
Include _bootstrap.py as str
palaviv Jun 7, 2019
f214588
Don't set __file__ for frozen modules
palaviv Jun 7, 2019
0d9a066
Add sys.meta_path
palaviv Jun 7, 2019
37b40c5
Add frozen _bootstrap_external.py
palaviv Jun 7, 2019
fbaff7f
Install external importers on init_importlib
palaviv Jun 7, 2019
a57f38b
Rename builtin io to _io
palaviv Jun 7, 2019
b0cccf3
Change os_details
palaviv Jun 7, 2019
58d9d9d
Add sys.path_hooks
palaviv Jun 7, 2019
7f61125
Use _bootstrap.py __import__
palaviv Jun 7, 2019
2817214
Remove unused imports
palaviv Jun 7, 2019
0e76dbb
Add needed methods to _thread
palaviv Jun 7, 2019
5c53e58
Print frozen import file name in stacktrace
palaviv Jun 7, 2019
6615e81
Collapse concat
palaviv Jun 8, 2019
fe0284a
Add new to objmodule and change __name__ to property
palaviv Jun 8, 2019
375790e
objmodule should have a dict
palaviv Jun 8, 2019
c8248c3
Expose __name__ in __dict__
palaviv Jun 9, 2019
5584733
Add sys.path_importer_cache
palaviv Jun 9, 2019
d9d0ea1
Fix os to _os in class
palaviv Jun 9, 2019
5df05d4
Add script dir to sys.path
palaviv Jun 9, 2019
b567464
Add ModuleNotFoundError to builtins
palaviv Jun 9, 2019
10828e0
Set sys.pycache_prefix to None
palaviv Jun 9, 2019
8dec522
compile source may be bytes
palaviv Jun 9, 2019
03735a6
Add optional parameters to compile
palaviv Jun 10, 2019
e1472f2
Add sys.dont_write_bytecode
palaviv Jun 10, 2019
603ef1a
Support from_list
palaviv Jun 10, 2019
0e320f9
Change comment to XXX
palaviv Jun 10, 2019
ea8e280
Simplify objmodule
palaviv Jun 11, 2019
50662c4
Merge pull request #968 from RustPython/walrus
windelbouwman Jun 11, 2019
1de9f73
Optimize already loaded modules
palaviv Jun 11, 2019
07c6a90
Update cargo dependencies
coolreader18 Jun 11, 2019
cb2fe65
Merge pull request #1014 from mkurnikov/cleanup-get-method-error-hand…
coolreader18 Jun 11, 2019
0282132
Merge pull request #1028 from RustPython/coolreader18/update-deps1
coolreader18 Jun 11, 2019
3f343af
Merge pull request #1018 from palaviv/imp3
windelbouwman Jun 12, 2019
45bb2bd
Split off bytecode compilation into a separate crate
coolreader18 Jun 13, 2019
c2502bf
Add doc comments and individual compile functions
coolreader18 Jun 13, 2019
bfd6145
Use RUSTPYTHONPATH in ouroboros instructions
coolreader18 Jun 13, 2019
8b894a1
Merge pull request #1029 from RustPython/coolreader18/rustpython_comp…
coolreader18 Jun 13, 2019
12a3028
Import all from_list in one __import__ call
palaviv Jun 13, 2019
4938c03
Improve compiler import
palaviv Jun 14, 2019
e61fa6d
Use Iterator to create from_list
palaviv Jun 14, 2019
60e7997
Support reversed on sequence
palaviv Jun 14, 2019
e592f3d
Add py_compile_bytecode! macro
coolreader18 Jun 14, 2019
9a09a92
Merge pull request #1030 from palaviv/import-from-list
coolreader18 Jun 14, 2019
8143b69
Change imp_get_frozen_object
coolreader18 Jun 14, 2019
d2cde9a
Use bincode to deserialize into a CodeObject
coolreader18 Jun 14, 2019
4d0eb06
Default source_path
coolreader18 Jun 14, 2019
7e68f99
Make Location's fields private again
coolreader18 Jun 14, 2019
7817cec
Merge pull request #1031 from palaviv/reversed
coolreader18 Jun 14, 2019
48966a7
Make py_compile_bytecode!() an expression
coolreader18 Jun 14, 2019
b5ba62f
Add lazy_static argument
coolreader18 Jun 15, 2019
241f519
Formatting
coolreader18 Jun 15, 2019
82f83ef
Support more open flags
palaviv Jun 14, 2019
92ad30e
Add mode argument to os.open
palaviv Jun 15, 2019
75c2e4a
Remove lazy_static, just store as a `CodeObject`
coolreader18 Jun 15, 2019
6b9bbf3
Change TODO
coolreader18 Jun 15, 2019
1814977
Add doc comments
coolreader18 Jun 16, 2019
d3927ff
Merge pull request #1033 from palaviv/open-flags
coolreader18 Jun 16, 2019
743adf1
Merge branch 'master' into coolreader18/comptime-pycompilation
coolreader18 Jun 16, 2019
ffeaf2d
Merge pull request #1034 from RustPython/coolreader18/comptime-pycomp…
windelbouwman Jun 16, 2019
b6b8f6e
Have stdlib::get_module_inits() use maplit::hashmap!
coolreader18 Jun 15, 2019
8b0089e
Merge pull request #1036 from RustPython/coolreader18/stdlib-mods-maplit
windelbouwman Jun 16, 2019
9b35219
Update bench.rs to use vm.compile()
coolreader18 Jun 16, 2019
b74b65d
Make CodeObject.source_path an Option<String>
coolreader18 Jun 15, 2019
8faab1f
Implement String, BytesIO with Cursor<Vec<u8>>
rmliddle Jun 17, 2019
73edde6
Merge pull request #1037 from RustPython/coolreader18/option-source_path
windelbouwman Jun 17, 2019
d74e126
Add parser for C printf-style format strings
michelhe Jun 14, 2019
f27265c
Add get_value for objtuple
michelhe Jun 11, 2019
fe6c148
Start implementing str.__mod__
michelhe Jun 14, 2019
481b044
Support modulo formatting of numbers and string types
michelhe Jun 15, 2019
dc77728
cformat: Add some unittests.
michelhe Jun 15, 2019
d5ffece
objstr: Improve errors for modulo format
michelhe Jun 15, 2019
e374aff
Support '*' for width and precsision for printf-style formatting
michelhe Jun 15, 2019
8e880b9
cformat: Fix a bug when formatting unicode strings
michelhe Jun 16, 2019
8d612f3
Add %c formatting
michelhe Jun 16, 2019
5d38b9b
Simplify error handling for CFormatString::from_str
michelhe Jun 16, 2019
fca4178
Avoid unnecessary allocation in modulo formatting
michelhe Jun 17, 2019
6fe2c43
Move lambda to its own function in do_cformat
michelhe Jun 17, 2019
adccfa6
Fix bugs when parsing format specifiers with key mappings.
michelhe Jun 17, 2019
64af5c4
Add some test snippets for modulo string formatting
michelhe Jun 17, 2019
0f73c74
Merge pull request #1032 from michelhe/printf-like-string-formatting
windelbouwman Jun 17, 2019
700d7d4
Add os.rename
palaviv Jun 18, 2019
2f408f2
Add conversion from io::Error to OSError
palaviv Jun 18, 2019
9ee1ad9
Test os.rename
palaviv Jun 18, 2019
17cd22b
Test OSError errno
palaviv Jun 18, 2019
a8d8019
Move PyObject serialization to its own file
coolreader18 Jun 18, 2019
9ac854a
Use serde_wasm_bindgen for wasm ser/de
coolreader18 Jun 18, 2019
7554dfa
Merge pull request #1042 from palaviv/os-replace
coolreader18 Jun 18, 2019
e68b494
Add #[pyclassmethod] to #[pyimpl]
coolreader18 Jun 19, 2019
974dc68
support unicode literal
Jun 15, 2019
30979d9
Merge pull request #1043 from yanganto/feat/unicode-iterals
windelbouwman Jun 19, 2019
0ac42ac
Add convenience functions
coolreader18 Jun 19, 2019
86b8c07
Update Cargo.lock
coolreader18 Jun 20, 2019
cb832e9
Improve errors messages for derive(FromArgs)
coolreader18 Jun 20, 2019
aefbae4
Revert "Make CodeObject.source_path an Option<String>"
coolreader18 Jun 20, 2019
c359c43
Add set_file_attr to import_codeobj
coolreader18 Jun 21, 2019
e96a701
Updates BytesIO to use "BufferedIO"
rmliddle Jun 21, 2019
ba8b733
Merge pull request #1044 from RustPython/coolreader18/ser_de-own-module
coolreader18 Jun 21, 2019
c972e7c
Remove a mistakenly commited debug print
michelhe Jun 21, 2019
650139b
Merge pull request #1048 from RustPython/revert-1037-coolreader18/opt…
coolreader18 Jun 21, 2019
9bb5dcc
Merge pull request #1051 from michelhe/get-rid-of-debug-print
coolreader18 Jun 21, 2019
61b2687
Add rustpython_vm::__exports module and fix warning
coolreader18 Jun 17, 2019
56bcb02
Add _js module and fix imports
coolreader18 Jun 17, 2019
93cdd94
Add browser.py module
coolreader18 Jun 17, 2019
5627ab2
Add PyJsValue::construct()
coolreader18 Jun 17, 2019
a3735da
Move confirm and prompt to browser.py
coolreader18 Jun 18, 2019
886f77b
Add PyJsValue::instanceof
coolreader18 Jun 18, 2019
072c872
Fix get_prop on primitives
coolreader18 Jun 19, 2019
8cf38f5
Move classmethods on JsValue to be normal methods
coolreader18 Jun 19, 2019
298b05d
Don't convert errors from js to python
coolreader18 Jun 19, 2019
658b6ca
Fix errors
coolreader18 Jun 19, 2019
2f75562
Merge pull request #1045 from RustPython/coolreader18/pyclassmethod-attr
windelbouwman Jun 22, 2019
ed63ebd
Added the python zen module.
windelbouwman Jun 22, 2019
0f0a936
Updated StringIO to use "StringIO"
rmliddle Jun 23, 2019
026958a
Resolved merge conflict
rmliddle Jun 23, 2019
9bc392c
removed duplicate c_flag function
rmliddle Jun 23, 2019
f2922e3
add bytearray and bytes input types for ord()
chanramen Jun 23, 2019
fee9c99
Merge pull request #1026 from rmliddle/BytesIO
windelbouwman Jun 23, 2019
eeb7551
Merge pull request #1039 from RustPython/coolreader18/wasm-_js-module
windelbouwman Jun 23, 2019
a5276df
Support relative import
palaviv Jun 21, 2019
ae52596
Test relative import
palaviv Jun 21, 2019
e8c0644
Test relative import from upper level
palaviv Jun 21, 2019
bb9d697
Merge pull request #1053 from RustPython/zen
palaviv Jun 23, 2019
7effca3
added tests for ord() in tests/snippets
chanramen Jun 23, 2019
ba88716
Merge pull request #1049 from RustPython/coolreader18/fromargs-span-e…
windelbouwman Jun 23, 2019
3085ead
Merge pull request #1055 from romab1998/feature/ord_bytes_bytearray
coolreader18 Jun 24, 2019
cd1d7b1
add args attribute to exceptions, make __str__ and __repr__ compatibl…
mkurnikov Jun 24, 2019
ff1049a
fix regression in the exception representation in the traceback
mkurnikov Jun 24, 2019
82101d9
rename exc_repr -> exc_name to better describe what it refers to
mkurnikov Jun 24, 2019
060cd75
simplify exception_repr a bit
mkurnikov Jun 24, 2019
1e53e6c
specify python 3.6 specifically as a Pipfile venv target
mkurnikov Jun 24, 2019
8852abc
make exception __repr__ compatible with python3.6
mkurnikov Jun 24, 2019
da4c0bc
pass local variables to __import__ only if there is a frame
palaviv Jun 25, 2019
725cfcc
compute_c_flag ignore chars after first
palaviv Jun 25, 2019
dc7eb24
Support fileno as name in FileIO
palaviv Jun 25, 2019
6d5f381
Merge pull request #1056 from mkurnikov/args-in-exceptions
coolreader18 Jun 25, 2019
c96680a
Merge pull request #1050 from palaviv/relative-import
coolreader18 Jun 25, 2019
4db83ac
Add initial unicodedata module.
windelbouwman Jun 26, 2019
9e194b3
Add endianness support to struct module.
windelbouwman Jun 26, 2019
8cdf19c
FileIO.write support ByteArray
palaviv Jun 25, 2019
f2dff1c
Add EOFError
palaviv Jun 26, 2019
1f9fa72
Merge pull request #1063 from palaviv/eof-error
coolreader18 Jun 26, 2019
c78c95f
Add CPython library modules needed for unittest
coolreader18 Jun 26, 2019
0642412
Merge pull request #1057 from RustPython/coolreader18/cpython-libs2
windelbouwman Jun 26, 2019
848714e
save passed object into the first .args parameter for dict/mappingpro…
mkurnikov Jun 26, 2019
0a369d8
Add initial hashlib module.
windelbouwman Jun 27, 2019
4959361
Give more information in the error messages for failed wasm tests
coolreader18 Jun 27, 2019
d44350d
Make vm.import more clear
coolreader18 Jun 27, 2019
da39dde
Merge pull request #1062 from palaviv/file-io-fd
palaviv Jun 28, 2019
3c54494
Merge pull request #1054 from mkurnikov/keyerror-cpython
palaviv Jun 28, 2019
7d2c4b6
memoryview support __getitem__
palaviv Jun 28, 2019
5a8613c
Add tests for memoryview
palaviv Jun 28, 2019
a3dc98d
Add empty _imp._fix_co_filename
palaviv Jun 28, 2019
212522a
Merge pull request #1068 from palaviv/imp-_fix_co_filename
coolreader18 Jun 28, 2019
1dc5daa
Fix TestWithTempDir test to pass on Mac
hannut91 Jun 29, 2019
1e568f1
Implement int.__rmod__
JimJeon Jun 29, 2019
91d901a
Add tuple.__rmul__
hannut91 Jun 29, 2019
57de0eb
Merge pull request #1061 from RustPython/xdrlib
windelbouwman Jun 29, 2019
32be3bc
Merge pull request #1071 from hannut91/add-resolve-path
palaviv Jun 29, 2019
1035591
sys.byteorder: Implement sys.byteorder
corona10 Jun 29, 2019
b1aa10d
Fix complex representation for negative imaginary number case.
corona10 Jun 29, 2019
87d866d
Implement os.lstat
sanxiyn Jun 29, 2019
5172a09
Changed function name to rmod
JimJeon Jun 29, 2019
18a49d1
Merge pull request #1077 from hannut91/add-tuple-rmul
windelbouwman Jun 29, 2019
09823a0
Merge pull request #1078 from corona10/sys.byteorder
windelbouwman Jun 29, 2019
f4d63c9
Switch to better supported crypto lib.
windelbouwman Jun 29, 2019
5f3e5e1
Disable code coverage on all branches except the master branch.
windelbouwman Jun 29, 2019
0a242b6
Merge pull request #1067 from palaviv/memoryview-slice
windelbouwman Jun 29, 2019
ddc24d6
Add xdrlib.py
windelbouwman Jun 29, 2019
0d8d2e3
Calculate import level at parsing
palaviv Jun 29, 2019
c060086
Merge pull request #1081 from RustPython/travis-config
windelbouwman Jun 29, 2019
d185f53
Merge pull request #1079 from sanxiyn/os-lstat
windelbouwman Jun 29, 2019
8c318dc
Add "Ellipsis" for Ellipsis
corona10 Jun 29, 2019
df31abe
Merge branch 'master' of https://github.com/RustPython/RustPython int…
windelbouwman Jun 29, 2019
e88f753
Improve single arm match.
windelbouwman Jun 29, 2019
d0de3be
fix float–int cross-type comparisons
silmeth Jun 29, 2019
c7004f7
Merge pull request #1070 from corona10/ellipsis
windelbouwman Jun 29, 2019
ed73702
Merge pull request #1082 from RustPython/xdrlib
palaviv Jun 29, 2019
546c1c0
Merge pull request #1083 from palaviv/parse-level
palaviv Jun 29, 2019
4bf317c
Merge pull request #1076 from corona10/complex_repr
palaviv Jun 29, 2019
4d5b4f5
Use new_import_error, fix serve command
coolreader18 Jun 28, 2019
ae684e3
Merge pull request #1065 from RustPython/coolreader18/wasm-test-trace…
windelbouwman Jun 30, 2019
f0715fe
Simplify travis config.
windelbouwman Jun 30, 2019
598a0a9
Simplify travis config further.
windelbouwman Jun 30, 2019
f0492ee
Merge pull request #1084 from silmeth/int-float-comparison
windelbouwman Jun 30, 2019
7ab5d53
update to newer version of DynDigest trait which allows clone.
windelbouwman Jun 30, 2019
a332b74
Merge pull request #1064 from RustPython/cryptomods
windelbouwman Jun 30, 2019
183415e
Move bytecode into own crate.
windelbouwman Jun 30, 2019
e40c844
Make bytecode crate independent of parser crate.
windelbouwman Jun 30, 2019
f1d250b
Merge branch 'master' of https://github.com/RustPython/RustPython int…
windelbouwman Jun 30, 2019
5dddd02
improve (de)serialization: no crash on BigInts, non-string map keys
silmeth Jun 30, 2019
6ba3553
Merge pull request #1089 from silmeth/serialization
coolreader18 Jun 30, 2019
49f3bf7
Fix locals and globals in call to __import__
palaviv Jun 30, 2019
602e4b7
Merge pull request #1085 from RustPython/travis-configs
coolreader18 Jun 30, 2019
36adf45
Merge pull request #1086 from RustPython/bytecode-crate
windelbouwman Jun 30, 2019
3954dbe
Make parser and compiler optional features for vm crate.
windelbouwman Jun 30, 2019
f816a50
Change get_row() into row()
windelbouwman Jun 30, 2019
5b534ad
Merge pull request #1091 from palaviv/fix-import
windelbouwman Jun 30, 2019
13be2cf
Merge master branch
windelbouwman Jun 30, 2019
2f1d4a8
Fix with rustfmt
JimJeon Jul 1, 2019
fbd0c59
Merge pull request #1074 from JimJeon/feature/rmod
coolreader18 Jul 1, 2019
dfabd4a
Merge pull request #1093 from RustPython/getrow
coolreader18 Jul 1, 2019
307990d
Add module listing to whats_left.sh
coolreader18 Jul 1, 2019
982b2f2
Add comment to not_impl_gen.py
coolreader18 Jul 1, 2019
f8cf39e
Change sys.path in not_impl_gen.py
coolreader18 Jul 1, 2019
9262585
Allow specifying sections for whats_left.sh
coolreader18 Jul 1, 2019
e05a75c
Merge pull request #1092 from RustPython/bytecode-crate
windelbouwman Jul 1, 2019
4a108c1
Merge pull request #1059 from RustPython/unicodedata
windelbouwman Jul 1, 2019
bedbad2
Change underscore into hyphen
windelbouwman Jul 1, 2019
6a58b76
Change authors to team name.
windelbouwman Jul 1, 2019
3668250
Show module attributes missing
coolreader18 Jul 1, 2019
8162b87
Do not pollute stack when if-expression condition evaluated to False
mkurnikov Jul 3, 2019
96f6646
Merge pull request #1098 from mkurnikov/pass-if-expression-to-function
coolreader18 Jul 3, 2019
6b018a0
Merge pull request #1096 from RustPython/underscore2hyphen
coolreader18 Jul 3, 2019
090cfed
Use importlib import in WASM
palaviv Jul 3, 2019
f34f16b
Merge pull request #1095 from RustPython/coolreader18/whats_left-modules
coolreader18 Jul 3, 2019
df53d55
Merge pull request #1101 from palaviv/wasm-importlib
windelbouwman Jul 3, 2019
9ce5240
add name, path, msg attributes to ImportError
mkurnikov Jul 3, 2019
72febb7
Merge pull request #1103 from mkurnikov/importerror-attributes
coolreader18 Jul 3, 2019
ee4ee54
Use vm.import when running with -m
palaviv Jun 30, 2019
42d1713
Remove old import
palaviv Jul 3, 2019
bb30d0f
Don't install external imports if there is no compiler
palaviv Jul 4, 2019
f740845
Use vm.class
palaviv Jul 4, 2019
f8e8a12
Merge pull request #1102 from palaviv/clean-import
coolreader18 Jul 4, 2019
2edba36
Allow skipping of unknown modules
palaviv Jul 4, 2019
22c0b08
Merge pull request #1105 from palaviv/skip-modules
coolreader18 Jul 4, 2019
6239fe0
Remove importlib frames from traceback
palaviv Jul 4, 2019
c70748f
Use filter
palaviv Jul 6, 2019
251e33a
Add TODO on verbose
palaviv Jul 6, 2019
a099ba5
Merge pull request #1104 from palaviv/remove-importlib-frames
windelbouwman Jul 6, 2019
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
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/report-incompatibility.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Report incompatibility
about: Report an incompatibility between RustPython and CPython
title: ''
labels: feat
assignees: ''

---

## Feature

<!-- What Python feature is missing from RustPython? Give a short description of the feature and how you ran into its absence. -->

## Python Documentation

<!-- Give a link to the feature in the CPython documentation (https://docs.python.org/3/) in order to assist in its implementation. -->
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/rfc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: RFC
about: Make a suggestion in a Request for Comments format to RustPython
title: "[RFC] "
labels: RFC
assignees: ''

---

## Summary

<!-- A quick overview of your suggestion -->

## Detailed Explanation

<!-- Elaborate on your suggestion in all its details -->

## Drawbacks, Rationale, and Alternatives

<!-- What drawbacks might this solution have? Why do you feel it is necessary? What other options might there be to solving this problem? -->

## Unresolved Questions

<!-- What would you like feedback on for fleshing out your suggestion? -->
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ __pycache__
.vscode
wasm-pack.log
.idea/
tests/snippets/resources
55 changes: 14 additions & 41 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
language: rust

rust:
- stable
- beta
- nightly

script:
- cargo build --verbose --all
- cargo test --verbose --all

env:
# This is used to only capture the regular nightly test in allow_failures
- REGULAR_TEST=true

rust: stable
cache: cargo

matrix:
fast_finish: true
include:
- name: rust unittests and doctests
language: rust
rust: stable
cache: cargo
script:
- cargo build --verbose --all
- cargo test --verbose --all

# To test the snippets, we use Travis' Python environment (because
# installing rust ourselves is a lot easier than installing Python)
- language: python
- name: python test snippets
language: python
python: 3.6
cache:
pip: true
Expand All @@ -31,21 +27,6 @@ matrix:
- target
env:
- TRAVIS_RUST_VERSION=stable
- REGULAR_TEST=false
- CODE_COVERAGE=false
script: tests/.travis-runner.sh
- 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
env:
- TRAVIS_RUST_VERSION=beta
- REGULAR_TEST=false
- CODE_COVERAGE=false
script: tests/.travis-runner.sh
- name: rustfmt
Expand All @@ -61,8 +42,6 @@ matrix:
# creates.)
- echo > parser/src/python.rs
- cargo fmt --all -- --check
env:
- REGULAR_TEST=false
- name: publish documentation
language: rust
rust: stable
Expand All @@ -71,11 +50,10 @@ matrix:
- cargo doc --no-deps --all
if: branch = release
env:
- REGULAR_TEST=false
- DEPLOY_DOC=true
- name: WASM online demo
language: rust
rust: nightly
rust: stable
cache: cargo
install:
- nvm install node
Expand All @@ -87,7 +65,6 @@ matrix:
- npm run dist
if: branch = release
env:
- REGULAR_TEST=false
- DEPLOY_DEMO=true
- name: cargo-clippy
language: rust
Expand All @@ -97,8 +74,6 @@ matrix:
- rustup component add clippy
script:
- cargo clippy
env:
- REGULAR_TEST=true
- name: Code Coverage
language: python
python: 3.6
Expand All @@ -111,9 +86,10 @@ matrix:
- target
script:
- tests/.travis-runner.sh
# Only do code coverage on master via a cron job.
if: branch = master AND type = cron
env:
- TRAVIS_RUST_VERSION=nightly
- REGULAR_TEST=false
- CODE_COVERAGE=true
- name: test WASM
language: python
Expand All @@ -133,11 +109,8 @@ matrix:
script:
- wasm/tests/.travis-runner.sh
env:
- REGULAR_TEST=true
- TRAVIS_RUST_VERSION=stable
allow_failures:
- rust: nightly
env: REGULAR_TEST=true
- name: cargo-clippy

deploy:
Expand Down
Loading