Commit 6d80c7c5 authored by norvell's avatar norvell
Browse files

Add update-scripts-repo

parent 323f7b80
Loading
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -31,7 +31,10 @@ variables:
  TESTCASE_TIMEOUT_LTV_SANITIZERS: 2400
  BASOP_REFERENCE_BRANCH: "ivas-float-update"
  SCALE_FACTOR: "3.162"
  # Adaptation for BASOP CI
  PRM_FILES: "scripts/config/self_test.prm scripts/config/self_test_ltv.prm"
  SCRIPTS_DIR: "/usr/local/scripts"
  BASOP_CI_BRANCH_PC_REPO: "basop-ci-branch"


default:
@@ -191,6 +194,20 @@ stages:
  - git pull
  - Pop-Location

.update-scripts-repo: &update-scripts-repo
  - cd $SCRIPTS_DIR
  - sed -i '/fetch/d' .git/config # Remove all fetch lines to clean out dead links
  - git remote set-branches --add origin $BASOP_CI_BRANCH_PC_REPO # Add currently used branch
  - git fetch
  - git restore . # Just as a precaution
  - git checkout $BASOP_CI_BRANCH_PC_REPO
  - git pull
  - cd -
  - cp -r $SCRIPTS_DIR/ci .
  - cp -r $SCRIPTS_DIR/scripts .
  - cp -r $SCRIPTS_DIR/tests .
  - cp $SCRIPTS_DIR/pytest.ini .

.disable-limiter: &disable-limiter
# automatically enable #define DISABLE_LIMITER in options.h, handling both /**/-comment and //-comment
  - sed -i.bak -e "s/\/\*[[:space:]]*\(#define[[:space:]]*DISABLE_LIMITER\)[[:space:]]*\*\//\1/g" ./lib_com/options.h
@@ -301,6 +318,7 @@ stages:
  tags:
    - ivas-linux
  before_script:
    - *update-scripts-repo
    - python3 ci/remove_unsupported_testcases.py $PRM_FILES    

.build-job-linux: