-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use travis deploy provider to deploy javadocs * Generate the jacoco XML report for use with codecov
- Loading branch information
Showing
3 changed files
with
31 additions
and
4 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 |
---|---|---|
|
@@ -10,4 +10,14 @@ before_install: | |
script: | ||
- "./src/ci/build.sh" | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) -f okta-spring-security-starter/target/jacoco.exec | ||
- bash <(curl -s https://codecov.io/bash) -f okta-spring-security-starter/target/site/jacoco/jacoco.xml | ||
|
||
deploy: | ||
- provider: pages | ||
skip_cleanup: true | ||
github_token: $GH_API_KEY | ||
local_dir: target/gh-pages | ||
email: [email protected] | ||
name: Travis CI - Auto Doc Build | ||
on: | ||
branch: master |
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 |
---|---|---|
|
@@ -34,9 +34,8 @@ else | |
$MVN_CMD deploy -Pci | ||
|
||
# also deploy the javadocs to the site | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "travis-ci Auto Doc Build" | ||
$MVN_CMD javadoc:aggregate scm-publish:publish-scm -Ppub-docs -Pci | ||
git clone -b gh-pages https://github.com/${REPO_SLUG}.git target/gh-pages/ | ||
$MVN_CMD javadoc:aggregate -Ppub-docs -Pci | ||
else | ||
# else try to run the ITs if possible (for someone who has push access to the repo | ||
if [ "$RUN_ITS" = true ] ; then | ||
|