Skip to content
.gitlab-ci.yml 1004 B
Newer Older
canterafonsj's avatar
canterafonsj committed
# This file is a template, and might need editing before it works on your project.
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
Stefan Wiedemann's avatar
Stefan Wiedemann committed
image: docker:19.03.12
canterafonsj's avatar
canterafonsj committed

before_script:
Stefan Wiedemann's avatar
Stefan Wiedemann committed
  - docker info

stages:
  - test

test:
  stage: test
canterafonsj's avatar
canterafonsj committed
  script:
Stefan Wiedemann's avatar
Stefan Wiedemann committed
   - scripts/setBasePath.sh https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master http://localhost:9090
Stefan Wiedemann's avatar
Stefan Wiedemann committed
   - docker run --name fileserver --rm -d -v ${PWD}/:/ngsi  -e FOLDER=/ngsi  -p 9090:8080 halverneus/static-file-server
Stefan Wiedemann's avatar
Stefan Wiedemann committed
   - 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
Stefan Wiedemann's avatar
Stefan Wiedemann committed
   - 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
Stefan Wiedemann's avatar
Stefan Wiedemann committed
  after_script:
Stefan Wiedemann's avatar
Stefan Wiedemann committed
   - docker stop fileserver
Stefan Wiedemann's avatar
Stefan Wiedemann committed
  allow_failure: false
canterafonsj's avatar
canterafonsj committed