Skip to content

Commit

Permalink
chore: use command from orb to store test results
Browse files Browse the repository at this point in the history
  • Loading branch information
tronghn committed Aug 2, 2019
1 parent bcde98c commit 85e99f8
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2.1

orbs:
barkendeploy: navikt/barkendeploy@0.0.1
barkendeploy: navikt/barkendeploy@dev:junit-test-results-store

executors:
openjdk:
Expand All @@ -14,18 +14,7 @@ parameters:
default: false

commands:
save-test-results:
steps:
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -regex ".*/build/test-results/test/.*xml" -exec cp {} ~/test-results/junit/ \;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit

create-deployment:
parameters:
cluster:
Expand Down Expand Up @@ -58,7 +47,7 @@ jobs:
- run:
name: Run tests
command: ./gradlew clean test
- save-test-results
- barkendeploy/junit-test-results-store
- barkendeploy/gradle-cache-persist
build-and-push-docker:
executor: openjdk
Expand All @@ -72,7 +61,7 @@ jobs:
- run:
name: Run tests and build JAR
command: ./gradlew clean build shadowJar
- save-test-results
- barkendeploy/junit-test-results-store
- barkendeploy/gradle-cache-persist
- barkendeploy/docker-build
- barkendeploy/docker-login
Expand Down

0 comments on commit 85e99f8

Please sign in to comment.