Skip to content
Permalink
Browse files

Merge branch 'master' into develop

  • Loading branch information
joblo2213 committed Nov 12, 2019
2 parents 432c5b6 + 079d96c commit 0350f97d15775587798a4aaf477c5227eff7e575
Showing with 47 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +22 −0 .scripts/update-docs.sh
  3. +24 −0 .travis.yml
@@ -8,6 +8,7 @@ project/plugins/project/
.cache
.lib/
*.log
/docs/

# MacOS
.DS_Store
@@ -0,0 +1,22 @@
#!/bin/bash
set -ev
SCALA_MAJOR=$(echo $TRAVIS_SCALA_VERSION | egrep '^[0-9]+\.[0-9]+' -o)

# Update the java-/scaladocs on https://github.com/codeoverflow-org/chatoverflow-gh-pages

echo "Configuring git..."
git config --global user.email "travis@travis-ci.org"
git config --global user.name "Travis CI"

echo "Cloning docs repo..."
git clone https://${GH_TOKEN}@github.com/codeoverflow-org/chatoverflow-gh-pages --branch master --single-branch --depth 1 docs

echo "Copying docs..."
cp -fR target/scala-$SCALA_MAJOR/api docs/chatoverflow
cp -fR api/target/scala-$SCALA_MAJOR/api docs/chatoverflow-api
cd docs

echo "Updating wiki..."
git add .
git commit --message "Deployed doc (Travis build #$TRAVIS_BUILD_NUMBER)"
git push --force origin master
@@ -0,0 +1,24 @@
notifications:
email: false
branches:
only:
- master
language: scala
jdk: openjdk8
scala:
- 2.12.5
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt
before_install:
- git clone https://github.com/codeoverflow-org/chatoverflow-api --branch master --single-branch --depth 1 api
- sbt ++$TRAVIS_SCALA_VERSION update fetch update
script:
- sbt ++$TRAVIS_SCALA_VERSION -Dfile.encoding=UTF8 doc
- chmod +x .scripts/update-docs.sh
- bash .scripts/update-docs.sh
before_cache:
- rm -fv $HOME/.ivy2/.sbt.ivy.lock
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete

0 comments on commit 0350f97

Please sign in to comment.
You can’t perform that action at this time.