kopia lustrzana https://github.com/micropython/micropython
tools/ci.sh: Update webassembly CI tests.
Signed-off-by: Damien George <damien@micropython.org>pull/13583/head
rodzic
c1513a078d
commit
badc0106bd
|
@ -178,18 +178,19 @@ function ci_esp8266_build {
|
||||||
# ports/webassembly
|
# ports/webassembly
|
||||||
|
|
||||||
function ci_webassembly_setup {
|
function ci_webassembly_setup {
|
||||||
|
npm install terser
|
||||||
git clone https://github.com/emscripten-core/emsdk.git
|
git clone https://github.com/emscripten-core/emsdk.git
|
||||||
(cd emsdk && ./emsdk install latest && ./emsdk activate latest)
|
(cd emsdk && ./emsdk install latest && ./emsdk activate latest)
|
||||||
}
|
}
|
||||||
|
|
||||||
function ci_webassembly_build {
|
function ci_webassembly_build {
|
||||||
source emsdk/emsdk_env.sh
|
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 {
|
function ci_webassembly_run_tests {
|
||||||
# This port is very slow at running, so only run a few of the tests.
|
make -C ports/webassembly VARIANT=pyscript test_min
|
||||||
(cd tests && MICROPY_MICROPYTHON=../ports/webassembly/node_run.sh ./run-tests.py -j1 basics/builtin_*.py)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
########################################################################################
|
########################################################################################
|
||||||
|
|
Ładowanie…
Reference in New Issue