Skip to content

Commit c8c6ba1

Browse files
committed
Migrate from Travis to Circle CI
1 parent 29f13cc commit c8c6ba1

File tree

4 files changed

+98
-16
lines changed

4 files changed

+98
-16
lines changed

.circleci/config.yml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
defaults: &defaults
2+
working_directory: ~/jdroid-java-github
3+
docker:
4+
- image: circleci/openjdk:8-jdk
5+
environment:
6+
JVM_OPTS: -Xmx3200m
7+
LOCAL_MAVEN_REPO: ~/repo
8+
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.caching=true
9+
version: 2
10+
jobs:
11+
build:
12+
<<: *defaults
13+
steps:
14+
- checkout
15+
16+
# Download and cache dependencies
17+
- restore_cache:
18+
key: app-{{ .Branch }}-{{ checksum "build.gradle" }}
19+
20+
- run:
21+
name: Assembling
22+
command: ./gradlew assemble --refresh-dependencies --stacktrace --scan
23+
24+
- save_cache:
25+
paths:
26+
- ~/.gradle
27+
key: app-{{ .Branch }}-{{ checksum "build.gradle" }}
28+
29+
- run:
30+
name: Saving jars
31+
command: |
32+
mkdir -p ~/jars/
33+
find . -type f -regex ".*/build/libs/.*jar" -exec cp {} ~/jars/ \;
34+
when: always
35+
36+
- store_artifacts:
37+
path: ~/jars
38+
destination: jars
39+
40+
verify:
41+
<<: *defaults
42+
steps:
43+
- checkout
44+
45+
- restore_cache:
46+
key: app-{{ .Branch }}-{{ checksum "build.gradle" }}
47+
48+
- run:
49+
name: Verifying
50+
command: ./gradlew check --stacktrace
51+
52+
- save_cache:
53+
paths:
54+
- ~/.gradle
55+
key: app-{{ .Branch }}-{{ checksum "build.gradle" }}
56+
57+
- run:
58+
name: Saving test results
59+
command: |
60+
mkdir -p ~/junit/
61+
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/junit/ \;
62+
when: always
63+
- store_test_results:
64+
path: ~/junit
65+
66+
- store_artifacts:
67+
path: ./build/reports/tests/test
68+
destination: tests
69+
70+
deploy:
71+
<<: *defaults
72+
steps:
73+
- checkout
74+
75+
- restore_cache:
76+
key: app-{{ .Branch }}-{{ checksum "build.gradle" }}
77+
78+
- run:
79+
name: Uploading to Nexus Sonatype
80+
command: ./gradlew uploadArchives -PLOCAL_UPLOAD=false --stacktrace
81+
82+
workflows:
83+
version: 2
84+
commit:
85+
jobs:
86+
- build
87+
- verify:
88+
requires:
89+
- build
90+
- deploy:
91+
requires:
92+
- verify

.travis.yml

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

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe
3434

3535
## Enforcement
3636

37-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at jdroidframework@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at contact@jdroidtools.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
3838

3939
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
4040

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Java Connector for GitHub API
22

33
## Continuous Integration
4-
|Branch|Status|
5-
| ------------- | ------------- |
6-
|Master|[![Build Status](https://travis-ci.org/maxirosson/jdroid-java-github.svg?branch=master)](https://travis-ci.org/maxirosson/jdroid-java-github)|
7-
|Staging|[![Build Status](https://api.travis-ci.org/maxirosson/jdroid-java-github.svg?branch=staging)](https://travis-ci.org/maxirosson/jdroid-java-github)|
8-
|Production|[![Build Status](https://api.travis-ci.org/maxirosson/jdroid-java-github.svg?branch=production)](https://travis-ci.org/maxirosson/jdroid-java-github)|
4+
|Branch|Status|Workflows|Insights|
5+
| ------------- | ------------- | ------------- | ------------- |
6+
|master|[![CircleCI](https://circleci.com/gh/maxirosson/jdroid-java-github/tree/master.svg?style=svg)](https://circleci.com/gh/maxirosson/jdroid-java-github/tree/master)|[Workflows](https://circleci.com/gh/maxirosson/workflows/jdroid-java-github/tree/master)|[Insights](https://circleci.com/build-insights/gh/maxirosson/jdroid-java-github/master)|
7+
|staging|[![CircleCI](https://circleci.com/gh/maxirosson/jdroid-java-github/tree/staging.svg?style=svg)](https://circleci.com/gh/maxirosson/jdroid-java-github/tree/staging)|[Workflows](https://circleci.com/gh/maxirosson/workflows/jdroid-java-github/tree/staging)|[Insights](https://circleci.com/build-insights/gh/maxirosson/jdroid-java-github/staging)|
8+
|production|[![CircleCI](https://circleci.com/gh/maxirosson/jdroid-java-github/tree/production.svg?style=svg)](https://circleci.com/gh/maxirosson/jdroid-java-github/tree/production)|[Workflows](https://circleci.com/gh/maxirosson/workflows/jdroid-java-github/tree/production)|[Insights](https://circleci.com/build-insights/gh/maxirosson/jdroid-java-github/production)|
99

1010
## Setup
1111

@@ -42,5 +42,3 @@ Add the following configuration to your `build.gradle`, replacing X.Y.Z by the [
4242
Help us to continue with this project:
4343

4444
[![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2UEBTRTSCYA9L)
45-
46-
<a href='https://pledgie.com/campaigns/30030'><img alt='Click here to lend your support to: Jdroid and make a donation at pledgie.com !' src='https://pledgie.com/campaigns/30030.png?skin_name=chrome' border='0' ></a>

0 commit comments

Comments
 (0)