Commit 7af4b755 authored by Stefan Wiedemann's avatar Stefan Wiedemann
Browse files

update ci

parent 88a83753
Loading
Loading
Loading
Loading
Loading
+7 −10
Original line number Original line Diff line number Diff line
# This file is a template, and might need editing before it works on your project.
# 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:
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
# https://hub.docker.com/r/library/node/tags/
image: node::13.7-alpine
image: docker:19.03.12

# This folder is cached between builds
# http://docs.rep.com/ce/ci/yaml/README.html#cache
cache:
  paths:
  - node_modules/


before_script:
before_script:
  - yarn
  - docker info


stages:
stages:
  - test
  - test
@@ -18,7 +12,10 @@ stages:
test:
test:
  stage: test
  stage: test
  script:
  script:
   - echo "Running tests..."   
   - scripts/setBasePath.sh https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master http://localhost:8090
   - yarn test
   - docker run --name spec-server --rm -d -v ${PWD}/:/ngsi  -e FOLDER=/ngsi  -p 8090:8080 halverneus/static-file-server
   - docker run --network host -it -v ${PWD}/:/data broothie/redoc-cli bundle spec/updated/ngsi-ld-spec-open-api.json -o 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
  allow_failure: true
  allow_failure: true
+3014 −0

File added.

Preview size limit exceeded, changes collapsed.