branches:
  except:
    - travis
language: java
jdk:
- oraclejdk8
script:
- mvn test jacoco:report coveralls:report
notifications:
  slack: cloudfoundry:xvgjKLNQTyqAFMnsTywVHik9
after_success:
- mvn deploy --settings settings.xml
- mkdir -p /tmp/spring-content/docs
- mv spring-content-fs/target/generated-docs/*.html /tmp/spring-content-docs/refs/current/
- cd ..
- git clone --depth=50 --branch=gh-pages https://github.com/paulcwarren/spring-content.git gh-pages
- cd gh-pages
- git branch
- git branch -r
- git config --global user.email $GITHUB_EMAIL
- git config --global user.name $GITHUB_NAME
- mv /tmp/spring-content-docs/refs/current/*.html refs/current/
- git add refs/current/
- git commit --message "SpringContentCI: Publishing References"
- git remote add origin-pages $GITHUB_LINK > /dev/null 2>&1
- git push --quiet --set-upstream origin-pages gh-pages

branches:
  except:
    - travis
language: java
jdk:
- oraclejdk8
script:
- mvn test jacoco:report coveralls:report
notifications:
  slack: cloudfoundry:xvgjKLNQTyqAFMnsTywVHik9
after_success:
- mvn deploy --settings settings.xml
- mkdir -p /tmp/spring-content/docs/refs/current
- mv spring-content-fs/target/generated-docs/*.html /tmp/spring-content-docs/refs/current/
- cd ..
- git clone --depth=50 --branch=gh-pages https://github.com/paulcwarren/spring-content.git gh-pages
- cd gh-pages
- git branch
- git branch -r
- git config --global user.email $GITHUB_EMAIL
- git config --global user.name $GITHUB_NAME
- mv /tmp/spring-content-docs/refs/current/*.html refs/current/
- git add refs/current/
- git commit --message "SpringContentCI: Publishing References"
- git remote add origin-pages $GITHUB_LINK > /dev/null 2>&1
- git push --quiet --set-upstream origin-pages gh-pages

Create the right folder structure
Create the right folder structure

Signed-off-by: Jeff Pak <9d750c79dc1952140f693c4bda214b11dba3d64d@emc.com>
