aboutsummaryrefslogtreecommitdiff
path: root/ci/after-success.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/after-success.sh')
-rw-r--r--ci/after-success.sh11
1 files changed, 11 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