Unverified Commit fb5fcd0d authored by Maxime Lefrançois's avatar Maxime Lefrançois
Browse files

use new saref-pypeline checker

parent f17e1014
Loading
Loading
Loading
Loading
+30 −29
Original line number Diff line number Diff line
# variables:
#     GIT_STRATEGY: fetch
#     GIT_DEPTH: 0
#     SAREF_DEV_KEY: <my_private_key>
#     SAREF_PORTAL_KEY: <my_private_key>
#     SAREF_PORT: <port>
variables:
  GIT_STRATEGY: fetch
  GIT_DEPTH: 0
  SAREF_DEV_KEY: <my_private_key>
  SAREF_PORTAL_KEY: <my_private_key>
  SAREF_PORT: <port>

stages:
  - mock
#   - test
  - test
#   - build
#   - deploy

mock:
  stage: mock
test-develop:
  stage: test
  image: labs.etsi.org:5050/saref/saref-pypeline:check
  script:
    - "true"

# test-develop:
#   stage: test
#   image: openjdk:11-jre
#   script:
#     - curl -L -o saref-pipeline.jar "https://labs.etsi.org/rep/saref/saref-pipeline/-/releases/permalink/latest/downloads/saref-pipeline.jar"
#     - java -jar saref-pipeline.jar develop -s && touch target/success
#   allow_failure: true
    - saref-dev -VV .
    - |
      if grep -q "^* ERROR" target/output.log; then
        echo -e "❌ Build failed: found error(s) in output.log: \n $(grep '^* ERROR' target/output.log)"
        exit 1
      else
        echo "✅ Build succeeded: no errors found"
      fi
  # except:
#     - /^prerelease-v/
#     - /^release-v/
#   artifacts:
#     when: always
#     paths:
#       - target/site
#       - target/success
#     reports:
#       junit: target/report_output.xml
  #   - /^develop-v/
  artifacts:
    when: always
    paths:
      - target/output.log
  cache:
    key: target-cache
    paths:
      - target/dataset/
      - target/metadata.yml


# test-prerelease:
#   stage: test