.gitlab-ci.yml 859 Bytes
Newer Older
canterafonsj's avatar
canterafonsj committed

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

stages:
  - test

Stefan Wiedemann's avatar
Stefan Wiedemann committed
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 .

Stefan Wiedemann's avatar
Stefan Wiedemann committed
test:
  stage: test
Stefan Wiedemann's avatar
Stefan Wiedemann committed
  image: docker:19.03.12
Stefan Wiedemann's avatar
Stefan Wiedemann committed
  services:
    - image: ngsi-local
      environment:
        - FOLDER=/ngsi
  needs:
    - job:build
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
   - 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
Stefan Wiedemann's avatar
Stefan Wiedemann committed
  allow_failure: false
canterafonsj's avatar
canterafonsj committed