Unverified Commit 86d0f63e authored by Stefan Wiedemann's avatar Stefan Wiedemann
Browse files

try with services

parent 7e734834
Loading
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -3,14 +3,16 @@ before_script:
  - docker info

stages:
  - prepare
  - test

build:
  stage: test
  stage: prepare
  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 .
  allow_failure: false

test:
  stage: test
@@ -19,8 +21,6 @@ test:
    - 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 --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