-
Notifications
You must be signed in to change notification settings - Fork 0
/
java-mircoservice-circle.yml
57 lines (46 loc) · 1.18 KB
/
java-mircoservice-circle.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
general:
branches:
only:
- master
- /rc-.*/
- /feature-.*/
machine:
java:
version: openjdk8
services:
- docker
compile:
override:
- ./gradlew clean build -x test # ./gradlew test runs in the test phase
- docker build -t app:$CIRCLE_SHA1 .
general:
artifacts:
- build/reports/
test:
post:
- docker run -d -p 8080:8080 --name app app:$CIRCLE_SHA1; sleep 10
- curl --retry 4 --retry-delay 4 localhost:8080/app/manage/health | grep UP
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
deployment:
local-dev:
branch: /feature-.*/
commands:
- echo "No Deploy"
qa:
branch: master
commands:
- ./deploy.sh
qa-tagged-deploy:
tag: /qa-.*/ # this is for deploying prod releases in the qa env
commands: # and for ad-hoc deployments to QA
- ./deploy.sh
integration:
branch: master
commands:
- ./deploy.sh
prod:
tag: /v[0-9]+(\.[0-9]+)+/ # this does not work they way i want it too :|
branch: /rc-.*/
commands:
- ./deploy.sh