2019-04-05 17:39:31 +00:00
|
|
|
release:
|
2019-03-05 15:45:40 +00:00
|
|
|
# Does an incremental build where possible.
|
|
|
|
./compile.sh
|
|
|
|
mkdir -p ./debugger/bin
|
|
|
|
cp ../../out/debugger_wasm/debugger.js ./debugger/bin
|
|
|
|
cp ../../out/debugger_wasm/debugger.wasm ./debugger/bin
|
|
|
|
|
2019-04-05 17:39:31 +00:00
|
|
|
debug:
|
|
|
|
# Does an incremental build where possible.
|
|
|
|
./compile.sh debug
|
|
|
|
mkdir -p ./debugger/bin
|
|
|
|
cp ../../out/debugger_wasm_debug/debugger.js ./debugger/bin
|
|
|
|
cp ../../out/debugger_wasm_debug/debugger.wasm ./debugger/bin
|
2019-04-09 16:07:18 +00:00
|
|
|
|
|
|
|
move-assets:
|
2019-04-05 17:39:31 +00:00
|
|
|
# assume the developer also has a checkout of buildbot here and wants to test the newly
|
|
|
|
# built wasm debugger with the interface.
|
|
|
|
cp ./debugger/bin/debugger.js ~/go/src/go.skia.org/infra/debugger-assets/res/js
|
|
|
|
cp ./debugger/bin/debugger.wasm ~/go/src/go.skia.org/infra/debugger-assets/res
|
|
|
|
|
|
|
|
# A barebones local example of the wasm module included in a page.
|
|
|
|
# for the real interface see
|
|
|
|
# https://github.com/google/skia-buildbot/blob/master/debugger-assets/res/imp/wasm-app.html
|
2019-03-05 15:45:40 +00:00
|
|
|
local-example:
|
|
|
|
rm -rf node_modules/debugger
|
|
|
|
mkdir -p node_modules
|
|
|
|
ln -s -T ../debugger node_modules/debugger
|
|
|
|
echo "Go check out http://localhost:8000/debugger/index.html"
|
|
|
|
python serve.py
|
|
|
|
|
|
|
|
test-continuous:
|
|
|
|
echo "Assuming npm install has been run by user"
|
|
|
|
echo "Also assuming make debug or release has also been run by a user (if needed)"
|
2019-03-15 14:58:31 +00:00
|
|
|
npx karma start ./karma.conf.js --no-single-run --watch-poll
|