forked from fitzgen/dodrio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (44 loc) · 1.39 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
language: rust
sudo: false
INSTALL_NODE_VIA_NVM: &INSTALL_NODE_VIA_NVM
|
rustup target add wasm32-unknown-unknown
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
source ~/.nvm/nvm.sh
nvm install v10.5
INSTALL_WASM_PPACK: &INSTALL_WASM_PACK
|
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -f
install:
- *INSTALL_NODE_VIA_NVM
- *INSTALL_WASM_PACK
- rustup target add wasm32-unknown-unknown
matrix:
include:
- name: "build (stable)"
rust: stable
script: INSTALL=1 ./build.sh
- name: "build (beta)"
rust: beta
script: INSTALL=1 ./build.sh
- name: "build (nightly)"
rust: nightly
script: INSTALL=1 ./build.sh
- name: "headless browser tests (firefox)"
rust: stable
addons:
firefox: latest
script: wasm-pack test --firefox --headless -- --features xxx-unstable-internal-use-only
- name: "headless browser tests (chrome)"
rust: stable
addons:
chrome: stable
script: wasm-pack test --chrome --headless -- --features xxx-unstable-internal-use-only
- name: "native tests"
rust: stable
install: echo "no install"
script: cargo test --all
- name: "check native benches"
rust: nightly
install: echo "no install"
script: cargo check --benches --features xxx-unstable-internal-use-only