Matthew Krupcale
71d96e813f
Use Z option for docker-run volume mount
...
This is necessary on systems with SELinux to prevent file permission/access errors when building WASM output
* cli/src/wasm.rs: Use Z volume mount option for docker-run
* script/build-wasm: Likewise.
2019-06-29 15:49:25 -04:00
Max Brunsfeld
177ba49e57
Add script for dumping the sizes of each symbol in a dynamic library
2019-06-16 11:17:53 -07:00
Paul Young
15bf75a2f9
Fix ALLOW_MEMORY_GROWTH setting
...
Fixes ERROR:root:ALLOW_MEMORY_GROWTH: No such file or directory ("ALLOW_MEMORY_GROWTH" was expected to be an input file, based on the commandline arguments provided) according to https://emscripten.org/docs/optimizing/Optimizing-Code.html#memory-growth
2019-06-04 17:17:25 -07:00
Max Brunsfeld
f5163126c8
generate-fixtures-wasm: handle language repos w/ multiple grammars
...
Refs tree-sitter/tree-sitter-typescript#68
2019-05-30 12:34:03 -07:00
Max Brunsfeld
314f3fa00c
generate-fixtures: handle language repos that contain multiple grammars
...
Refs tree-sitter/tree-sitter-typescript#68
2019-05-30 12:00:12 -07:00
Max Brunsfeld
ae41a78d3c
Discard local emsdk changes when fetching emscripten on CI
2019-05-22 10:41:19 -07:00
Max Brunsfeld
70038bd251
Build wasm lib with -O3
...
There doesn't seem to be much code size difference, but there's
a big performance difference.
2019-05-17 12:50:00 -07:00
Max Brunsfeld
ad43b211f4
Allow building the wasm libs with native emscripten instead of docker
...
And build them on the mac CI as well as the linux CI
2019-05-14 14:02:22 -07:00
Max Brunsfeld
b069e75149
Use branches of fixture repos with the new highlight API
2019-05-10 09:18:39 -07:00
Max Brunsfeld
9a82bd9d83
Set up code to publish web bindings to npm
2019-05-07 13:11:04 -07:00
Max Brunsfeld
3fc459a84b
Reorganize language bindings
...
* Move rust binding: lib/binding -> lib/binding_rust
* Move wasm bindinig: lib/web -> lib/binding_web
* Add wasm readme
2019-05-07 10:41:49 -07:00
Max Brunsfeld
a6a50a6320
Avoid some bloat in wasm build
2019-05-01 12:44:58 -07:00
Max Brunsfeld
3425b6e1c2
Add wasm binding for TreeCursor
2019-04-29 13:20:09 -07:00
Chris Wendt
cff9c16ccc
Increase memory limit for language wasm files (continued)
2019-04-28 14:08:40 -07:00
Max Brunsfeld
f3ecafe13b
Fix inclusion of libc++ in wasm build
2019-04-27 18:06:34 -07:00
Max Brunsfeld
b4c4dc48ff
Minify JS build with terser
2019-04-26 19:52:01 -07:00
Max Brunsfeld
66e006105c
Build and test wasm on CI
2019-04-26 14:38:13 -07:00
Max Brunsfeld
e39d69dfa7
Add a playground to the docs site
2019-04-26 13:36:28 -07:00
Max Brunsfeld
1fc0525940
Start work on a WASM binding
2019-04-25 17:27:39 -07:00
Max Brunsfeld
5035e194ff
Merge branch 'master' into node-fields
2019-03-26 11:58:21 -07:00
Max Brunsfeld
cfa474b82a
test script: Find test binary correctly when -g is passed
2019-03-21 11:23:30 -07:00
Max Brunsfeld
8a675d184c
test script: All tests are in the CLI package
2019-03-12 17:14:41 -07:00
Max Brunsfeld
f52271352b
Merge branch 'master' into node-fields
2019-03-05 08:08:05 -08:00
Max Brunsfeld
4e059e18cb
0.14.5
2019-02-25 12:55:28 -08:00
Max Brunsfeld
18a13b457d
Get basic field API working
2019-02-08 15:16:56 -08:00
Max Brunsfeld
7f66d2406f
test script: Tell cargo which package has the tests
2019-02-08 15:16:56 -08:00
Max Brunsfeld
6d6e29f2dc
Add usage info to version script
2019-02-06 11:56:12 -08:00
Phil Turnbull
d102c473e8
Remove invalid characters from grammar names
2019-02-05 13:37:59 +00:00
Phil Turnbull
ce040e21e1
trace-pc-guard is unsupported in newer versions of clang
2019-02-05 13:35:30 +00:00
Max Brunsfeld
6ca1047bb0
Remove ci shell script
2019-02-01 20:19:38 -08:00
Max Brunsfeld
91da7206b7
Clean up environment variables after windows batch scripts
2019-02-01 15:54:34 -08:00
Max Brunsfeld
4cac85fec4
Add benchmark script
...
* Structure `cli` crate as both a library and an executable, so that
benchmarks can import code from the crate.
* Import macros in the Rust 2018 style.
2019-02-01 15:17:35 -08:00
Max Brunsfeld
8e198016d8
Try to make build-fuzzers script work w/ new structure & build process
2019-01-27 21:17:31 -08:00
Max Brunsfeld
5927e104c2
Check tree consistency in randomized tests
2019-01-26 22:22:29 -08:00
Max Brunsfeld
5a12fbd927
Verify changed ranges in randomized tests
2019-01-25 15:20:34 -08:00
Max Brunsfeld
233d616ebf
Add random mutation tests
2019-01-25 12:05:21 -08:00
Max Brunsfeld
71357afb2f
Add version script
2019-01-17 15:59:12 -08:00
Max Brunsfeld
a8292f4fe9
Load all fixture grammars dynamically
...
This way the build doesn't take forever any time a single grammar has
been regenerated.
2019-01-15 13:21:48 -08:00
Max Brunsfeld
5c3c1dd0bd
Get logging flags working properly with test script
2019-01-15 13:21:48 -08:00
Max Brunsfeld
b1fa49448d
Regenerate parsers on CI
2019-01-14 15:09:54 -08:00
Max Brunsfeld
fab4673c14
Get fixture grammars building for library unit tests
2019-01-10 15:48:13 -08:00
Max Brunsfeld
0f2347b318
Just call the C lib 'the library' everywhere, don't call it a 'runtime'
2019-01-10 15:22:39 -08:00
Max Brunsfeld
98807d2053
Add debug and debug-graph flags to parse and test commands
2019-01-08 21:03:51 -08:00
Max Brunsfeld
f059557a9d
Move parser generation code in to 'generate' module within CLI crate
2019-01-07 10:23:01 -08:00
Max Brunsfeld
dd416b0955
Update include paths to not reference 'runtime' directory
2019-01-04 17:33:34 -08:00
Max Brunsfeld
47607cecf4
Reorganize repo, add rust CLI and binding code,
2019-01-04 17:31:49 -08:00
Max Brunsfeld
d79203f58c
Add test script
2018-12-13 16:42:46 -08:00
mpsijm
e0bcb27943
Pipe output of which (hash) to /dev/null
2018-11-20 22:52:44 +01:00
mpsijm
01fef6d81f
Remove -s option from which in test script
...
When I tried running the tests with a debugger, the script failed with the following message:
Illegal option -s
Usage: /usr/bin/which [-a] args
Illegal option -s
Usage: /usr/bin/which [-a] args
No debugger found
In case this `-s` flag is needed for other OSes than Linux (I'm working with Ubuntu 18.04), this could be based on a `uname` check (like on line 44).
2018-11-20 10:33:48 +01:00
Max Brunsfeld
87c391f8af
Use hash instead of which
2018-11-13 15:56:03 -08:00