Commit 0de2bdb4 authored by Fabian Müller's avatar Fabian Müller
Browse files

Move before_script to global job templates

parent a5fc24de
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -5,10 +5,18 @@
.job-linux:
  tags:
    - ivas-linux
  before_script:
    - |
      if [[ "$IVAS_CODEC_CI_REF" == "" ]]; then echo "Error: IVAS_CODEC_CI_REF not set" && exit 1; fi
    - git clone "$CI_SERVER_URL"/ivas-codec-pc/ivas-codec-ci.git --depth 1 --branch "$IVAS_CODEC_CI_REF"

.job-windows:
  tags:
    - ivas-windows
  before_script:
    - |
      if (-not $env:IVAS_CODEC_CI_REF) { echo "Error: IVAS_CODEC_CI_REF not set" ; exit 1 }
    - git clone $env:CI_SERVER_URL/ivas-codec-pc/ivas-codec-ci.git --depth 1 --branch $env:IVAS_CODEC_CI_REF

.build-job-linux:
  stage: build
@@ -16,10 +24,6 @@
    - .job-linux
  timeout: "4 minutes"
  needs: []
  before_script:
    - |
      if [[ "$IVAS_CODEC_CI_REF" == "" ]]; then echo "Error: IVAS_CODEC_CI_REF not set" && exit 1; fi
    - git clone "$CI_SERVER_URL"/ivas-codec-pc/ivas-codec-ci.git --depth 1 --branch "$IVAS_CODEC_CI_REF"

.build-job-windows:
  stage: build
@@ -27,10 +31,6 @@
    - .job-windows
  needs: []
  timeout: "4 minutes"
  before_script:
    - |
      if (-not $env:IVAS_CODEC_CI_REF) { echo "Error: IVAS_CODEC_CI_REF not set" ; exit 1 }
    - git clone $env:CI_SERVER_URL/ivas-codec-pc/ivas-codec-ci.git --depth 1 --branch $env:IVAS_CODEC_CI_REF

# nothing to see here, basically an alias
.test-job-linux:
@@ -42,6 +42,7 @@
  extends:
    - .test-job-linux
  before_script:
    - !reference [.test-job-linux, before_script]
    - if [ ! -d "$TESTV_DIR" ]; then mkdir -p $TESTV_DIR; fi
    - python3 scripts/prepare_combined_format_inputs.py
    - cp -r scripts/testv/* $TESTV_DIR/