diff options
Diffstat (limited to 'ci')
| -rw-r--r-- | ci/after-success.sh | 11 | ||||
| -rw-r--r-- | ci/script.sh | 15 |
2 files changed, 21 insertions, 5 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..645db3a 100644 --- a/ci/script.sh +++ b/ci/script.sh @@ -23,14 +23,19 @@ main() { else cargo doc fi - ( cd book && mdbook build ) + ( cd book/en && mdbook build ) + ( cd book/ru && mdbook build ) local td=$(mktemp -d) cp -r target/doc $td/api - cp -r book/book $td/ - cp LICENSE-* $td/book/ - - linkchecker $td/book/ + mkdir $td/book + cp -r book/en/book $td/book/en + cp -r book/ru/book $td/book/ru + cp LICENSE-* $td/book/en + cp LICENSE-* $td/book/ru + + linkchecker $td/book/en/ + linkchecker $td/book/ru/ linkchecker $td/api/rtfm/ linkchecker $td/api/cortex_m_rtfm_macros/ fi |
