-
Notifications
You must be signed in to change notification settings - Fork 226
/
config.yml
63 lines (63 loc) · 2.12 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: 2.1
orbs:
build-and-test:
jobs:
build-and-test:
parameters:
script:
description: the script to execute
type: string
machine: true
working_directory: ~/eventuate-tram-sagas
steps:
- checkout
- restore_cache:
keys:
- eventuate-tram-sagas-{{ checksum "gradle.properties" }}-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
- eventuate-tram-sagas-
- run:
command: |
./.circleci/upgrade-docker-compose.sh
- run:
command: |
. ./.circleci/setenv-circle-ci.sh
./gradlew testClasses aggregateJavaDocs
- save_cache:
paths:
- ~/.gradle
key: eventuate-tram-sagas-{{ checksum "gradle.properties" }}-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
- run: <<parameters.script>>
- run:
name: Save test results
command: ./.circleci/save-containers-and-tests.sh
when: always
- store_test_results:
path: ~/junit
- store_artifacts:
path: ~/junit
- store_artifacts:
path: ~/container-logs
workflows:
version: 2.1
build-test-and-deploy:
jobs:
- build-and-test/build-and-test:
name: build-and-test-mysql
script: ./build-and-test-all-mysql.sh
- build-and-test/build-and-test:
name: build-and-test-mssql
script: ./build-and-test-all-mssql.sh
- build-and-test/build-and-test:
name: build-and-test-postgres
script: ./build-and-test-all-postgres.sh
- build-and-test/build-and-test:
name: build-and-test-activemq
script: ./build-and-test-all-activemq.sh
- build-and-test/build-and-test:
name: deploy-artifacts
requires:
- build-and-test-mysql
- build-and-test-mssql
- build-and-test-postgres
- build-and-test-activemq
script: ./deploy-artifacts.sh