File tree 2 files changed +28
-0
lines changed
2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,18 @@ language: java
3
3
jdk :
4
4
- oraclejdk8
5
5
6
+ env :
7
+ global :
8
+ - GH_REF : github.com/iluwatar/java-design-patterns.git
9
+ - secure : " LxTDuNS/rBWIvKkaEqr79ImZAe48mCdoYCF41coxNXgNoippo4GIBArknqtv+XvdkiuRZ1yGyj6pn8GU33c/yn+krddTUkVCwTbVatbalW5jhQjDbHYym/JcxaK9ZS/3JTeGcWrBgiPqHEEDhCf26vPZsXoMSeVCEORVKTp1BSg="
10
+
6
11
before_install :
7
12
- " export DISPLAY=:99.0"
8
13
- " sh -e /etc/init.d/xvfb start"
9
14
10
15
after_success :
11
16
- mvn clean test jacoco:report coveralls:report
17
+ - bash update-ghpages.sh
12
18
13
19
# Migration to container-based infrastructure
14
20
sudo : 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