forked from microservices-patterns/ftgo-application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
39 lines (39 loc) · 1.21 KB
/
config.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
38
39
version: 2
jobs:
build:
machine: true
working_directory: ~/ftgo-application
steps:
- checkout
- restore_cache:
keys:
- ftgo-application-{{ checksum "gradle.properties" }}
- ftgo-application-
- run: TERM=dumb ./gradlew buildContracts
- run: TERM=dumb ./gradlew compileAll
- save_cache:
paths:
- ~/.gradle
- ~/.m2
key: ftgo-application-{{ checksum "gradle.properties" }}
- run:
command: |
./.circleci/upgrade-docker-compose.sh
. .circleci/setenv-circle-ci.sh
./build-and-test-all.sh
- run:
name: Save test results
command: |
mkdir -p ~/junit/
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/junit/ \;
when: always
- store_test_results:
path: ~/junit
- store_artifacts:
path: ~/junit
- run:
command: |
. .circleci/setenv-circle-ci.sh
./gradlew assemble
docker-compose build
./publish-docker-images.sh