generated from seed-rs/seed-quickstart-webpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (39 loc) · 1.12 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
language: rust
rust:
- stable
os:
- linux
addons:
firefox: latest
install:
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
- source ~/.nvm/nvm.sh
- nvm install v10.5
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -f
- cargo install --force cargo-make # remove --force in the future (https://github.com/rust-lang/cargo/issues/6797)
- rustup install nightly
- rustup component add rustfmt --toolchain nightly
cache:
- yarn
- directories:
- node_modules
- $HOME/.cargo
# https://levans.fr/rust_travis_cache.html
before_cache:
- rm -rf $HOME/.cargo/registry
env:
global:
- RUST_BACKTRACE=1
script:
- yarn
- yarn build:prerender # change it to `yarn build:release` if you don't want to prerender pages
- cargo make --cwd ./crate verify_only # includes task `test_h_firefox`
before_deploy:
- yarn global add netlify-cli
deploy:
provider: script
script: netlify deploy -s $NETLIFY_SITE_ID --auth $NETLIFY_ACCESS_TOKEN -p --dir ./dist
skip_cleanup: true
on:
branch: master
condition: $TRAVIS_OS_NAME = linux