Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CIM - Context Information Management
NGSI-LD API
Commits
7e734834
Unverified
Commit
7e734834
authored
Mar 05, 2021
by
Stefan Wiedemann
Browse files
try with services
parent
be673efa
Pipeline
#6339
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
7e734834
...
...
@@ -5,18 +5,25 @@ before_script:
stages
:
-
test
build
:
stage
:
test
image
:
docker:19.03.12
script
:
-
scripts/setBasePath.sh https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master http://localhost:8080
-
docker build -t ngsi-local -f docker/Dockerfile .
test
:
stage
:
test
image
:
docker:19.03.12
# needs:
# - job:build
services
:
-
image
:
ngsi-local
environment
:
-
FOLDER=/ngsi
needs
:
-
job:build
script
:
-
scripts/setBasePath.sh https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master http://localhost:9090
-
docker run --name fileserver --rm -d -v ${PWD}/:/ngsi -e FOLDER=/ngsi -p 9090:8080 halverneus/static-file-server
-
docker run --network host -i -v ${PWD}/:/data wistefan/redocly-openapi-cli bundle /data/spec/updated/ngsi-ld-spec-open-api.json -o /data/spec/updated/full_api.json
-
docker run --network host --rm -v ${PWD}/:/local openapitools/openapi-generator-cli validate -i /local/spec/updated/full_api.json
-
scripts/setBasePath.sh http://localhost:8090 https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master
after_script
:
-
docker stop fileserver
allow_failure
:
false
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment