Skip to content
Snippets Groups Projects
Select Git revision
  • develop default
  • 2023.w43
  • 2023.w42
  • 2023.w41
  • 2023.w40
  • 2023.w39
  • 2023.w38
  • 2023.w37
  • 2023.w36
  • 2023.w34
  • 2023.w33
  • 2023.w32
  • v2.0.0
  • 2023.w31
  • 2023.w30
  • 2023.w29
  • 2023.w28
  • 2023.w27
  • 2023.w26
  • 2023.w25
  • 2023.w24
21 results

.gitlab-ci.yml

Blame
  • .gitlab-ci.yml 2.06 KiB
    job1:
      script:
       - echo $PWD
       - echo $USER
       - echo $OAI_USER
       - echo $OAI_EXTRA_ARGS
       - echo $NFS_SHARE_DIR
       - echo $EXTERNAL_SHARE_DIR
       - echo $SHELL
       - git rev-parse --abbrev-ref HEAD
       - git_head=`git rev-parse HEAD`
       - echo $git_head
       - tmp=`git show-ref --head | grep $git_head`
       - tmp=(${tmp///// })
       - git_branch=${tmp[@]:(-1)}
       - echo $git_branch
       - source oaienv
       - echo $OPENAIR_DIR
       - NFS_TEST_RESULTS_DIR=$NFS_SHARE_DIR/$git_branch/$git_head
       - EXTERNAL_SHARE_RESULTS_DIR=$EXTERNAL_SHARE_DIR/$git_branch/$git_head
       - echo $NFS_TEST_RESULTS_DIR
       - echo $EXTERNAL_SHARE_RESULTS_DIR
       - echo $NRUNS_LTE_SOFTMODEM
       - echo $TIMEOUT_CMD
       - mkdir -p $OPENAIR_DIR/cmake_targets/autotests/log
       - python $OPENAIR_DIR/cmake_targets/autotests/run_exec_lte-softmodem_tests.py -c -5GRepoHeadVersion $git_head -n $NFS_SHARE_DIR -u $OAI_USER -p $OAI_PASS  $OAI_EXTRA_ARGS -g "$OAI_TEST_CASE_GROUP">& $OPENAIR_DIR/cmake_targets/autotests/python_autotest_cleanup.log
       - python $OPENAIR_DIR/cmake_targets/autotests/run_exec_lte-softmodem_tests.py -r -5GRepoHeadVersion $git_head -n $NFS_SHARE_DIR -u $OAI_USER -p $OAI_PASS `echo $OAI_EXTRA_ARGS` -g "$OAI_TEST_CASE_GROUP" --nrun_lte_softmodem $NRUNS_LTE_SOFTMODEM --timeout_cmd $TIMEOUT_CMD >& $OPENAIR_DIR/cmake_targets/autotests/python_autotest.log
       - mv $OPENAIR_DIR/cmake_targets/autotests/python_autotest.log $OPENAIR_DIR/cmake_targets/autotests/log/python_autotest.log
       - mv $OPENAIR_DIR/cmake_targets/autotests/python_autotest_cleanup.log $OPENAIR_DIR/cmake_targets/autotests/log/python_autotest_cleanup.log
       - sshpass -p "$OAI_PASS" rsync -az -e "ssh -o StrictHostKeyChecking=no "  --rsync-path="mkdir -p $NFS_TEST_RESULTS_DIR && rsync" $OPENAIR_DIR/cmake_targets/autotests/log $OAI_USER@localhost:$NFS_TEST_RESULTS_DIR
       - sshpass -p "$OAI_PASS" rsync -az -e "ssh -o StrictHostKeyChecking=no "  --rsync-path="mkdir -p $EXTERNAL_SHARE_DIR && rsync" $OPENAIR_DIR/cmake_targets/autotests/log $OAI_USER@localhost:$EXTERNAL_SHARE_DIR
       - cat $OPENAIR_DIR/cmake_targets/autotests/log/results_autotests.xml