summaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
blob: 01c67cb2adb14bda15e82bdf0a702da3001562a8 (plain)
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
language: rust
sudo: false

cache:
  - cargo

rust:
  - stable

before_script:
  - (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
  - (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.3" mdbook)
  - cargo install-update -a

script:
  - find ./src -type f \( ! -iname SUMMARY.md \) -exec sed -i '/\[.*]([^\(]*)/ { s/(\//(\/Plore-Tabletop-Game\//g; }' {} \; # Makes deployed urls work with githubpages (under the name Plore-Tabletop-Game)
  - mdbook build #&& mdbook test # In case of custom book path: mdbook build path/to/mybook && mdbook test path/to/mybook
  - cp fonts/* book/fonts

branches:
  only:
    - master

git:
  submodules: false

deploy:
  provider: pages
  skip-cleanup: true
  github-token: $GITHUB_TOKEN
  local-dir: book # In case of custom book path: path/to/mybook/book
  keep-history: false
  on:
    branch: master