Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 0350f97

Browse files
committed
Merge branch 'master' into develop
2 parents 432c5b6 + 079d96c commit 0350f97

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ project/plugins/project/
88
.cache
99
.lib/
1010
*.log
11+
/docs/
1112

1213
# MacOS
1314
.DS_Store

.scripts/update-docs.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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 "travis@travis-ci.org"
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

.travis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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

0 commit comments

Comments
 (0)