Permalink
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (30 sloc) 1.42 KB
machine:
java:
version: oraclejdk8
dependencies:
override:
- curl -L https://oss.sonatype.org/service/local/repositories/releases/content/com/codacy/codacy-coverage-reporter/2.0.1/codacy-coverage-reporter-2.0.1-assembly.jar -o codacy-coverage-reporter.jar
- ./gradlew dependencies
test:
override:
- test -z ${CIRCLE_TAG} && ./gradlew check || ./gradlew -Pversion=${CIRCLE_TAG} check
post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
- cp -r build/reports/jacoco/ $CIRCLE_ARTIFACTS
- test -z $CODACY_PROJECT_TOKEN || java -cp codacy-coverage-reporter.jar com.codacy.CodacyCoverageReporter -l Java -r build/reports/jacoco/test/jacocoTestReport.xml
- test -z $COVERALLS_REPO_TOKEN || ./gradlew coveralls
deployment:
staging:
branch: master
commands:
- ./gradlew assemble publish
- curl -X POST https://circleci.com/api/v1/project/osiam/connector4java-integration-tests/tree/master?circle-token=$CIRCLE_TOKEN
- >
curl -H "Content-Type: application/json" --data '{"source_type": "Branch", "source_name": "master"}' -X POST https://registry.hub.docker.com/u/osiamorg/osiam/trigger/${DOCKER_HUB_TRIGGER_TOKEN}/
release:
tag: /.*/
owner: osiam
commands:
- ./gradlew -Pversion=${CIRCLE_TAG} assemble publish
- ./gradlew -Pversion=${CIRCLE_TAG} bintrayUpload