image: ubuntu

variables:
  DEBIAN_FRONTEND: noninteractive

stages:
  - virtual
  - llvm

virtual:
  stage: virtual
  before_script:
    - apt-get update
    - apt-get install -y build-essential cmake git
  script:
    - ./scripts/test.sh

llvm-intel:
  stage: llvm
  before_script:
    - apt-get update
    - apt-get install -y build-essential cmake clang-11 gcc-mipsel-linux-gnu
  script:
    - patch ./scripts/test.sh < ./scripts/llvm.patch
    - ./scripts/test.sh

llvm-baikal:
  stage: llvm
  before_script:
    - apt-get update
    - apt-get install -y build-essential cmake clang-11 gcc-mipsel-linux-gnu sshpass
  script:
    - patch ./scripts/test.sh < ./scripts/llvm-baikal.patch
    - ./scripts/test.sh -d

llvm-uemu:
  stage: llvm
  before_script:
    - apt-get update
    - apt-get install -y build-essential cmake clang-11 gcc-mipsel-linux-gnu git
    - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.softcom.su/ruc/uemu ../uemu
  script:
    - patch ./scripts/test.sh < ./scripts/llvm-uemu.patch
    - ./scripts/test.sh -d

image: ubuntu

variables:
  DEBIAN_FRONTEND: noninteractive

stages:
  - virtual
  - llvm

virtual:
  stage: virtual
  before_script:
    - apt-get update
    - apt-get install -y build-essential cmake git
  script:
    - ./scripts/test.sh

llvm-intel:
  stage: llvm
  before_script:
    - apt-get update
    - apt-get install -y build-essential cmake clang++ gcc-mipsel-linux-gnu
  script:
    - patch ./scripts/test.sh < ./scripts/llvm.patch
    - ./scripts/test.sh

llvm-baikal:
  stage: llvm
  before_script:
    - apt-get update
    - apt-get install -y build-essential cmake clang-11 gcc-mipsel-linux-gnu sshpass
  script:
    - patch ./scripts/test.sh < ./scripts/llvm-baikal.patch
    - ./scripts/test.sh -d

llvm-uemu:
  stage: llvm
  before_script:
    - apt-get update
    - apt-get install -y build-essential cmake clang-11 gcc-mipsel-linux-gnu git
    - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.softcom.su/ruc/uemu ../uemu
  script:
    - patch ./scripts/test.sh < ./scripts/llvm-uemu.patch
    - ./scripts/test.sh -d

Replace clang-11 to clang++ for LLVM->Intel testing on GitLab CI
Replace clang-11 to clang++ for LLVM->Intel testing on GitLab CI
