* Added options to pass props via @AutoConfigureStubRunner it's much easier to pass props via the annotation instead of property files. With this change the user can provide the properties inside the test via the annotation. The only thing that has to be passed via props is repositoryRoot (typically it's a very constant property that you set once). fixes #46
43 lines
2.0 KiB
YAML
43 lines
2.0 KiB
YAML
general:
|
|
branches:
|
|
ignore:
|
|
- gh-pages # list of branches to ignore
|
|
machine:
|
|
java:
|
|
version: oraclejdk8
|
|
environment:
|
|
_JAVA_OPTIONS: "-Xms512m -Xmx1024m"
|
|
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx1024m -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 -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 |