This repository has been archived by the owner on Jul 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathcircle.yml
37 lines (34 loc) · 2.11 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
machine:
java:
version: openjdk7
dependencies:
override:
- curl -L https://oss.sonatype.org/service/local/repositories/releases/content/com/codacy/codacy-coverage-reporter/1.0.13/codacy-coverage-reporter-1.0.13-assembly.jar -o codacy-coverage-reporter.jar
- mvn -U dependency:resolve dependency:resolve-plugins
test:
pre:
- test -z ${CIRCLE_TAG} || mvn versions:set -DnewVersion=${CIRCLE_TAG}
override:
- mvn verify
post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- find . -type f -regex ".*/target/.*-reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
- cp -r target/coverage-reports/jacoco/ $CIRCLE_ARTIFACTS
- test -z $CODACY_PROJECT_TOKEN || java -cp codacy-coverage-reporter.jar com.codacy.CodacyCoverageReporter -l Java -r target/coverage-reports/jacoco/jacoco.xml
- test -z $COVERALLS_REPO_TOKEN || mvn coveralls:report -DrepoToken=$COVERALLS_REPO_TOKEN
deployment:
staging:
branch: master
commands:
- wget https://raw.githubusercontent.com/osiam/circleci/master/settings.xml
- mvn deploy:deploy-file -DrepositoryId=snapshots -Durl=https://oss.jfrog.org/artifactory/oss-snapshot-local -s settings.xml
- curl -X POST https://circleci.com/api/v1/project/osiam/connector4java-integration-tests/tree/master?circle-token=$CIRCLECI_INTEGRATION_TESTS_TRIGGER_TOKEN
- curl -X POST https://circleci.com/api/v1/project/osiam/connector4java-integration-tests/tree/maintenance-2.x?circle-token=$CIRCLECI_INTEGRATION_TESTS_TRIGGER_TOKEN
- curl -X POST https://circleci.com/api/v1/project/osiam/addon-self-administration-plugin-api/tree/master?circle-token=$CIRCLECI_ADDON_SELF_ADMINISTRATION_PLUGIN_API_TRIGGER_TOKEN
- curl -X POST https://circleci.com/api/v1/project/osiam/addon-administration/tree/master?circle-token=$CIRCLECI_ADDON_ADMINISTRATION_TRIGGER_TOKEN
release:
tag: /.*/
owner: osiam
commands:
- wget https://raw.githubusercontent.com/osiam/circleci/master/settings.xml
- mvn deploy:deploy-file -DrepositoryId=releases -Durl="https://api.bintray.com/maven/osiam/OSIAM/org.osiam:connector4java/;publish=1" -s settings.xml