Commit c79ef267 authored by Tapani Pihlajakuja's avatar Tapani Pihlajakuja
Browse files

Create a pipeline testing all runners

parent e6762a16
Loading
Loading
Loading
Loading
Loading
+81 −11
Original line number Diff line number Diff line
variables:
  # note: GitLab cannot reference variables defined by users in the include ref:, we need to use a YAML anchor for this
  # see https://docs.gitlab.com/ci/yaml/includes/#use-variables-with-include for more information
  IVAS_CODEC_CI_REF: &IVAS_CODEC_CI_REF main

include:
  - project: ivas-codec-pc/ivas-codec-ci
    ref: *IVAS_CODEC_CI_REF
    file: main-basop.yml
  - local: .gitlab-ci/variables.yml
  - local: .gitlab-ci/rules-basis.yml
# Invoke on push and on web run
workflow:
  rules:
    - if: $CI_PIPELINE_SOURCE == "push"
    - if: $CI_PIPELINE_SOURCE == "web"

stages:
  - test


.check_dependencies: &check_dependencies
  - echo 0 > zero # Helper file
  - gcc -v
  - clang -v
  - make -v
  - cmake --version
  - git --version
  - git lfs --version
  - valgrind --version
  - coan -v
  - zip --version
  - curl --version
  - tcsh --version
  - lcov --version
  
  - echo "Test existence of tools which should return 0"
  - eid-xor zero zero /dev/null 
  - networkSimulator_g192 zero /dev/null /dev/null /dev/null 1 
  - gen-patt /dev/null F 1 1 /dev/null 0
  
  - python3 --version
  - pip3 show numpy # Use of pip is assumed for python dependencies
  - pip3 show scipy
  - pip3 show plotly
  - pip3 show pytest
  - pip3 show pytest-xdist
  - pip3 show pytest-html
  - pip3 show matplotlib
  - pip3 show pandas 
  - pip3 show requests
  - pip3 list
  - whoami
  - whoami | groups
  
  - ls -d /usr/local/ltv
  - ls -d /usr/local/testv
  - ls -d /usr/local/be_2_evs_test
  
  # Checks for BASOP runners, comment out if not relevant
  - ls -d /usr/local/scripts
  - ls -d /usr/local/be_2_evs_basop
  - PQevalAudio --help




# Test that necessary dependencies are found
test_runners:
  stage: test
  parallel:
    matrix:
      - RUNNER:
        - test-nokia-basop-linux-runner-2
        - test-nokia-basop-linux-runner-3
        - test-dolby-linux-runner
        - test-dolby-linux-runner-2
        - test-ericsson-linux-runner
        - test-ericsson-linux-runner-3
        - test-ericsson-linux-runner-5
        - test-ericsson-linux-runner-7
        - test-ericsson-linux-runner-8
        - test-ericsson-linux-runner-9
        - test-ericsson-linux-runner-10
        - test-ericsson-linux-sprinter-1
        - test-fhg-basop-runner-3
        - test-fhg-basop-runner-4

  tags:
    - ${RUNNER}
  script:
    - echo "Testing runner named as ${RUNNER}"