sudo: required

language: java
jdk:
  - oraclejdk8

services:
 - docker

before_install:
 - mkdir -p output
 - docker pull asciidoctor/docker-asciidoctor

script:
 - cd blueprint-parent && mvn -B -V clean install
 - docker run -v $TRAVIS_BUILD_DIR:/documents/ --name asciidoc-to-html asciidoctor/docker-asciidoctor asciidoctor -D /documents/output *.adoc

after_error:
 - docker logs asciidoc-to-html

after_failure:
 - docker logs asciidoc-to-html

after_success:
 - cd output ; mv README.html index.html ; cp -R ../images images
 - git init
 - git config user.name "${GH_USER_NAME}"
 - git config user.email "{GH_USER_EMAIL}"
 - git add . ; git commit -m "Deploy to GitHub Pages - ${TRAVIS_COMMIT_RANGE}"
 - git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1


sudo: required

language: java
jdk:
  - oraclejdk8

services:
 - docker

before_install:
 - mkdir -p output

script:
 - cd blueprint-parent && mvn -B -V clean install
 - cp -R target/generated-docs/*/html/* ../output

after_success:
 - cd output ; rm -R .asciidoctor
 - git init
 - git config user.name "${GH_USER_NAME}"
 - git config user.email "{GH_USER_EMAIL}"
 - git add . ; git commit -m "Deploy to GitHub Pages - ${TRAVIS_COMMIT_RANGE}"
 - git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1


Update TravisCI config for GitHup pages
Update TravisCI config for GitHup pages
