Skip to content

Commit

Permalink
tools/ci.sh: Update webassembly CI tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Mar 22, 2024
1 parent c1513a0 commit badc010
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,18 +178,19 @@ function ci_esp8266_build {
# ports/webassembly

function ci_webassembly_setup {
npm install terser
git clone https://github.com/emscripten-core/emsdk.git
(cd emsdk && ./emsdk install latest && ./emsdk activate latest)
}

function ci_webassembly_build {
source emsdk/emsdk_env.sh
make ${MAKEOPTS} -C ports/webassembly
make ${MAKEOPTS} -C ports/webassembly VARIANT=pyscript submodules
make ${MAKEOPTS} -C ports/webassembly VARIANT=pyscript
}

function ci_webassembly_run_tests {
# This port is very slow at running, so only run a few of the tests.
(cd tests && MICROPY_MICROPYTHON=../ports/webassembly/node_run.sh ./run-tests.py -j1 basics/builtin_*.py)
make -C ports/webassembly VARIANT=pyscript test_min
}

########################################################################################
Expand Down

0 comments on commit badc010

Please sign in to comment.