Skip to content

Commit

Permalink
Move builds from Travis to Github
Browse files Browse the repository at this point in the history
  • Loading branch information
crew102 committed Jun 27, 2021
1 parent 79535c5 commit f39fe24
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 9 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: CI build

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Docker image
run: docker build -t rapidrake-image .
- name: Run tests inside container
run: docker run rapidrake-image
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM ubuntu

ADD . /home/rapidrake-java

WORKDIR /home/rapidrake-java

RUN apt-get update; \
apt-get install -y --no-install-recommends openjdk-8-jdk maven wget; \
update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java; \
mkdir model-bin; \
wget -P model-bin http://opennlp.sourceforge.net/models-1.5/en-sent.bin; \
wget -P model-bin http://opennlp.sourceforge.net/models-1.5/en-pos-maxent.bin

ENTRYPOINT ["mvn", "test"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ rapidrake

> A fast version of the Rapid Automatic Keyword Extraction (RAKE) algorithm
[![Linux Build Status](https://travis-ci.org/crew102/rapidrake-java.svg?branch=master)](https://travis-ci.org/crew102/rapidrake-java)
[![CI build](https://github.com/crew102/rapidrake-java/actions/workflows/ci-build.yml/badge.svg)](https://github.com/crew102/rapidrake-java/actions/workflows/ci-build.yml)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.crew102/rapidrake/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.crew102/rapidrake)

Installation
Expand Down

0 comments on commit f39fe24

Please sign in to comment.