yew/.travis.yml
Simon 4eb7916f94
Update tests to use wasm-pack (#1415)
* run tests using wasm-pack

* update contributing guide

* fix typo

* should probably install wasm-pack

* clarify manual webdriver installation

* Apply suggestions from code review

Had to do this again because I messed up my rebase, sorry!

Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>

* make capitalisation of WebDriver consistent

Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>
2020-07-19 15:57:04 +02:00

47 lines
987 B
YAML

branches:
only:
- staging
- trying
- master
dist: trusty
language: rust
sudo: false
addons:
firefox: latest
cache: cargo
before_cache:
- ./ci/clear_cache.sh
rust:
- 1.42.0 # min supported
- stable
- beta
services:
- docker
matrix:
allow_failures:
- rust: beta
fast_finish: true
before_install:
- docker run -d -p 8000:80 kennethreitz/httpbin@sha256:599fe5e5073102dbb0ee3dbb65f049dab44fa9fc251f6835c9990f8fb196a72b
install:
- nvm install 9
- rustup component add rustfmt
- rustup component add clippy
- rustup install stable
- rustup target add wasm32-unknown-unknown
- cargo +stable install wasm-pack
- curl --retry 5 -LO https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz
- tar -xzf geckodriver-v0.26.0-linux64.tar.gz
- ./ci/install_cargo_web.sh
script:
- ./ci/run_stable_checks.sh
- GECKODRIVER="$(pwd)/geckodriver" HTTPBIN_URL="http://localhost:8000" ./ci/run_tests.sh