-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (47 loc) · 1.33 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
language: rust
rust:
- stable
- beta
- nightly
cache: cargo
jobs:
include:
- stage: lint
rust: stable
cache: cargo
install:
- rustup component add clippy
script:
- cargo clippy --all -- --deny clippy::all
- stage: format
rust: stable
install:
- rustup component add rustfmt
script:
- cargo fmt --all -- --check
- stage: deploy
branches:
only:
- master
rust: stable
install:
- rustup target add wasm32-unknown-unknown
- bash <(curl https://gist.githubusercontent.com/janbaudisch/8074416b864dc357145e649449acb42d/raw/74f6c3d3bdca8b41fd0617e8992c078aec80966d/install-cargo-web.sh)
script:
- cargo doc -p heron --no-deps --release
- cargo web build -p heron_web --release
- mv target/doc dist
- mkdir dist/demo
- mv target/wasm32-unknown-unknown/release/heron_web.{js,wasm} dist/demo
- cp heron_web/static/index.html dist/demo
- cp heron_web/static/style.css dist/demo
- cp .travis/CNAME dist/CNAME
deploy:
provider: pages
local-dir: dist
skip-cleanup: true
github-token: $GITHUB_TOKEN
name: flyingB0tat0
email: bot@baudisch.xyz
keep-history: false
allow-empty-commit: true