Skip to content

Commit

Permalink
fix yml error
Browse files Browse the repository at this point in the history
  • Loading branch information
crazzyghost committed May 1, 2020
1 parent 6e9f333 commit 80c2330
Showing 1 changed file with 42 additions and 47 deletions.
89 changes: 42 additions & 47 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,58 +13,53 @@ jobs:
TERM: dumb

steps:
- checkout
- checkout

- restore_cache:
keys:
- v1-dependencies-{{ checksum "build.gradle" }}
# fallback to using the latest cache if no exact match is found
# - v1-dependencies-
- restore_cache:
keys:
- v1-dependencies-{{ checksum "build.gradle" }}
# fallback to using the latest cache if no exact match is found
# - v1-dependencies-

- run:
name: install-gradle-dependencies
command: gradle dependencies
- run:
name: install-gradle-dependencies
command: gradle dependencies

- save_cache:
paths:
- ~/.gradle
key: v1-dependencies-{{ checksum "build.gradle" }}
- save_cache:
paths:
- ~/.gradle
key: v1-dependencies-{{ checksum "build.gradle" }}

# run tests!
- run:
name: Run tests
command: gradle test
- run:
name: Run Code Coverage
command: gradle jacocoTestReport
# run tests!
- run:
name: Run tests
command: gradle test
- run:
name: Run Code Coverage
command: gradle jacocoTestReport

- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/test-results/junit/ \;
when: always
- run:
name: Save coverage report
command: |
find . -type f -regex ".*/build/reports/.*xml" -exec cp {} ~/test-results/junit/ \;
when: always
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/test-results/junit/ \;
when: always
- run:
name: Save coverage report
command: |
find . -type f -regex ".*/build/reports/.*xml" -exec cp {} ~/test-results/junit/ \;
when: always

- store_test_results:
path: ~/test-results

- store_artifacts:
path: ~/test-results/junit

codecov:
steps:
- codecov/upload:
file: ~/test-results/junit/jacocoTestReport.xml
- store_test_results:
path: ~/test-results

- store_artifacts:
path: ~/test-results/junit

- codecov/upload:
file: ~/test-results/junit/*.xml

workflows:
workflow:
jobs:
- build
- codecov
requires:
- build
workflow:
jobs:
- build

0 comments on commit 80c2330

Please sign in to comment.