forked from steveklabnik/rustbook
-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
41 lines (37 loc) · 986 Bytes
/
circle.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
29
30
31
32
33
34
35
36
37
38
39
40
41
general:
branches:
ignore:
- gh-pages
machine:
timezone:
Asia/Tokyo
environment:
RUST_NIGHTLY_RELEASE_DATE: "2016-06-01"
RUST_HOME: $HOME/rust/nightly-$RUST_NIGHTLY_RELEASE_DATE
PATH: $RUST_HOME/bin:$PATH
LD_LIBRARY_PATH: $RUST_HOME/lib
dependencies:
post:
- sudo apt-get update
- sudo apt-get install curl file gcc git make openssh-client
- mkdir -p $HOME/rust
# Install rustc and cargo, or use cached ones.
- ./tools/circleci/setup-rust.sh $RUST_HOME $RUST_NIGHTLY_RELEASE_DATE
- rustc --version --verbose
- cargo --version --verbose
cache_directories:
- "~/rust"
test:
override:
# There is no 'test' target in rustbook
- cargo clean
- cargo build
- cargo doc
- cargo run
deployment:
publish:
branch: master
commands:
- git config user.name "Tatsuya Kawano (CircleCI)"
- git config user.email "[email protected]"
- ./tools/circleci/publish-to-gh-pages.sh