mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 07:45:49 +00:00
Update config.yml
This commit is contained in:
parent
011a71f159
commit
026e65aa27
1 changed files with 33 additions and 2 deletions
|
@ -23,6 +23,17 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
- run:
|
||||||
|
name: pull master
|
||||||
|
command: git pull master
|
||||||
|
- run: gradle build
|
||||||
|
- run:
|
||||||
|
name: Assemble JAR
|
||||||
|
command: |
|
||||||
|
# Skip this for other nodes
|
||||||
|
if [ "$CIRCLE_NODE_INDEX" == 0 ]; then
|
||||||
|
./gradlew assemble
|
||||||
|
fi
|
||||||
|
|
||||||
# Download and cache dependencies
|
# Download and cache dependencies
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
|
@ -38,9 +49,29 @@ jobs:
|
||||||
- ~/.gradle
|
- ~/.gradle
|
||||||
key: v1-dependencies-{{ checksum "build.gradle" }}
|
key: v1-dependencies-{{ checksum "build.gradle" }}
|
||||||
|
|
||||||
- run: gradle build
|
test:
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- attach_workspace:
|
||||||
|
at: .
|
||||||
|
- run:
|
||||||
|
name: Run tests
|
||||||
|
# Use "./gradlew test" instead if tests are not run in parallel
|
||||||
|
command: ./gradlew test
|
||||||
|
- run:
|
||||||
|
name: Generate code coverage report
|
||||||
|
command:
|
||||||
|
./gradlew testReport
|
||||||
|
- store_test_results:
|
||||||
|
path: build/test-results/test
|
||||||
|
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
pipeline:
|
pipeline:
|
||||||
jobs:
|
jobs:
|
||||||
- build
|
- build
|
||||||
|
- test:
|
||||||
|
requires:
|
||||||
|
- build
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue