Skip to content

Commit 56a6561

Browse files
authored
Merge pull request #14 from auth0/fix-ci
Migrate to Circle CI
2 parents 30ae84b + 8e173c3 commit 56a6561

File tree

3 files changed

+31
-23
lines changed

3 files changed

+31
-23
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

.travis.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

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]
@@ -165,8 +165,8 @@ This project is licensed under the MIT license. See the [LICENSE](LICENSE) file
165165

166166
<!-- Vars -->
167167

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

0 commit comments

Comments
 (0)