-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
52 lines (49 loc) · 1.49 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#####################
# #
# Matey #
# #
#####################
#
# (c) Dylan Van Assche (2022)
# IDLab - Ghent University - imec
#
# CI jobs for the Matey editor
#
#
# CI variables:
# - GITHUB_ACCESS_TOKEN: Access token for accessing Github repositories as variable, example: sdjlsdgfkj;sk
# - GITHUB_REPO: Github repo, example: github.com/RMLio/rmlmapper-java
# - GITHUB_ARTIFACTS: Artifacts to upload together with th release, example: target/*.jar
# - NPM_TOKEN: Access token for accessing NPM repositories, example: sdjlsdgfkj;skf145
# External scripts:
# - ./get-changes.sh: returns the release notes for the Github Release description
# - ./build-release.sh: builds a release artifact and stores it in the $GITHUB_ARTIFACTS location
#
# Always use protected & masked mode if possible for CI variables!
# See https://gitlab.ilabt.imec.be/rml/util/ci-templates for a detailed explanation
stages:
- lint
- unittests
- deploy
include:
# Make sure the CHANGELOG is always updated
- project: 'rml/util/ci-templates'
ref: main
file: 'CHANGELOG.gitlab-ci.yml'
# Cancel pipeline if a newer pipeline is running
default:
interruptible: true
# Run unittests
Unittests:
image: alpine:latest
stage: unittests
before_script:
- apk add nodejs npm java-jre-headless
- npm install -g @rmlio/rmlmapper-webapi
script:
- rmlmapper-webapi --logLevel=debug &
- sleep 3
- npm install
- npm run test
except:
- master