stages: - check - build - test - benchmark check: stage: check allow_failure: true tags: - vs2019 - windows10 script: - cd Tools - pip install cmakelang - python clang_format.py - python cmake_format.py build:windows_release: stage: build tags: - vs2019 - windows10 needs: - check script: - cd Tools - python setup.py - python build.py -t release -steam=False artifacts: expire_in: "4 weeks" paths: - build-x64-windows-release/bin/ build:windows_release_steam: stage: build tags: - vs2019 - windows10 needs: - check script: - cd Tools - python setup.py - python build.py -t release -steam=True artifacts: expire_in: "4 weeks" paths: - build-x64-windows-release/bin/ build:osx_release: stage: build allow_failure: true tags: - osx needs: - check script: - cd Tools - python3 setup.py - python3 build.py -t release -steam=False artifacts: expire_in: "4 weeks" paths: - build-x64-osx-release/bin/ build:osx_release_steam: stage: build allow_failure: true tags: - osx needs: - check script: - cd Tools - python3 setup.py - python3 build.py -t release -steam=True artifacts: expire_in: "4 weeks" paths: - build-x64-osx-release/bin/ build:linux_release: stage: build allow_failure: true image: name: ubuntu:20.04 tags: - gitlab-org-docker needs: - check script: - apt update -y # Otherwise libglib2 needs interaction - export DEBIAN_FRONTEND=noninteractive - apt install mesa-common-dev curl zip unzip tar git pkg-config apt-transport-https ca-certificates gnupg software-properties-common wget software-properties-common wget python3-pip build-essential libgl1-mesa-dev lld ninja-build cmake -y - pip3 install aqtinstall - mkdir Qt - aqt install --outputdir Qt/ 6.2.0 linux desktop - cd Tools - wget -q https://github.com/QuasarApp/CQtDeployer/releases/download/1.5.2/CQtDeployer_1.5.2_OfflineInstaller_Linux64.run - python3 setup.py - python3 build.py -t release -steam=False artifacts: expire_in: "4 weeks" paths: - build-x64-linux-release/bin/ test:windows_release: stage: test tags: - windows10 - vs2019 dependencies: - build:windows_release needs: - build:windows_release script: - ./build-x64-windows-release/bin/ScreenPlay.exe --no-run=false --exit=true --reporters=junit --out=test-report-junit.xml artifacts: expire_in: "4 weeks" when: always reports: junit: test-report-junit.xml build_docs: stage: .post script: - curl --request POST --form "token=$CI_JOB_TOKEN" --form ref=master https://gitlab.com/api/v4/projects/15800262/trigger/pipeline