Skip to content

Commit

Permalink
Migrate to CircleCI 2.0
Browse files Browse the repository at this point in the history
Resolves osiam#311
  • Loading branch information
dacrome committed Sep 3, 2017
1 parent 5055f55 commit ff0db5a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 33 deletions.
22 changes: 22 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,22 @@
version: 2

jobs:
build:
working_directory: ~/osiam

docker:
- image: circleci/openjdk:8

steps:
- checkout
- run: |
curl -L https://github.com/codacy/codacy-coverage-reporter/releases/download/1.0.13/codacy-coverage-reporter-1.0.13-assembly.jar -o codacy-coverage-reporter.jar
./gradlew dependencies
test -z ${CIRCLE_TAG} && ./gradlew check || ./gradlew -Pversion=${CIRCLE_TAG} check
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
- store_test_results:
path: reports
33 changes: 0 additions & 33 deletions circle.yml

This file was deleted.

0 comments on commit ff0db5a

Please sign in to comment.