Skip to content

Commit c88d5fa

Browse files
authored
Migrate to GH Actions. (#9)
Build/test against 1.8+ Update jacoco for 14+ support. Update build badge.
1 parent 8286ba0 commit c88d5fa

File tree

5 files changed

+47
-29
lines changed

5 files changed

+47
-29
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
java: [ 8, 9, 10, 11, 12, 13, 14, 15 ]
15+
env:
16+
JAVA: ${{ matrix.java }}
17+
name: Java ${{ matrix.java }}
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Setup Java
21+
uses: actions/setup-java@v1
22+
with:
23+
java-version: ${{ matrix.java }}
24+
- name: Test
25+
run: mvn -B test jacoco:report
26+
- uses: codecov/codecov-action@v1
27+
with:
28+
env_vars: JAVA
29+
deploy:
30+
runs-on: ubuntu-latest
31+
needs: test
32+
if: github.ref == 'refs/heads/master'
33+
name: Deploy
34+
steps:
35+
- uses: actions/checkout@v2
36+
- name: Setup Java
37+
uses: actions/setup-java@v1
38+
with:
39+
java-version: 8
40+
- name: Deploy
41+
run: mvn -B clean deploy --settings ci-settings.xml -DskipTests

.travis.yml

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# bencode
22

3-
[![Build Status](https://travis-ci.org/dampcake/bencode.svg?branch=master)](https://travis-ci.org/dampcake/bencode)
3+
[![Build Status](https://github.com/dampcake/bencode/workflows/Build/badge.svg?branch=master)](https://github.com/dampcake/bencode/actions?query=branch%3Amaster)
44
[![Coverage Status](https://codecov.io/gh/dampcake/bencode/branch/master/graph/badge.svg)](https://codecov.io/gh/dampcake/bencode)
55
[![Maven](https://img.shields.io/maven-central/v/com.dampcake/bencode.svg)](http://search.maven.org/#search%7Cga%7C1%7Ccom.dampcake.bencode)
66
[![GitHub license](https://img.shields.io/github/license/dampcake/bencode.svg)](https://github.com/dampcake/bencode/blob/master/LICENSE)
77

88
Bencode Input/Output Streams for Java
99

10-
Requires JDK 1.6 or higher
10+
Requires JDK 1.8 or higher
1111

1212
[Bencode Spec](https://wiki.theory.org/BitTorrentSpecification#Bencoding)
1313

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
<password>${env.SONATYPE_PASSWORD}</password>
1111
</server>
1212
</servers>
13-
</settings>
13+
</settings>

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@
115115
<artifactId>maven-compiler-plugin</artifactId>
116116
<version>3.8.1</version>
117117
<configuration>
118-
<source>1.6</source>
119-
<target>1.6</target>
118+
<source>1.8</source>
119+
<target>1.8</target>
120120
<compilerArgument>-Xlint:unchecked</compilerArgument>
121121
</configuration>
122122
</plugin>
@@ -156,7 +156,7 @@
156156
<plugin>
157157
<groupId>org.jacoco</groupId>
158158
<artifactId>jacoco-maven-plugin</artifactId>
159-
<version>0.8.4</version>
159+
<version>0.8.6</version>
160160
<executions>
161161
<execution>
162162
<goals>

0 commit comments

Comments
 (0)