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 +42
-0
lines changed Expand file tree Collapse file tree 3 files changed +42
-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 | grep ' ^\d+\.\d+' -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 docs
13+
14+ echo " Copying docs..."
15+ cp -fR target/scala-$SCALA_MAJOR /api chatoverflow
16+
17+ echo " Updating wiki..."
18+
19+ git commit --message " Deployed doc (Travis build #$TRAVIS_BUILD_NUMBER )"
20+ 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 : oraclejdk8
8+ scala :
9+ - 2.12.5
10+ cache :
11+ directories :
12+ - $HOME/.ivy2/cache
13+ - $HOME/.sbt
14+ before_cache :
15+ - rm -fv $HOME/.ivy2/.sbt.ivy.lock
16+ - find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
17+ - find $HOME/.sbt -name "*.lock" -print -delete
18+ script :
19+ - sbt ++$TRAVIS_SCALA_VERSION -Dfile.encoding=UTF8 doc
20+ - chmod +x .scripts/update-docs.sh
21+ - bash .scripts/update-docs.sh
You can’t perform that action at this time.
0 commit comments