Skip to content

Commit

Permalink
build: add fuseki (dsp-30) (#1653)
Browse files Browse the repository at this point in the history
  • Loading branch information
subotic committed Jun 26, 2020
1 parent 4f26e22 commit e4fd02c
Show file tree
Hide file tree
Showing 232 changed files with 1,422 additions and 49,630 deletions.
3 changes: 1 addition & 2 deletions .dockerignore
Expand Up @@ -4,5 +4,4 @@
**/.gitignore
**/.idea
docs
private
triplestores
private
76 changes: 26 additions & 50 deletions .github/workflows/main.yml
Expand Up @@ -5,9 +5,6 @@ on:
release:
types: [published]

env:
KNORA_GDB_LICENSE: ${{ github.workspace }}/ci/graphdb/UNIBAS_DEV_GRAPHDB_SE_latest-31-12-2020_1cores.license

jobs:
compile:
name: Build Everything
Expand All @@ -16,30 +13,10 @@ jobs:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
run: echo "$STRATEGY_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "$MATRIX_CONTEXT"
- uses: joschi/setup-jdk@v2
with:
java-version: '11' # The OpenJDK version to make available on the path
architecture: 'x64' # defaults to 'x64'
- name: cache maven artifacts
uses: actions/cache@v1
with:
Expand All @@ -56,7 +33,7 @@ jobs:
docker system prune --all --force --volumes
df -h
- name: Run build everything
run: sbt clean test:compile it:compile stage
run: make build-all-scala
- name: Disk Free After
run: |
df -h
Expand All @@ -71,12 +48,10 @@ jobs:
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Checkout private ci-assets
uses: actions/checkout@v2
- uses: joschi/setup-jdk@v2
with:
repository: dasch-swiss/dsp-ci-assets
token: ${{ secrets.GitHub_PAT }} # `GitHub_PAT` is a secret that contains the PAT.
path: ci
java-version: '11' # The OpenJDK version to make available on the path
architecture: 'x64' # defaults to 'x64'
- name: cache maven artifacts
uses: actions/cache@v1
with:
Expand Down Expand Up @@ -112,12 +87,10 @@ jobs:
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Checkout private ci-assets
uses: actions/checkout@v2
- uses: joschi/setup-jdk@v2
with:
repository: dasch-swiss/dsp-ci-assets
token: ${{ secrets.GitHub_PAT }} # `GitHub_PAT` is a secret that contains the PAT.
path: ci
java-version: '11' # The OpenJDK version to make available on the path
architecture: 'x64' # defaults to 'x64'
- name: cache maven artifacts
uses: actions/cache@v1
with:
Expand Down Expand Up @@ -153,12 +126,10 @@ jobs:
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Checkout private ci-assets
uses: actions/checkout@v2
- uses: joschi/setup-jdk@v2
with:
repository: dasch-swiss/dsp-ci-assets
token: ${{ secrets.GitHub_PAT }} # `GitHub_PAT` is a secret that contains the PAT.
path: ci
java-version: '11' # The OpenJDK version to make available on the path
architecture: 'x64' # defaults to 'x64'
- name: cache maven artifacts
uses: actions/cache@v1
with:
Expand Down Expand Up @@ -194,12 +165,10 @@ jobs:
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Checkout private ci-assets
uses: actions/checkout@v2
- uses: joschi/setup-jdk@v2
with:
repository: dasch-swiss/dsp-ci-assets
token: ${{ secrets.GitHub_PAT }} # `GitHub_PAT` is a secret that contains the PAT.
path: ci
java-version: '11' # The OpenJDK version to make available on the path
architecture: 'x64' # defaults to 'x64'
- uses: actions/setup-java@v1
with:
java-version: '11.x.x'
Expand All @@ -221,7 +190,7 @@ jobs:
docker system prune --all --force --volumes
df -h
- name: test repository update
run: cd $GITHUB_WORKSPACE && make test-repository-update
run: make test-repository-update
- name: Disk Free After
run: |
df -h
Expand All @@ -235,6 +204,10 @@ jobs:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: joschi/setup-jdk@v2
with:
java-version: '11' # The OpenJDK version to make available on the path
architecture: 'x64' # defaults to 'x64'
- name: cache maven artifacts
uses: actions/cache@v1
with:
Expand Down Expand Up @@ -276,6 +249,10 @@ jobs:
- uses: actions/checkout@v1
with:
fetch-depth: 50
- uses: joschi/setup-jdk@v2
with:
java-version: '11' # The OpenJDK version to make available on the path
architecture: 'x64' # defaults to 'x64'
- name: cache maven artifacts
uses: actions/cache@v1
with:
Expand All @@ -294,7 +271,6 @@ jobs:
- name: build and publish all images to Dockerhub
run: |
echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u ${{ secrets.DOCKER_USER }} --password-stdin
mkdir -p $( dirname "$KNORA_GDB_LICENSE") && touch "$KNORA_GDB_LICENSE"
make publish-all-images
- name: Disk Free After
run: |
Expand Down
5 changes: 2 additions & 3 deletions .gitignore
Expand Up @@ -45,9 +45,8 @@ sipi/test
*.bak
.sbtrc

/knora-jena-fuseki
/knora-sipi
/knora-graphdb-se
/knora-graphdb-free
/knora-assets
/knora-upgrade

Expand All @@ -58,5 +57,5 @@ knora-graphdb-free
knora-graphdb-se
knora-sipi
knora-upgrade
triplestores/fuseki-tomcat/system
triplestores/fuseki/system
dump.rdb

0 comments on commit e4fd02c

Please sign in to comment.