Skip to content

Commit

Permalink
Cleanup CI build
Browse files Browse the repository at this point in the history
* Use travis deploy provider to deploy javadocs
* Generate the jacoco XML report for use with codecov
  • Loading branch information
bdemers committed Aug 11, 2017
1 parent bd56fea commit a91724f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
18 changes: 18 additions & 0 deletions okta-spring-security-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,22 @@
</dependency>

</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<id>jacoco-report</id>
<goals>
<goal>report</goal>
</goals>
<phase>verify</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
5 changes: 2 additions & 3 deletions src/ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a91724f

Please sign in to comment.