Skip to content

Commit 07d4a40

Browse files
Merge pull request #4 from VolkerHartmann/testgithubActions
Switch to github actions.
2 parents 692e2ce + 84d8a0b commit 07d4a40

File tree

5 files changed

+48
-36
lines changed

5 files changed

+48
-36
lines changed

.github/workflows/gradle.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# This workflow will build a Java project with Gradle
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+
name: build
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build-jdk:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
# Use both LTS releases and latest one
18+
jdk: [ 8, 13 ]
19+
steps:
20+
- name: Checkout repo
21+
uses: actions/checkout@v2
22+
- name: Set up OpenJDK
23+
uses: actions/setup-java@v1
24+
with:
25+
java-version: ${{ matrix.jdk }}
26+
- name: Pull elasticsearch image from docker
27+
run: docker pull elasticsearch:7.9.3
28+
- name: Create and run elasticsearch container
29+
run: docker run -d --name elasticsearch4metastore -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:7.9.3
30+
- name: Install python
31+
run: sudo apt-get install --assume-yes python3 python3-setuptools python3-pip
32+
- name: Update pip
33+
run: pip3 install --upgrade pip
34+
- name: Install libraries via pip (xmltodict and wget)
35+
run: pip3 install xmltodict wget
36+
- name: Grant execute permission for gradlew
37+
run: chmod +x gradlew
38+
- name: Build with Gradle
39+
run: ./gradlew -Ptravis clean check jacocoTestReport
40+
- name: Codecov
41+
uses: codecov/codecov-action@v1
42+
with:
43+
files: ./build/reports/jacoco/test/jacocoTestReport.xml #optional
44+

.travis.yml

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

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
- Switch to gitHub Actions for CI
89

910
## [0.0.4] - date 2020-12-16
1011
### Fixed

README.md

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

3-
[![Build Status](https://travis-ci.com/kit-data-manager/indexing-service.svg?branch=master)](https://travis-ci.com/kit-data-manager/indexing-service)
4-
[![Coverage Status](https://coveralls.io/repos/github/kit-data-manager/indexing-service/badge.svg?branch=master)](https://coveralls.io/github/kit-data-manager/indexing-service?branch=master)
3+
![GitHub](../../actions/workflows/gradle.yml/badge.svg)
4+
[![codecov](https://codecov.io/gh/kit-data-manager/indexing-service/branch/master/graph/badge.svg?token=J9TP8YSZU6)](https://codecov.io/gh/kit-data-manager/indexing-service)
55
![License](https://img.shields.io/github/license/kit-data-manager/indexing-service.svg)
66

77
:warning:

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ dependencies {
7979
implementation("org.json:json:20200518")
8080

8181
// datamanager
82-
implementation("edu.kit.datamanager:generic-message-consumer:0.2.0")
82+
implementation("edu.kit.datamanager:generic-message-consumer:0.2.1-SNAPSHOT")
8383
implementation "edu.kit.datamanager:service-base:0.2.0"
8484

8585
runtimeOnly 'org.apache.httpcomponents:httpclient:4.5.6'

0 commit comments

Comments
 (0)