Loading .gitlab-ci.yml +8 −28 Changes for .gitlab-ci.yml: 8 added lines, 28 removed lines. Original line number Original line Diff line number Diff line # The Docker image that will be used to build your app before_script: image: busybox - docker info pages: stages: - prepare - test build: stage: prepare image: docker:19.03.12 script: script: - scripts/setBasePath.sh https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master http://localhost:8080 - echo "producing HTML of spec" - docker build -t ngsi-local -f docker/Dockerfile . artifacts: allow_failure: false paths: # The folder that contains the files to be exposed at the Page URL test: - public stage: test image: docker:19.03.12 services: - ngsi-local script: - echo ${TEST} - 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/generated/full_api.json - docker run --network host --rm -v ${PWD}/:/local openapitools/openapi-generator-cli validate -i /local/spec/updated/generated/full_api.json allow_failure: false # TODO: after gitlab update, the ci should publish the bundled api Loading
.gitlab-ci.yml +8 −28 Changes for .gitlab-ci.yml: 8 added lines, 28 removed lines. Original line number Original line Diff line number Diff line # The Docker image that will be used to build your app before_script: image: busybox - docker info pages: stages: - prepare - test build: stage: prepare image: docker:19.03.12 script: script: - scripts/setBasePath.sh https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master http://localhost:8080 - echo "producing HTML of spec" - docker build -t ngsi-local -f docker/Dockerfile . artifacts: allow_failure: false paths: # The folder that contains the files to be exposed at the Page URL test: - public stage: test image: docker:19.03.12 services: - ngsi-local script: - echo ${TEST} - 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/generated/full_api.json - docker run --network host --rm -v ${PWD}/:/local openapitools/openapi-generator-cli validate -i /local/spec/updated/generated/full_api.json allow_failure: false # TODO: after gitlab update, the ci should publish the bundled api