Skip to content

Commit 36af432

Browse files
ci: update travis config to use shared infra snippets (#2787)
ci: update travis config to use shared infra snippets
2 parents 3071138 + fa7934e commit 36af432

File tree

2 files changed

+8
-24
lines changed

2 files changed

+8
-24
lines changed

.travis.yml

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,13 @@
11
language: rust
2-
before_install:
3-
- openssl aes-256-cbc -K $encrypted_1cc96cfefdcd_key -iv $encrypted_1cc96cfefdcd_iv -in rfcs-publish-key.enc -out ~/.ssh/rfcs-publish-key -d
4-
- chmod u=rw,og= ~/.ssh/rfcs-publish-key
5-
- echo "Host github.com" >> ~/.ssh/config
6-
- echo " IdentityFile ~/.ssh/rfcs-publish-key" >> ~/.ssh/config
7-
- git --version
8-
script:
9-
- rev=$(git rev-parse --short HEAD)
10-
- (cargo install mdbook --vers '^0.2.0' --force || true)
11-
- ./generate-book.sh
12-
- cd book
13-
- git init
14-
- git config --global user.name "bors"
15-
- git config --global user.email "[email protected]"
16-
- git remote add upstream [email protected]:rust-lang/rfcs.git
17-
- git fetch upstream
18-
- git reset upstream/gh-pages
19-
- touch .
20-
# We don't use jekyll. Disable it so it doesn't assign special meaning to any
21-
# of our files (e.g. ignoring directories with a leading '_').
22-
- touch .nojekyll
23-
- git add -A .
24-
- git commit -m "Rebuild book at ${rev}"
25-
- git push -q upstream HEAD:gh-pages > /dev/null 2>&1
262
branches:
273
only:
284
- master
295

6+
script:
7+
- (cargo install mdbook --vers '^0.2.0' --force || true)
8+
- ./generate-book.sh
9+
10+
env:
11+
RUSTINFRA_DEPLOY_DIR: book
12+
import:
13+
- rust-lang/simpleinfra/travis-configs/static-websites.yml

rfcs-publish-key.enc

-1.64 KB
Binary file not shown.

0 commit comments

Comments
 (0)