Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb12bbb8

Browse files
author
NooBxGockeL
committed
Work oniluwatar#218, automagic website updates
1 parent338ecd1 commitb12bbb8

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

‎.travis.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,18 @@ language: java
33
jdk:
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+
611
before_install:
712
-"export DISPLAY=:99.0"
813
-"sh -e /etc/init.d/xvfb start"
914

1015
after_success:
1116
-mvn clean test jacoco:report coveralls:report
17+
-bash update-ghpages.sh
1218

1319
# Migration to container-based infrastructure
1420
sudo:false

‎update-ghpages.sh‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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/null2>&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/null2>&1
22+
fi

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp