You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021
  1. FROM rust:latest
  2. # Copy a source code
  3. COPY web-client /build/web-client
  4. COPY near-client /build/near-client
  5. COPY common-api /build/common-api
  6. WORKDIR /build/web-client
  7. # Install the latest wasm-pack
  8. RUN cargo install wasm-pack
  9. RUN apt-get update && apt-get upgrade -y
  10. # Install chrome and driver for headless tesitng
  11. RUN apt-get install -y chromium
  12. RUN apt-get install -y chromium-driver
  13. ENV WASM_BINDGEN_TEST_TIMEOUT=120
  14. # Run tests
  15. CMD wasm-pack test --headless --chrome --test integration