Skip to content

Commit 1fc3110

Browse files
committed
add circleci
1 parent 7191171 commit 1fc3110

File tree

2 files changed

+31
-3
lines changed

2 files changed

+31
-3
lines changed

.circleci/config.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: openjdk:8-jdk
6+
steps:
7+
- checkout
8+
- run: chmod +x gradlew
9+
# Download and cache dependencies
10+
- restore_cache:
11+
keys:
12+
- v1-dependencies-{{ checksum "build.gradle" }}
13+
# fallback to using the latest cache if no exact match is found
14+
- v1-dependencies-
15+
# run tests!
16+
- run: ./gradlew clean check jacocoTestReport --continue --console=plain
17+
- run:
18+
name: Upload Coverage
19+
when: on_success
20+
command: bash <(curl -s https://codecov.io/bash) -Z -C $CIRCLE_SHA1
21+
- save_cache:
22+
paths:
23+
- ~/.m2
24+
key: v1-dependencies-{{ checksum "build.gradle" }}
25+
environment:
26+
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
27+
_JAVA_OPTIONS: "-Xms512m -Xmx1024m"
28+
TERM: dumb

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Guardian Java
22

3-
[![Build][travis-ci-badge]][travis-ci-url]
3+
[![CircleCI](circle-ci-badge)](circle-ci-url)
44
[![MIT][mit-badge]][mit-url]
55
[![Maven][maven-badge]][maven-url]
66
[![JCenter][jcenter-badge]][jcenter-url]
@@ -166,8 +166,8 @@ This project is licensed under the MIT license. See the [LICENSE](LICENSE) file
166166

167167
<!-- Vars -->
168168

169-
[travis-ci-badge]: https://travis-ci.org/auth0/Guardian.java.svg?branch=master
170-
[travis-ci-url]: https://travis-ci.org/auth0/Guardian.java
169+
[circle-ci-badge]: https://img.shields.io/circleci/project/github/auth0/Guardian.java.svg?style=flat-square
170+
[circle-ci-url]: https://circleci.com/gh/auth0/Guardian.java/tree/master
171171
[mit-badge]: http://img.shields.io/:license-mit-blue.svg?style=flat
172172
[mit-url]: https://raw.githubusercontent.com/auth0/Guardian.java/master/LICENSE
173173
[maven-badge]: https://img.shields.io/maven-central/v/com.auth0/guardian.svg

0 commit comments

Comments
 (0)