-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into gradle-3.0
- Loading branch information
Showing
44 changed files
with
3,031 additions
and
424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
working_directory: /gradle-download-task | ||
|
||
parallelism: 4 | ||
|
||
docker: | ||
- image: openjdk:7-jdk | ||
|
||
environment: | ||
CIRCLE_TEST_REPORTS: /tmp/test-reports | ||
|
||
steps: | ||
- checkout | ||
|
||
- restore_cache: | ||
keys: | ||
- v2-gradle-download-task-{{ .Environment.CIRCLE_NODE_INDEX }}-{{ checksum "build.gradle" }} | ||
- v2-gradle-download-task-{{ .Environment.CIRCLE_NODE_INDEX }}- | ||
- v2-gradle-download-task- | ||
|
||
- run: | ||
name: Install BouncyCastle provider into JDK 7 | ||
command: | | ||
wget "https://bouncycastle.org/download/bcprov-ext-jdk15on-158.jar" -O "${JAVA_HOME}"/jre/lib/ext/bcprov-ext-jdk15on-158.jar | ||
perl -pi.bak -e 's/^(security\.provider\.)([0-9]+)/$1.($2+1)/ge' /etc/java-7-openjdk/security/java.security | ||
echo "security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider" | tee -a /etc/java-7-openjdk/security/java.security | ||
- run: | ||
name: Run tests | ||
environment: | ||
TERM: dump | ||
command: | | ||
./gradlew --console=plain install | ||
case $CIRCLE_NODE_INDEX in | ||
0) ./gradlew --console=plain test | ||
;; | ||
1) ./gradlew --console=plain integrationTest -PintegrationTestIncludes="^1\\." | ||
;; | ||
2) ./gradlew --console=plain integrationTest -PintegrationTestIncludes="^2\\." | ||
;; | ||
3) ./gradlew --console=plain integrationTest -PintegrationTestIncludes="^(3|4)\\." | ||
;; | ||
esac | ||
./gradlew --console=plain jacocoTestReport | ||
- run: | ||
name: Copy test reports | ||
command: | | ||
mkdir -p $CIRCLE_TEST_REPORTS/junit/ | ||
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \; | ||
- run: | ||
name: Upload code coverage report | ||
command: | | ||
bash <(curl -s https://codecov.io/bash) | ||
- run: | ||
name: Prepare cache | ||
command: | | ||
rm -f ~/.gradle/caches/modules-2/modules-2.lock | ||
rm -rf ~/.gradle/caches/*/plugin-resolution/ | ||
- save_cache: | ||
key: v2-gradle-download-task-{{ .Environment.CIRCLE_NODE_INDEX }}-{{ checksum "build.gradle" }} | ||
paths: | ||
- ~/.gradle/caches/ | ||
- ~/.gradle/wrapper/ | ||
|
||
- store_test_results: | ||
path: /tmp/test-reports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Number of days of inactivity before an issue becomes stale | ||
daysUntilStale: 60 | ||
|
||
# Number of days of inactivity before a stale issue is closed | ||
daysUntilClose: 14 | ||
|
||
# Issues with these labels will never be considered stale | ||
exemptLabels: | ||
- pinned | ||
- security | ||
- confirmed | ||
- planned | ||
|
||
# Label to use when marking an issue as stale | ||
staleLabel: stale | ||
|
||
# Comment to post when marking an issue as stale. Set to `false` to disable | ||
markComment: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed in two weeks if no further activity | ||
occurs. Thank you for your contributions. | ||
# Comment to post when closing a stale issue. Set to `false` to disable | ||
closeComment: > | ||
This issue has been automatically closed due to inactivity. Please feel free | ||
to reopen it if necessary. We apologize for any inconvenience caused. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.