-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Javadoc publish on release * changed repoPath to docsPath
- Loading branch information
1 parent
bf75362
commit 4aff2e0
Showing
3 changed files
with
74 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,48 @@ | ||
language: java | ||
jdk: | ||
- openjdk8 | ||
- openjdk8 | ||
sudo: false | ||
before_cache: | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/ | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/ | ||
cache: | ||
directories: | ||
- "$HOME/.gradle/caches/" | ||
- "$HOME/.gradle/wrapper/" | ||
- "$HOME/.gradle/caches/" | ||
- "$HOME/.gradle/wrapper/" | ||
install: skip | ||
test: skip | ||
jobs: | ||
include: | ||
- stage: build pull request | ||
script: "./gradlew check jacocoTestReport" | ||
if: type = pull_request | ||
- stage: build master | ||
script: "./gradlew check jacocoTestReport publish" | ||
if: branch = master AND NOT type = pull_request | ||
- stage: build and stage release | ||
if: branch =~ /release/ | ||
script: "./gradlew check publish bintrayUpload -Pversion=${TRAVIS_BRANCH#'release/'}" | ||
- stage: release | ||
if: branch =~ /release/ | ||
script: "./gradlew closeAndReleaseRepository" | ||
- stage: github release | ||
if: branch =~ /release/ | ||
script: "./scripts/github-release.sh" | ||
- stage: build pull request | ||
script: "./gradlew check jacocoTestReport" | ||
if: type = pull_request | ||
- stage: build master | ||
script: "./gradlew check jacocoTestReport publish" | ||
if: branch = master AND NOT type = pull_request | ||
- stage: build and stage release | ||
if: branch =~ /release/ | ||
script: "./gradlew check publish bintrayUpload -Pversion=${TRAVIS_BRANCH#'release/'}" | ||
- stage: release | ||
if: branch =~ /release/ | ||
script: "./gradlew closeAndReleaseRepository" | ||
- stage: github release | ||
if: branch =~ /release/ | ||
script: "./scripts/github-release.sh" | ||
- stage: javadoc release | ||
if: branch =~ /release/ | ||
script: "./gradlew core:gitPublishPush" | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) | ||
- bash <(curl -s https://codecov.io/bash) | ||
before_install: | ||
- | | ||
if [[ "$TRAVIS_PULL_REQUEST" = "false" ]]; then | ||
openssl aes-256-cbc -K $encrypted_661235106ac6_key -iv $encrypted_661235106ac6_iv -in web3j.asc.enc -out web3j.asc -d | ||
fi | ||
- | | ||
if [[ "$TRAVIS_PULL_REQUEST" = "false" ]]; then | ||
openssl aes-256-cbc -K $encrypted_661235106ac6_key -iv $encrypted_661235106ac6_iv -in web3j.asc.enc -out web3j.asc -d | ||
fi | ||
env: | ||
global: | ||
- secure: bMq4UDE/u66XSRv3gSAP/p36RMHFuk1lDk+HpDFw6HPJNzSNU4PHJZrzzr3cvkea6GF7lCutKG//bzeQkgsHesj27WNmj9PRWZYVfdhpRADm8kwBwaK/lRN9JIQOpZ5D1NTIecOL/iPMNU3FXQ7UVTLUx3EbrY9CpNKIFB/n9jTUjJgS1nlr5ysMfaQ9SfcFnJ4r87o9oeyiAczE74laD1hzVYDkiNUOkbdruxv6ewQqJJYEQWzjNyHjbTFjxiGQq8WdPLgu0FpVDSzGfB9h+BdpAqNvP7xfko4hTKHofLkhDClcolWSPzIaCS/09hdJdsrNyBRFpEB37nF3PLNfmfIYjXVWtRU0Xz/Ti77Bqr7C/3N+13LRrn8uLSf/yF0PByFAiaEj7RMQfpkJTmtCe7Y3JPD1PmGrUSGCVWWWR6wgle9P66lEiBqHsNvx7uYJkdnjcfbUwJaXqPHjHnYeOU3sKYWSuMjz4XSDBnRVQNkmzF554UnWmzGh48vva6hDMRrYiGc5eN0BYvFQTm5slTvIM4ilnEQQDtfWfgBCrSns+lAP1ky8E7BCoH9V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/avnAg3nApM8PePzxsep/CCnZ7p8AVjsF4Q4h1UNX4wtq6j6mSVjQu/2ZyP+0Uy6F5GIA2Llh3gFWK/cT0JSrU3X9jiNz3iuHqiWST6/4R2QS1Nr44TArh2cAcDiBs7eaoVkbqaV11ZGR4BR9dvaOXj2WRzYrSsqisSL08WVZA2Ks= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import java.text.SimpleDateFormat | ||
|
||
apply plugin: 'org.ajoberstar.git-publish' | ||
|
||
|
||
description 'web3j is a lightweight Java library for integration with Ethereum clients' | ||
|
||
dependencies { | ||
|
@@ -37,6 +40,42 @@ def getTimestamp() { | |
return df.format(today) | ||
} | ||
|
||
ext { | ||
docsPath = 'web3j/web3j-docs' | ||
ghToken = System.getenv('GITHUB_PERSONAL_ACCESS_TOKEN') | ||
} | ||
|
||
gitPublish { | ||
|
||
if (ghToken) { | ||
repoUri = "https://github.com/${docsPath}.git" | ||
credentials { | ||
username = ghToken | ||
password = '' | ||
} | ||
} else { | ||
repoUri = "[email protected]:${docsPath}.git" | ||
} | ||
|
||
// branch will be created if it doesn't exist | ||
branch = 'master' | ||
|
||
def coreDocs = files("${buildDir.path}/docs/javadoc/") | ||
|
||
contents { | ||
from(coreDocs) { | ||
into '/docs/javadoc-api' | ||
} | ||
} | ||
|
||
// what to keep in the existing branch (include=keep) | ||
preserve { | ||
include '/**' | ||
} | ||
|
||
// message used when committing changes | ||
commitMessage = 'Publishing a new page' // defaults to 'Generated by gradle-git-publish' | ||
} | ||
classes { dependsOn createProperties } | ||
|
||
configurations { testArtifacts.extendsFrom testRuntime } | ||
|