Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Dockerize Jason's browser unit testing #56

Merged
merged 10 commits into from
Oct 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
RUST_LOG=debug

MEDEA_CONF=_dev/config.toml
MEDEA_CONTROL_STATIC_SPECS_DIR=_dev/specs/
MEDEA_CONTROL__STATIC_SPECS_DIR=_dev/specs/

COMPOSE_PROJECT_NAME=medea
COMPOSE_IMAGE_NAME=instrumentisto/medea
COMPOSE_IMAGE_VER=dev

CHROMEDRIVER_CLIENT_ARGS=--use-fake-device-for-media-stream --use-fake-ui-for-media-stream
26 changes: 16 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,25 @@ jobs:
rust: stable
script: make test.unit crate=medea

- name: unit medea-jason (nightly)
- name: unit medea-jason (stable, Chrome)
stage: test
# Run on stable when -Z install-upgrade is out,
# see: https://github.com/rust-lang/cargo/issues/6797
rust: nightly
addons:
chrome: stable
apt:
packages: ["chromium-chromedriver"]
rust: stable
services: ["docker"]
before_script:
- cargo uninstall wasm-bindgen-cli || echo > /dev/null
- cargo install wasm-bindgen-cli
- rustup target add wasm32-unknown-unknown
script: make test.unit crate=medea-jason browser=chrome

- name: unit medea-jason (stable, Firefox)
stage: test
rust: stable
services: ["docker"]
before_script:
- cargo +nightly install wasm-bindgen-cli -Z install-upgrade
- cargo uninstall wasm-bindgen-cli || echo > /dev/null
- cargo install wasm-bindgen-cli
- rustup target add wasm32-unknown-unknown
script: make test.unit crate=medea-jason
script: make test.unit crate=medea-jason browser=firefox

- name: E2E signalling (stable)
stage: test
Expand Down
Loading