-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (55 loc) · 1.59 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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 10
# Cache `cargo install`ed tools, but don't cache the project's `target`
# directory (which ends up over-caching and filling all disk space!)
cache:
directories:
- /home/travis/.cargo
script:
- cargo build --verbose --all
- cargo test --verbose --all
jobs:
allow_failures:
- name: Tests
include:
- name: Page
rust: stable
before_script:
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -f
install:
- *INSTALL_NODE_VIA_NVM
script:
- mkdir -p docs
- rm -rf ./docs/*
- wasm-pack build
- cd www && npm install
- npm run build
- mv ./dist/* ../docs
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: docs
keep-history: false
- name: Tests
env: RUST_BACKTRACE=1
rust: stable
addons:
firefox: latest
chrome: stable
before_script:
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -f
install:
- *INSTALL_NODE_VIA_NVM
script:
- cargo test --all
- cargo test --all --target wasm32-unknown-unknown
notifications:
email:
on_success: never