forked from spring-cloud/spring-cloud-contract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
43 lines (43 loc) · 2.02 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
general:
branches:
ignore:
- gh-pages # list of branches to ignore
machine:
java:
version: oraclejdk8
environment:
_JAVA_OPTIONS: "-Xms512m -Xmx768m"
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx768m -XX:+HeapDumpOnOutOfMemoryError"'
TERM: dumb
dependencies:
pre:
- |
sudo service zookeeper stop || echo "Service not running"
sudo service cassandra stop || echo "Service not running"
sudo service elasticsearch stop || echo "Service not running"
sudo service rabbitmq-server stop || echo "Service not running"
sudo service redis stop || echo "Service not running"
sudo service riak stop || echo "Service not running"
sudo service beanstalkd stop || echo "Service not running"
sudo service couchbase-server stop || echo "Service not running"
sudo service neo4j stop || echo "Service not running"
sudo service sphinxsearch stop || echo "Service not running"
sudo service postgresql stop || echo "Service not running"
- touch ~/.gradle/gradle.properties && echo "org.gradle.daemon=false" >> ~/.gradle/gradle.properties
override:
- ./scripts/downloadDependencies.sh
test:
override:
- rm -rf ~/.m2/repository/org/springframework/cloud/contract
- rm -rf ~/.m2/repository/com/example
- ./mvnw -s .settings.xml clean org.jacoco:jacoco-maven-plugin:prepare-agent install -U -Pdocs,integration,sonar -nsu --batch-mode -Dsurefire.rerunFailingTestsCount=2 -Dmaven.test.redirectTestOutputToFile=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- find . -type f -regex ".*/target/.*-reports/.*" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
- find . -type f -regex ".*/build/test-results/.*" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
- bash <(curl -s https://codecov.io/bash)
notify:
webhooks:
# A list of hook hashes, containing the url field
# gitter hook
- url: https://webhooks.gitter.im/e/ece0ece9a76a5af2aa91