Only package spawn chain on Linux wasm32
It is redundant to also do it on macOS and slower since npm isn't part
of the macOS image while it is in the docker image.
@@ -54,6 +54,15 @@ wasm32_task_template: &WASM32_TASK_TEMPLATE
pushd examples/spawn-chain
wasm-pack test --headless --chrome
popd
+
+task:
+ name: Linux wasm32
+ container:
+ image: kronicdeth/lumen-development:latest
+ linux_wasm32_cargo_cache:
+ folder: $CARGO_HOME/registry
+ fingerprint_script: cat Cargo.lock
+ << : *WASM32_TASK_TEMPLATE
examples_spawn_chain_package_script: |
pushd examples/spawn-chain
pushd www
@@ -71,15 +80,6 @@ wasm32_task_template: &WASM32_TASK_TEMPLATE
path: "examples/spawn-chain/www/dist/*"
before_cache_script: rm -rf $CARGO_HOME/registry/index
-task:
- name: Linux wasm32
- container:
- image: kronicdeth/lumen-development:latest
- linux_wasm32_cargo_cache:
- folder: $CARGO_HOME/registry
- fingerprint_script: cat Cargo.lock
- << : *WASM32_TASK_TEMPLATE
-
task:
osx_instance:
image: high-sierra-base
@@ -105,4 +105,5 @@ task:
rm chromedriver_mac64.zip
chromedriver --version
<< : *WASM32_TASK_TEMPLATE
+ before_cache_script: rm -rf $CARGO_HOME/registry/index
