forked from Dylan-DPC-zz/learn-gfx-hal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (47 loc) · 1.13 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
# The shaderc dependencies are already installed on the base images
# so we dont need to worry about installing them.
dist: xenial
os:
- linux
- osx
#- windows # Waiting on https://travis-ci.community/t/timeout-before-install-step/1502/3
language: rust
rust:
- stable
cache:
cargo
branches:
only:
- staging
- trying
- master
- lokathor
before_script:
- |
if [[ $TRAVIS_OS_NAME == "linux" ]]; then \
(test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update) && \
(test -x $HOME/.cargo/bin/mdbook || cargo install mdbook) && \
cargo install-update -a; \
fi
script:
- |
if [[ $TRAVIS_OS_NAME == "linux" ]]; then \
travis_wait cargo build --examples --features="vulkan" && \
cd book && \
mdbook build; \
fi
- |
if [[ $TRAVIS_OS_NAME == "osx" ]]; then \
travis_wait cargo build --examples --features="metal";
fi
deploy:
provider: pages
local-dir: target/book-output
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: false
name: DocsBot
verbose: true
on:
branch: master
condition: $TRAVIS_OS_NAME = linux