forked from rust-lang/rfcs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (28 loc) · 1.01 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
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.2.0' --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 .
# We don't use jekyll. Disable it so it doesn't assign special meaning to any
# of our files (e.g. ignoring directories with a leading '_').
- touch .nojekyll
- git add -A .
- git commit -m "Rebuild book at ${rev}"
- git push -q upstream HEAD:gh-pages > /dev/null 2>&1
branches:
only:
- master