Skip to content

Commit 5d84cad

Browse files
committed
Migrate from Travis to GitHub Actions
1 parent a53d8a7 commit 5d84cad

File tree

5 files changed

+43
-63
lines changed

5 files changed

+43
-63
lines changed

.github/workflows/maven.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Maven Build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
name: Java 11 Build and Verify
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Check out Git repository
16+
uses: actions/checkout@v2
17+
18+
- name: Set up Java and Maven
19+
uses: actions/setup-java@v1
20+
with:
21+
java-version: 11
22+
23+
- name: Setup HTTPS mirror proxy for Maven Central (due to Chroncile Map POM)
24+
uses: s4u/maven-settings-action@v2.1.0
25+
with:
26+
mirrors: '[{"id": "central-https-mirror", "name": "HTTPS Mirror of Maven Central", "mirrorOf": "central", "url": "https://repo1.maven.org/maven2"}]'
27+
28+
- name: Cache Maven packages
29+
uses: actions/cache@v1
30+
with:
31+
path: ~/.m2
32+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
33+
restore-keys: ${{ runner.os }}-m2
34+
35+
- name: Build with Maven
36+
run: mvn -B verify
37+
38+
- name: Simple benchmark test
39+
run: java -jar target/benchmarks.jar -foe true -wi 0 -i 1 -f 1 -p num=512

.travis-settings.xml

-44
This file was deleted.

.travis.yml

-15
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/lmdbjava/benchmarks.svg?branch=master)](https://travis-ci.org/lmdbjava/benchmarks)
1+
[![Maven Build](https://github.com/lmdbjava/benchmarks/workflows/Maven%20Build/badge.svg)](https://github.com/lmdbjava/benchmarks/actions)
22
[![License](https://img.shields.io/hexpm/l/plug.svg?maxAge=2592000)](http://www.apache.org/licenses/LICENSE-2.0.txt)
33

44
# LmdbJava Benchmarks

pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>au.com.acegi</groupId>
66
<artifactId>acegi-standard-project</artifactId>
7-
<version>0.2.3</version>
7+
<version>0.3.1</version>
88
</parent>
99
<groupId>org.lmdbjava</groupId>
1010
<artifactId>benchmarks</artifactId>
@@ -52,8 +52,8 @@
5252
<url>https://github.com/${github.org}/${github.repo}/issues</url>
5353
</issueManagement>
5454
<ciManagement>
55-
<system>travis-ci</system>
56-
<url>https://travis-ci.org/${github.org}/${github.repo}</url>
55+
<system>GitHub Actions</system>
56+
<url>https://github.com/${github.org}/${github.repo}/actions</url>
5757
</ciManagement>
5858
<properties>
5959
<github.org>lmdbjava</github.org>

0 commit comments

Comments
 (0)