Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
saref4agri
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SAREF
saref4agri
Commits
673ffe86
Commit
673ffe86
authored
4 years ago
by
Maxime Lefrançois
Browse files
Options
Downloads
Patches
Plain Diff
update ci/cd
parent
a49c9c9f
No related branches found
No related tags found
No related merge requests found
Pipeline
#189
failed
4 years ago
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+54
-8
54 additions, 8 deletions
.gitlab-ci.yml
examples/saref4agri-ex1.ttl
+7
-0
7 additions, 0 deletions
examples/saref4agri-ex1.ttl
ontology/saref4agri.ttl
+1
-1
1 addition, 1 deletion
ontology/saref4agri.ttl
with
62 additions
and
9 deletions
.gitlab-ci.yml
+
54
−
8
View file @
673ffe86
image
:
openjdk:8-jdk
develop
:
variables
:
SAREF_DEV_KEY
:
<my_private_key>
SAREF_PORTAL_KEY
:
<my_private_key>
before_script
:
-
eval $(ssh-agent -s)
-
ssh-add <(echo "$SAREF_DEV_KEY")
-
mkdir -p ~/.ssh
-
'
[[
-f
/.dockerenv
]]
&&
echo
-e
"Host
*\n\tStrictHostKeyChecking
no\n\n"
>
~/.ssh/config'
stages
:
-
test
-
build
-
deploy
test-develop
:
stage
:
test
script
:
-
curl -L -o saref-pipeline.jar "https://gitlab.emse.fr/saref/saref-pipeline/-/jobs/artifacts/master/raw/target/saref-pipeline.jar?job=build"
-
java -jar saref-pipeline.jar develop -s
-
java -jar saref-pipeline.jar develop -s && touch target/success
allow_failure
:
true
except
:
-
/^prerelease-v/
-
/^release-v/
...
...
@@ -11,21 +28,50 @@ develop:
when
:
always
paths
:
-
target/site
-
target/
report_output.xml
-
target/
success
reports
:
junit
:
target/report_output.xml
release
:
test-prerelease
:
stage
:
test
script
:
-
curl -L -o saref-pipeline.jar "https://gitlab.emse.fr/saref/saref-pipeline/-/jobs/artifacts/master/raw/target/saref-pipeline.jar?job=build"
-
java -jar saref-pipeline.jar release
only
:
-
java -jar saref-pipeline.jar release -t && touch target/success
allow_failure
:
true
only
:
-
/^prerelease-v/
-
/^release-v/
artifacts
:
when
:
always
paths
:
-
target/site
-
target/
report_output.xml
-
target/
success
reports
:
junit
:
target/report_output.xml
deploy-report
:
stage
:
deploy
script
:
-
scp -pr '-P 29419' target/site saref-dev@saref.etsi.org:~/snapshot/$CI_PIPELINE_ID
-
echo "SAREF pipeline report https://saref.etsi.org/snapshot/$CI_PIPELINE_ID/report.html"
-
exit $(test -f target/success) $?
except
:
-
/^release-v/
test-release
:
stage
:
test
script
:
-
curl -L -o saref-pipeline.jar "https://gitlab.emse.fr/saref/saref-pipeline/-/jobs/artifacts/master/raw/target/saref-pipeline.jar?job=build"
-
java -jar saref-pipeline.jar release -t
only
:
-
/^release-v/
trigger-release
:
stage
:
deploy
only
:
-
/^release-v/
variables
:
SAREF_DEV_KEY
:
$SAREF_DEV_KEY
SAREF_PORTAL_KEY
:
$SAREF_PORTAL_KEY
trigger
:
project
:
saref/saref-portal
branch
:
master
This diff is collapsed.
Click to expand it.
examples/saref4agri-ex1.ttl
+
7
−
0
View file @
673ffe86
...
...
@@ -23,6 +23,13 @@
dcterms:
title
"SAREF4AGRI example"
@en
;
dcterms:
description
"SAREF4AGRI example"
@en
.
obo:
TAXRANK_0000004
a
owl:
Class
.
obo:
TAXRANK_0000006
a
owl:
Class
.
obo:
TAXRANK_0000003
a
owl:
Class
.
obo:
TAXRANK_0000016
a
owl:
Class
.
obo:
TAXRANK_0000017
a
owl:
Class
.
<https://saref.etsi.org/saref4agri/v1.1.2/example/saref4agri-ex1/5-5-5_crop_fertilizer>
rdf:
type
owl:
NamedIndividual
;
.
...
...
This diff is collapsed.
Click to expand it.
ontology/saref4agri.ttl
+
1
−
1
View file @
673ffe86
...
...
@@ -29,7 +29,7 @@
dcterms:
license
<https://forge.etsi.org/etsi-software-license>
;
dcterms:
modified
"2020-06-05"
^^
xsd:
date
;
dcterms:
publisher
<https://www.etsi.org/>
;
dcterms:
source
<https://
forge
.etsi.org/
rep/SAREF
/saref4agri/>
;
dcterms:
source
<https://
saref
.etsi.org/
sources
/saref4agri/>
;
rdfs:
seeAlso
<https://www.etsi.org/deliver/etsi_ts/103400_103499/10341006/01.01.02_60/ts_10341006v010102p.pdf>
;
vann:
preferredNamespacePrefix
"s4agri"
;
vann:
preferredNamespaceUri
"https://saref.etsi.org/saref4agri/"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment