forked from hortonworks/cloudbreak
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcircle.yml
29 lines (26 loc) · 1.19 KB
/
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
machine:
pre:
- sudo curl -L -o /usr/bin/docker 'https://s3-external-1.amazonaws.com/circle-downloads/docker-1.9.1-circleci'
- sudo chmod 0755 /usr/bin/docker
java:
version: openjdk8
services:
- docker
dependencies:
override:
- sudo service postgresql stop
- ./gradlew -Penv=jenkins -b build.gradle clean build --info --stacktrace -x test
cache_directories:
- "~/.gradle"
test:
override:
- case $CIRCLE_NODE_INDEX in 0) ./gradlew -Penv=jenkins -b build.gradle test --info --stacktrace ;; 1) cd integration-test && make without-build && make revert-db ;; esac:
parallel: true
timeout: 1200
post:
- if [ $CIRCLE_NODE_INDEX == 0 ]; then mkdir -p $CIRCLE_TEST_REPORTS/junit/; find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;; fi:
parallel: true
- if [ $CIRCLE_NODE_INDEX == 1 ]; then mkdir -p $CIRCLE_TEST_REPORTS/mock/; cp integration-test/test-output/junitreports/* $CIRCLE_TEST_REPORTS/mock/; fi:
parallel: true
- if [ $CIRCLE_NODE_INDEX == 1 ]; then mkdir -p $CIRCLE_ARTIFACTS/mock/; sudo cp -r integration-test $CIRCLE_ARTIFACTS/integration-test; fi:
parallel: true