Skip to content

Commit 565f9a9

Browse files
committed
Switch from Travis CI to GitHub Actions
1 parent beb6de2 commit 565f9a9

File tree

9 files changed

+86
-25
lines changed

9 files changed

+86
-25
lines changed

.github/build.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/ci-build.sh
3+
sh ci-build.sh

.github/setup.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/ci-setup-github-actions.sh
3+
sh ci-setup-github-actions.sh

.github/workflows/build-main.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Cache m2 folder
16+
uses: actions/cache@v2
17+
env:
18+
cache-name: cache-m2
19+
with:
20+
path: ~/.m2/repository
21+
key: ${{ runner.os }}-build-${{ env.cache-name }}
22+
restore-keys: |
23+
${{ runner.os }}-build-${{ env.cache-name }}-
24+
${{ runner.os }}-build-
25+
${{ runner.os }}-
26+
27+
- name: Set up JDK 8
28+
uses: actions/setup-java@v2
29+
with:
30+
java-version: '8'
31+
distribution: 'zulu'
32+
- name: Set up CI environment
33+
run: .github/setup.sh
34+
- name: Execute the build
35+
run: .github/build.sh
36+
env:
37+
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
38+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
39+
MAVEN_USER: ${{ secrets.MAVEN_USER }}
40+
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
41+
OSSRH_PASS: ${{ secrets.OSSRH_PASS }}
42+
SIGNING_ASC: ${{ secrets.SIGNING_ASC }}

.github/workflows/build-pr.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: build PR
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Cache m2 folder
16+
uses: actions/cache@v2
17+
env:
18+
cache-name: cache-m2
19+
with:
20+
path: ~/.m2/repository
21+
key: ${{ runner.os }}-build-${{ env.cache-name }}
22+
restore-keys: |
23+
${{ runner.os }}-build-${{ env.cache-name }}-
24+
${{ runner.os }}-build-
25+
${{ runner.os }}-
26+
27+
- name: Set up JDK 8
28+
uses: actions/setup-java@v2
29+
with:
30+
java-version: '8'
31+
distribution: 'zulu'
32+
- name: Set up CI environment
33+
run: .github/setup.sh
34+
- name: Execute the build
35+
run: .github/build.sh

.travis.yml

-17
This file was deleted.

.travis/build.sh

-3
This file was deleted.

.travis/signingkey.asc.enc

-9.41 KB
Binary file not shown.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![](https://img.shields.io/maven-central/v/org.scijava/scijava-common.svg)](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.scijava%22%20AND%20a%3A%22scijava-common%22)
2-
[![](https://travis-ci.org/scijava/scijava-common.svg?branch=master)](https://travis-ci.org/scijava/scijava-common)
2+
[![](https://github.com/scijava/scijava-common/actions/workflows/build-main.yml/badge.svg)](https://github.com/scijava/scijava-common/actions/workflows/build-main.yml)
33
[![Join the chat at https://gitter.im/scijava/scijava-common](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/scijava/scijava-common?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
44

55
SciJava Common is a common library for SciJava software. It provides a

pom.xml

+2-4
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@
149149
<url>https://github.com/scijava/scijava-common/issues</url>
150150
</issueManagement>
151151
<ciManagement>
152-
<system>Travis CI</system>
153-
<url>https://travis-ci.org/scijava/scijava-common</url>
152+
<system>GitHub Actions</system>
153+
<url>https://github.com/scijava/scijava-common/actions</url>
154154
</ciManagement>
155155

156156
<properties>
@@ -159,8 +159,6 @@
159159
<license.licenseName>bsd_2</license.licenseName>
160160
<license.projectName>SciJava Common shared library for SciJava software.</license.projectName>
161161
<license.copyrightOwners>SciJava developers.</license.copyrightOwners>
162-
163-
<parsington.version>2.0.0</parsington.version>
164162
</properties>
165163

166164
<dependencies>

0 commit comments

Comments
 (0)