mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-01-23 15:40:27 +08:00
5e5919fe83
Now that lots of other rust-lang stuff is using travis, I don't want to take 2 spots in the queue every time we push to a PR!
28 lines
1.2 KiB
YAML
28 lines
1.2 KiB
YAML
sudo: false
|
|
language: rust
|
|
cache: cargo
|
|
rust:
|
|
- nightly
|
|
- beta
|
|
- stable
|
|
branches:
|
|
only:
|
|
- master
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- aspell
|
|
- aspell-en
|
|
before_script:
|
|
- (cargo install mdbook --git https://github.com/azerupi/mdBook.git --force || true)
|
|
script:
|
|
- bash spellcheck.sh list
|
|
- PATH=$PATH:/home/travis/.cargo/bin mdbook test
|
|
- PATH=$PATH:/home/travis/.cargo/bin mdbook build
|
|
- cargo run --bin lfp src
|
|
after_success:
|
|
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && bash deploy.sh
|
|
env:
|
|
global:
|
|
secure: BcBxhhCR2EgnZzllxXT3x2NNjAU1sjAwwjZ0lg6VqTetxh+ENHzjDsX4+mrBPXmm2vU7qZSivOHX+TEHHTUQOjHDyRdYg4PaPJxQBQ3/8hw/OEO7LwMo0FKhuixXKlBSBbhBIWomvJnGA7iRQqMabQqQyys1dYI3mb1ck8WMNwFe2ZaEe12nbvzTr0EGFRZ3bJhR0nDmvXlm2XIbwRnSfMSnWAIb/ksKEpwFfCRNwx4dMZkJzOii+rnFaNWO1KIUh4V1+Jo8GR24/2Bd/3HqAxDP+6kAYOcB1hKQuHnVOdVx0B7LUxe6Pgwq98EXaNmpgrq7YUpwwrPEExr6k9UzBkcTcz0X+U9tvaqcvDD1qlQZORdtbOPMvYVkE7uxu/d+/s6CyIaUKIb/RLrqMtdwIye0tYvdVQ8xr4h1tszCR//PwfAaK4BzPCgLPyXpHeJklPjyvKiedVyfOQywpGNRaZN2phQ8RFEN7XXw2PI1+AEZue27nWrDnCR17ExKKWdithPbIrFfi40bn03YuIgq91LURyqM6KE71IU6gNjQlRyko+F0M7W/tbELYZCOw3erctY70JBbWG3KtqW/3sXF6GoGYE4z0v206NmxwndlQ/fd3Vh05toAIqAR+Vx6lebHF7NG4Ki4b7ReuodNMjrDYo28o0EiVapQcXhU1G0FU4o=
|