This repository was archived by the owner on Aug 18, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +47
-0
lines changed Expand file tree Collapse file tree 3 files changed +47
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ project/plugins/project/
88.cache
99.lib /
1010* .log
11+ /docs /
1112
1213# MacOS
1314.DS_Store
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -ev
3+ SCALA_MAJOR=$( echo $TRAVIS_SCALA_VERSION | egrep ' ^[0-9]+\.[0-9]+' -o)
4+
5+ # Update the java-/scaladocs on https://github.com/codeoverflow-org/chatoverflow-gh-pages
6+
7+ echo " Configuring git..."
8+ git config --global user.email
" [email protected] " 9+ git config --global user.name " Travis CI"
10+
11+ echo " Cloning docs repo..."
12+ git clone https://${GH_TOKEN} @github.com/codeoverflow-org/chatoverflow-gh-pages --branch master --single-branch --depth 1 docs
13+
14+ echo " Copying docs..."
15+ cp -fR target/scala-$SCALA_MAJOR /api docs/chatoverflow
16+ cp -fR api/target/scala-$SCALA_MAJOR /api docs/chatoverflow-api
17+ cd docs
18+
19+ echo " Updating wiki..."
20+ git add .
21+ git commit --message " Deployed doc (Travis build #$TRAVIS_BUILD_NUMBER )"
22+ git push --force origin master
Original file line number Diff line number Diff line change 1+ notifications :
2+ email : false
3+ branches :
4+ only :
5+ - master
6+ language : scala
7+ jdk : openjdk8
8+ scala :
9+ - 2.12.5
10+ cache :
11+ directories :
12+ - $HOME/.ivy2/cache
13+ - $HOME/.sbt
14+ before_install :
15+ - git clone https://github.com/codeoverflow-org/chatoverflow-api --branch master --single-branch --depth 1 api
16+ - sbt ++$TRAVIS_SCALA_VERSION update fetch update
17+ script :
18+ - sbt ++$TRAVIS_SCALA_VERSION -Dfile.encoding=UTF8 doc
19+ - chmod +x .scripts/update-docs.sh
20+ - bash .scripts/update-docs.sh
21+ before_cache :
22+ - rm -fv $HOME/.ivy2/.sbt.ivy.lock
23+ - find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
24+ - find $HOME/.sbt -name "*.lock" -print -delete
You can’t perform that action at this time.
0 commit comments