diff options
| author | Damien George <damien@micropython.org> | 2021-06-24 10:09:57 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2021-06-25 11:31:00 +1000 |
| commit | 2dc4f843bcadeeeeda3f2af81dd700733babe5eb (patch) | |
| tree | 7f9f7dd08c6bd8a1f5658a27f13c4ba3063ab725 /tools | |
| parent | c13853f4dab9c65ee6d1af99b25f999b16ef2827 (diff) | |
github/workflows: Add workflow to build and test javascript port.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/ci.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/ci.sh b/tools/ci.sh index 6d7c643f5..a82eedd20 100755 --- a/tools/ci.sh +++ b/tools/ci.sh @@ -139,6 +139,24 @@ function ci_esp8266_build { } ######################################################################################## +# ports/javascript + +function ci_javascript_setup { + git clone https://github.com/emscripten-core/emsdk.git + (cd emsdk && ./emsdk install latest && ./emsdk activate latest) +} + +function ci_javascript_build { + source emsdk/emsdk_env.sh + make ${MAKEOPTS} -C ports/javascript +} + +function ci_javascript_run_tests { + # This port is very slow at running, so only run a few of the tests. + (cd tests && MICROPY_MICROPYTHON=../ports/javascript/node_run.sh ./run-tests.py -j1 basics/builtin_*.py) +} + +######################################################################################## # ports/mimxrt function ci_mimxrt_setup { |
