forked from rust-lang/rfcs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (25 loc) · 871 Bytes
/
.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
language: rust
before_install:
- openssl aes-256-cbc -K $encrypted_1cc96cfefdcd_key -iv $encrypted_1cc96cfefdcd_iv -in rfcs-publish-key.enc -out ~/.ssh/rfcs-publish-key -d
- chmod u=rw,og= ~/.ssh/rfcs-publish-key
- echo "Host github.com" >> ~/.ssh/config
- echo " IdentityFile ~/.ssh/rfcs-publish-key" >> ~/.ssh/config
- git --version
script:
- rev=$(git rev-parse --short HEAD)
- (cargo install mdbook --vers 0.0.26 --force || true)
- ./generate-book.sh
- cd book
- git init
- git config --global user.name "bors"
- git config --global user.email "[email protected]"
- git remote add upstream [email protected]:rust-lang/rfcs.git
- git fetch upstream
- git reset upstream/gh-pages
- touch .
- git add -A .
- git commit -m "Rebuild book at ${rev}"
- git push -q upstream HEAD:gh-pages > /dev/null 2>&1
branches:
only:
- master