diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2019-02-08 19:58:55 +0100 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2019-02-08 19:58:55 +0100 |
| commit | 45659fdbbc1163efd71ed89f892beeeeffd54cee (patch) | |
| tree | 876c6aface13e77344f0dd20121e1570a7b35852 /ci | |
| parent | 1d52964df7abf9fba09933470d5c3dcce96760c4 (diff) | |
skeleton for the Russian translation of the book
Diffstat (limited to 'ci')
| -rw-r--r-- | ci/after-success.sh | 11 | ||||
| -rw-r--r-- | ci/script.sh | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/ci/after-success.sh b/ci/after-success.sh index f9f2522..04376d6 100644 --- a/ci/after-success.sh +++ b/ci/after-success.sh @@ -4,10 +4,12 @@ main() { rm -f .cargo/config cargo doc --features timer-queue ( cd book && mdbook build ) + ( cd ru && mdbook build ) local td=$(mktemp -d) cp -r target/doc $td/api cp -r book/book $td/ + cp -r ru/book $td/book/ru cp LICENSE-* $td/book/ mkdir ghp-import @@ -22,6 +24,15 @@ main() { rm -rf $td } +# fake Travis variables to be able to run this on a local machine +if [ -z ${TRAVIS_BRANCH-} ]; then + TRAVIS_BRANCH=master +fi + +if [ -z ${TRAVIS_PULL_REQUEST-} ]; then + TRAVIS_PULL_REQUEST=false +fi + if [ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ]; then main fi diff --git a/ci/script.sh b/ci/script.sh index 3dd60de..8878d92 100644 --- a/ci/script.sh +++ b/ci/script.sh @@ -24,6 +24,7 @@ main() { cargo doc fi ( cd book && mdbook build ) + ( cd ru && mdbook build ) local td=$(mktemp -d) cp -r target/doc $td/api |
