forked from chinedufn/percy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml.old
61 lines (57 loc) · 2.31 KB
/
.travis.yml.old
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
language: rust
cache: cargo
sudo: false
INSTALL_DEPS: &INSTALL_DEPS
- rustup default nightly
- rustup target add wasm32-unknown-unknown
# Install wasm-bindgen-cli
- curl -OL https://github.com/rustwasm/wasm-bindgen/releases/download/0.2.33/wasm-bindgen-0.2.33-x86_64-unknown-linux-musl.tar.gz
- tar xf wasm-bindgen-0.2.33-x86_64-unknown-linux-musl.tar.gz
- chmod +x wasm-bindgen-0.2.33-x86_64-unknown-linux-musl/wasm-bindgen
- mv wasm-bindgen-0.2.33-x86_64-unknown-linux-musl/wasm-bindgen* ~/.cargo/bin/ # wasm-bindgen and wasm-bindgen-test-runner binaries
# Install wasm-pack
- curl -L https://github.com/rustwasm/wasm-pack/releases/download/v0.6.0/wasm-pack-v0.6.0-x86_64-unknown-linux-musl.tar.gz | tar --strip-components=1 --wildcards -xzf - "*/wasm-pack" && chmod +x wasm-pack && mv wasm-pack ~/.cargo/bin/
# Install Node.js
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
- source ~/.nvm/nvm.sh
- nvm install v10.5
# Install Geckodriver
- curl --retry 5 -LO https://github.com/mozilla/geckodriver/releases/download/v0.21.0/geckodriver-v0.21.0-linux64.tar.gz
- tar xf geckodriver-v0.21.0-linux64.tar.gz
matrix:
include:
# Tests pass on nightly
# TODO: Separate job for JSDOM WebAssembly tests and Rust unit tests
- rust: nightly
env: JOB=test-everything
before_install: *INSTALL_DEPS
install:
- npm install
script:
- GECKODRIVER=$(pwd)/geckodriver ./test.sh
addons:
firefox: latest
# Build documentation for the gh-pages branch
- rust: nightly
env: JOB=book-build-and-deploy
cache:
directories:
- $HOME/.cargo
before_script:
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
- (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.1" mdbook)
- cargo install-update -a
script:
- (cd book && mdbook build)
- cargo doc --no-deps -p virtual-dom-rs -p css-rs-macro -p html-macro
- mv target/doc book/book/api
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
local-dir: book/book
keep-history: false
if: branch = master
notifications:
email:
on_success: never