aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Igne <git@federicoigne.com>2021-10-21 12:02:40 +0100
committerFederico Igne <git@federicoigne.com>2021-10-21 14:43:30 +0100
commit5da7a4caf34346014fbd496187ed8ee8e4915b1d (patch)
treeb9f059eedf7d236cb806438d6f6e7374ae707b1c
parenta0a22c7146b3fb0b16f6986b69c75fa6a52196bb (diff)
downloadRSAComb-5da7a4caf34346014fbd496187ed8ee8e4915b1d.tar.gz
RSAComb-5da7a4caf34346014fbd496187ed8ee8e4915b1d.zip
Setup tests for both master and develop
We are avoiding slow tests for now since they seem to run out of RAM. Also note that in the GitHub Actions we used a trick to expose the `$HOME` env variable, as described here: https://web.archive.org/web/20211021130639/https://brandur.org/fragments/github-actions-env-vars-in-env-vars A nice badge in the README will also tell the outcome of the process.
-rw-r--r--.github/workflows/scala.yml33
-rw-r--r--README.md9
-rwxr-xr-xrdfox_setup.sh (renamed from getlibs.sh)10
3 files changed, 36 insertions, 16 deletions
diff --git a/.github/workflows/scala.yml b/.github/workflows/scala.yml
index a2308cb..3b18bf9 100644
--- a/.github/workflows/scala.yml
+++ b/.github/workflows/scala.yml
@@ -2,25 +2,40 @@ name: Scala CI
2 2
3on: 3on:
4 push: 4 push:
5 branches: [ master ] 5 branches: [ master, develop ]
6 pull_request: 6 pull_request:
7 branches: [ master ] 7 branches: [ master, develop ]
8 8
9jobs: 9jobs:
10 build: 10
11 build_and_test:
12 name: "Build and test"
11 13
12 runs-on: ubuntu-latest 14 runs-on: ubuntu-latest
13 15
14 steps: 16 steps:
17
15 - uses: actions/checkout@v2 18 - uses: actions/checkout@v2
16 19
17 - name: Set up JDK 1.8 20 - name: "Set up JDK 1.8"
18 uses: actions/setup-java@v1 21 uses: actions/setup-java@v1
19 with: 22 with:
20 java-version: 1.8 23 java-version: 1.8
21 24
22 - name: Get libs 25 - name: Setup RDFox
23 run: ./getlibs.sh 26 run: ./rdfox_setup.sh
27
28 - name: Setup RDFox server path
29 run: echo "SERVER_DIR=$HOME/.RDFox" >> "$GITHUB_ENV"
30 - name: Setup RDFox license
31 env:
32 LICENSE_CONTENT: ${{ secrets.LICENSE_CONTENT }}
33 run: |
34 mkdir -p "$SERVER_DIR"
35 echo "$LICENSE_CONTENT" > "$SERVER_DIR/RDFox.lic"
36
37 - name: Build RSAComb
38 run: sbt compile
24 39
25 - name: Run tests 40 - name: Run tests
26 run: sbt test 41 run: sbt "testOnly * -- -l org.scalatest.tags.Slow"
diff --git a/README.md b/README.md
index 9cd3029..d8c782e 100644
--- a/README.md
+++ b/README.md
@@ -19,13 +19,16 @@ Combined approach for Conjunctive Query answering in RSA
19<a href="https://github.com/KRR-Oxford/RSAComb/issues">Report bug</a> 19<a href="https://github.com/KRR-Oxford/RSAComb/issues">Report bug</a>
20<br/><br/> 20<br/><br/>
21<a href="https://github.com/KRR-Oxford/RSAComb/releases/latest"> 21<a href="https://github.com/KRR-Oxford/RSAComb/releases/latest">
22<img src="https://img.shields.io/github/release/KRR-Oxford/RSAComb.svg?style=for-the-badge" alt="Release badge"> 22 <img src="https://img.shields.io/github/release/KRR-Oxford/RSAComb.svg?style=for-the-badge" alt="Release badge">
23</a> 23</a>
24<a href="https://github.com/KRR-Oxford/RSAComb/issues"> 24<a href="https://github.com/KRR-Oxford/RSAComb/issues">
25<img src="https://img.shields.io/github/issues/KRR-Oxford/RSAComb.svg?style=for-the-badge" alt="Issues badge"> 25 <img src="https://img.shields.io/github/issues/KRR-Oxford/RSAComb.svg?style=for-the-badge" alt="Issues badge">
26</a>
27<a href="https://github.com/KRR-Oxford/RSAComb/actions">
28 <img src="https://img.shields.io/github/workflow/status/KRR-Oxford/RSAComb/Scala%20CI/develop?label=TESTS&style=for-the-badge" alt="GitHub Actions badge">
26</a> 29</a>
27<a href="LICENSE"> 30<a href="LICENSE">
28<img src="https://img.shields.io/github/license/KRR-Oxford/RSAComb.svg?style=for-the-badge" alt="License badge"> 31 <img src="https://img.shields.io/github/license/KRR-Oxford/RSAComb.svg?style=for-the-badge" alt="License badge">
29</a> 32</a>
30<a href="https://doi.org/10.5281/zenodo.5047811"> 33<a href="https://doi.org/10.5281/zenodo.5047811">
31 <img src="https://img.shields.io/badge/DOI-10.5281/zenodo.5047811-blue?style=for-the-badge" alt="DOI badge"> 34 <img src="https://img.shields.io/badge/DOI-10.5281/zenodo.5047811-blue?style=for-the-badge" alt="DOI badge">
diff --git a/getlibs.sh b/rdfox_setup.sh
index be24be7..2091088 100755
--- a/getlibs.sh
+++ b/rdfox_setup.sh
@@ -1,11 +1,13 @@
1#!/bin/sh 1#!/bin/sh
2 2
3VERSION="4.1.0" 3VERSION="5.2.1"
4NAME="RDFox-linux-$VERSION" 4NAME="RDFox-linux-x86_64-$VERSION"
5LINK="https://rdfox-distribution.s3.eu-west-2.amazonaws.com/release/v$VERSION/$NAME.zip" 5LINK="https://rdfox-distribution.s3.eu-west-2.amazonaws.com/release/v$VERSION/$NAME.zip"
6DEST="./lib/" 6DEST="lib"
7 7
8mkdir -p "$DEST" 8mkdir -p "$DEST"
9cd "$DEST"
9wget "$LINK" 10wget "$LINK"
10unzip "$NAME.zip" 11unzip "$NAME.zip"
11cp "./$NAME/lib/JRDFox.jar" "$DEST" 12ln -s "$NAME/lib/JRDFox.jar"
13cd -