2018-11-08 21:08:33 +01:00
|
|
|
stages:
|
2020-10-29 18:19:22 +01:00
|
|
|
- check
|
2018-11-08 21:08:33 +01:00
|
|
|
- build
|
2020-10-30 15:38:19 +01:00
|
|
|
- test
|
2020-10-30 16:40:16 +01:00
|
|
|
- benchmark
|
2018-11-08 21:08:33 +01:00
|
|
|
|
2020-10-29 18:19:22 +01:00
|
|
|
check:
|
|
|
|
stage: check
|
2021-01-23 11:36:14 +01:00
|
|
|
allow_failure: true
|
2020-10-29 18:19:22 +01:00
|
|
|
tags:
|
|
|
|
- vs2019
|
|
|
|
- windows10
|
|
|
|
script:
|
|
|
|
- cd Tools
|
|
|
|
- pip install cmakelang
|
|
|
|
- python format-cmake.py
|
|
|
|
- python format-cpp.py
|
|
|
|
|
|
|
|
build:windows_debug:
|
2018-11-08 21:08:33 +01:00
|
|
|
stage: build
|
|
|
|
tags:
|
2020-10-29 18:19:22 +01:00
|
|
|
- vs2019
|
|
|
|
- windows10
|
|
|
|
needs:
|
|
|
|
- check
|
|
|
|
script:
|
|
|
|
- cd Tools
|
|
|
|
- python build.py -t debug
|
|
|
|
artifacts:
|
2021-05-13 12:22:46 +02:00
|
|
|
expire_in: "4 weeks"
|
2020-08-10 17:42:49 +02:00
|
|
|
paths:
|
2020-10-30 16:53:13 +01:00
|
|
|
- build-x64-windows-debug/bin/
|
2020-10-29 18:19:22 +01:00
|
|
|
|
|
|
|
build:windows_release:
|
|
|
|
stage: build
|
|
|
|
tags:
|
|
|
|
- vs2019
|
|
|
|
- windows10
|
|
|
|
needs:
|
|
|
|
- check
|
2018-11-08 21:08:33 +01:00
|
|
|
script:
|
2020-10-29 18:19:22 +01:00
|
|
|
- cd Tools
|
|
|
|
- python build.py -t release
|
2018-11-08 21:08:33 +01:00
|
|
|
artifacts:
|
2021-05-13 12:22:46 +02:00
|
|
|
expire_in: "4 weeks"
|
2018-11-08 21:08:33 +01:00
|
|
|
paths:
|
2020-10-30 16:44:20 +01:00
|
|
|
- build-x64-windows-release/bin/
|
2020-10-29 18:19:22 +01:00
|
|
|
|
2020-10-31 19:30:27 +01:00
|
|
|
build:osx_debug:
|
|
|
|
stage: build
|
|
|
|
allow_failure: true
|
|
|
|
tags:
|
|
|
|
- osx
|
|
|
|
needs:
|
|
|
|
- check
|
|
|
|
script:
|
|
|
|
- cd Tools
|
2020-10-31 19:59:46 +01:00
|
|
|
- python3 build.py -t debug
|
2020-10-31 19:30:27 +01:00
|
|
|
artifacts:
|
2021-05-13 12:22:46 +02:00
|
|
|
expire_in: "4 weeks"
|
2020-10-31 19:30:27 +01:00
|
|
|
paths:
|
|
|
|
- build-x64-osx-debug/bin/
|
|
|
|
|
2020-10-31 19:32:15 +01:00
|
|
|
build:osx_release:
|
2020-10-31 19:30:27 +01:00
|
|
|
stage: build
|
|
|
|
allow_failure: true
|
|
|
|
tags:
|
|
|
|
- osx
|
|
|
|
needs:
|
|
|
|
- check
|
|
|
|
script:
|
|
|
|
- cd Tools
|
2020-10-31 19:59:46 +01:00
|
|
|
- python3 build.py -t release
|
2020-10-31 19:30:27 +01:00
|
|
|
artifacts:
|
2021-05-13 12:22:46 +02:00
|
|
|
expire_in: "4 weeks"
|
2020-10-31 19:30:27 +01:00
|
|
|
paths:
|
|
|
|
- build-x64-osx-release/bin/
|
|
|
|
|
2020-10-29 18:19:22 +01:00
|
|
|
build:linux_debug:
|
|
|
|
stage: build
|
2020-10-29 21:38:08 +01:00
|
|
|
allow_failure: true
|
2021-05-13 12:22:46 +02:00
|
|
|
image:
|
2020-10-29 21:00:47 +01:00
|
|
|
name: darkmattercoder/qt-build:5.15.1
|
|
|
|
entrypoint: [""]
|
2020-10-29 18:19:22 +01:00
|
|
|
tags:
|
2021-05-13 12:22:46 +02:00
|
|
|
- gitlab-org-docker
|
2020-10-29 18:19:22 +01:00
|
|
|
needs:
|
|
|
|
- check
|
|
|
|
script:
|
2020-10-29 21:22:53 +01:00
|
|
|
- sudo apt-get update -y
|
2020-11-08 15:24:24 +01:00
|
|
|
- sudo apt-get install apt-transport-https ca-certificates gnupg software-properties-common wget software-properties-common snapd -y
|
2021-01-16 19:40:13 +01:00
|
|
|
- sudo /etc/init.d/snapd start
|
2020-11-08 15:17:59 +01:00
|
|
|
- sudo snap install cqtdeployer
|
2020-10-29 21:28:01 +01:00
|
|
|
- wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
|
2020-10-29 21:20:10 +01:00
|
|
|
- sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic-rc main' -y
|
2020-10-29 21:02:54 +01:00
|
|
|
- sudo apt-get update -y
|
2020-10-29 21:03:11 +01:00
|
|
|
- sudo apt install build-essential libgl1-mesa-dev lld ninja-build cmake -y
|
2020-10-29 18:19:22 +01:00
|
|
|
- cd Tools
|
|
|
|
- python build.py -t debug
|
|
|
|
artifacts:
|
2021-05-13 12:22:46 +02:00
|
|
|
expire_in: "4 weeks"
|
2020-10-29 18:19:22 +01:00
|
|
|
paths:
|
|
|
|
- build-x64-linux-debug/bin/
|
|
|
|
|
|
|
|
build:linux_release:
|
|
|
|
stage: build
|
2020-10-29 21:38:08 +01:00
|
|
|
allow_failure: true
|
2021-05-13 12:22:46 +02:00
|
|
|
image:
|
2020-10-29 21:00:47 +01:00
|
|
|
name: darkmattercoder/qt-build:5.15.1
|
|
|
|
entrypoint: [""]
|
2020-10-29 18:19:22 +01:00
|
|
|
tags:
|
2021-05-13 12:22:46 +02:00
|
|
|
- gitlab-org-docker
|
2020-10-29 18:19:22 +01:00
|
|
|
needs:
|
|
|
|
- check
|
|
|
|
script:
|
2020-10-29 21:22:53 +01:00
|
|
|
- sudo apt-get update -y
|
2020-11-08 15:24:24 +01:00
|
|
|
- sudo apt-get install apt-transport-https ca-certificates gnupg software-properties-common wget software-properties-common snapd -y
|
2021-01-16 19:40:13 +01:00
|
|
|
- sudo /etc/init.d/snapd start
|
2020-11-08 15:17:59 +01:00
|
|
|
- sudo snap install cqtdeployer
|
2020-10-29 21:28:01 +01:00
|
|
|
- wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
|
2020-10-29 21:20:10 +01:00
|
|
|
- sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic-rc main' -y
|
2020-10-29 21:02:54 +01:00
|
|
|
- sudo apt-get update -y
|
2020-10-29 21:03:11 +01:00
|
|
|
- sudo apt install build-essential libgl1-mesa-dev lld ninja-build cmake -y
|
2021-05-13 12:22:46 +02:00
|
|
|
- cd Tools
|
2020-10-29 18:19:22 +01:00
|
|
|
- python build.py -t release
|
|
|
|
artifacts:
|
2021-05-13 12:22:46 +02:00
|
|
|
expire_in: "4 weeks"
|
2020-10-29 18:19:22 +01:00
|
|
|
paths:
|
|
|
|
- build-x64-linux-release/bin/
|
|
|
|
|
2020-10-30 15:37:00 +01:00
|
|
|
test:windows_debug:
|
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- windows10
|
|
|
|
- vs2019
|
|
|
|
dependencies:
|
|
|
|
- build:windows_debug
|
|
|
|
needs:
|
|
|
|
- build:windows_debug
|
|
|
|
script:
|
2020-10-30 16:53:13 +01:00
|
|
|
- ./build-x64-windows-debug/bin/ScreenPlay.exe --no-run=false --exit=true --reporters=junit --out=test-report-junit.xml
|
2020-10-30 15:37:00 +01:00
|
|
|
artifacts:
|
2021-05-13 12:22:46 +02:00
|
|
|
expire_in: "4 weeks"
|
2020-10-30 15:37:00 +01:00
|
|
|
when: always
|
|
|
|
reports:
|
|
|
|
junit: test-report-junit.xml
|
|
|
|
|
|
|
|
test:windows_release:
|
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- windows10
|
|
|
|
- vs2019
|
|
|
|
dependencies:
|
|
|
|
- build:windows_release
|
|
|
|
needs:
|
|
|
|
- build:windows_release
|
|
|
|
script:
|
2020-10-30 16:44:20 +01:00
|
|
|
- ./build-x64-windows-release/bin/ScreenPlay.exe --no-run=false --exit=true --reporters=junit --out=test-report-junit.xml
|
2020-10-30 15:37:00 +01:00
|
|
|
artifacts:
|
2021-05-13 12:22:46 +02:00
|
|
|
expire_in: "4 weeks"
|
2020-10-30 15:37:00 +01:00
|
|
|
when: always
|
|
|
|
reports:
|
2020-10-30 15:38:19 +01:00
|
|
|
junit: test-report-junit.xml
|
2020-10-30 16:40:16 +01:00
|
|
|
|
2019-12-13 13:28:26 +01:00
|
|
|
build_docs:
|
2021-05-13 12:22:46 +02:00
|
|
|
stage: .post
|
|
|
|
script:
|
|
|
|
- curl --request POST --form "token=$CI_JOB_TOKEN" --form ref=master https://gitlab.com/api/v4/projects/15800262/trigger/pipeline
|