| 123456789101112131415161718192021 |
- FROM rust:latest
-
- # Copy a source code
- COPY web-client /build/web-client
- COPY near-client /build/near-client
- COPY common-api /build/common-api
-
- WORKDIR /build/web-client
-
- # Install the latest wasm-pack
- RUN cargo install wasm-pack
- RUN apt-get update && apt-get upgrade -y
-
- # Install chrome and driver for headless tesitng
- RUN apt-get install -y chromium
- RUN apt-get install -y chromium-driver
-
- ENV WASM_BINDGEN_TEST_TIMEOUT=120
-
- # Run tests
- CMD wasm-pack test --headless --chrome --test integration
|