File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,18 @@ language: java
33jdk :
44 - oraclejdk8
55
6+ env :
7+ global :
8+ - GH_REF : github.com/iluwatar/java-design-patterns.git
9+ - secure : " LxTDuNS/rBWIvKkaEqr79ImZAe48mCdoYCF41coxNXgNoippo4GIBArknqtv+XvdkiuRZ1yGyj6pn8GU33c/yn+krddTUkVCwTbVatbalW5jhQjDbHYym/JcxaK9ZS/3JTeGcWrBgiPqHEEDhCf26vPZsXoMSeVCEORVKTp1BSg="
10+
611before_install :
712 - " export DISPLAY=:99.0"
813 - " sh -e /etc/init.d/xvfb start"
914
1015after_success :
1116 - mvn clean test jacoco:report coveralls:report
17+ - bash update-ghpages.sh
1218
1319# Migration to container-based infrastructure
1420sudo : false
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Setup Git
4+ git config user.name " Travis-CI"
5+ git config user.email " travis@no.reply"
6+
7+ # Clone gh-pages
8+ git clone -b gh-pages " https://${GH_REF} " ghpagesclone
9+ cd ghpagesclone
10+
11+ # Init and update submodule to latest
12+ git submodule update --init --recursive
13+ git submodule update --remote
14+
15+ # If there is a new version of the master branch
16+ if git status | grep patterns > /dev/null 2>&1
17+ then
18+ # it should be committed
19+ git add .
20+ git commit -m " :sparkles: :up: Automagic Update via Travis-CI"
21+ git push --quiet " https://${GH_TOKEN} @${GH_REF} " master:gh-pages > /dev/null 2>&1
22+ fi
You can’t perform that action at this time.
0 commit comments