forked from nical/lyon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (31 loc) · 801 Bytes
/
.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
language: rust
env:
- RUST_BACKTRACE=1
# from the rustwasm/wasm-bindgen github repository:
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
matrix:
include:
# Stable tests
- rust: stable
env:
- RUST_BACKTRACE=1
script:
- cargo test --all
# Nightly tests
- rust: nightly
env:
- RUST_BACKTRACE=1
script:
- cargo test --all
# Wasm tests
- rust: nightly
install: *INSTALL_NODE_VIA_NVM
env:
- RUST_BACKTRACE=1
script:
- cd wasm_test && cargo +nightly build --target wasm32-unknown-unknown && node test.js