1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-06 19:12:30 +01:00
ScreenPlay/.gitlab-ci.yml

174 lines
4.3 KiB
YAML
Raw Normal View History

2018-11-08 21:08:33 +01:00
stages:
- 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
check:
stage: check
2021-01-23 11:36:14 +01:00
allow_failure: true
tags:
- vs2019
- windows10
script:
- cd Tools
- pip install cmakelang
- python clang_format.py
- python cmake_format.py
build:windows_debug:
2018-11-08 21:08:33 +01:00
stage: build
tags:
- vs2019
- windows10
needs:
- check
script:
- cd Tools
2021-05-16 13:12:24 +02:00
- python setup.py
- python build.py -t debug
artifacts:
2021-05-13 12:22:46 +02:00
expire_in: "4 weeks"
paths:
2020-10-30 16:53:13 +01:00
- build-x64-windows-debug/bin/
build:windows_release:
stage: build
tags:
- vs2019
- windows10
needs:
- check
2018-11-08 21:08:33 +01:00
script:
- cd Tools
2021-05-16 13:12:24 +02:00
- python setup.py
- 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-31 19:30:27 +01:00
build:osx_debug:
stage: build
allow_failure: true
tags:
- osx
needs:
- check
script:
- cd Tools
2021-05-16 13:12:24 +02:00
- python3 setup.py
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
2021-05-16 13:12:24 +02:00
- python3 setup.py
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/
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:
2021-07-25 15:23:31 +02:00
name: ubuntu:20.04
tags:
2021-05-13 12:22:46 +02:00
- gitlab-org-docker
needs:
- check
script:
2021-07-25 15:23:31 +02:00
- apt update -y
# Otherwise libglib2 needs interaction
- export DEBIAN_FRONTEND=noninteractive
2021-07-25 15:50:53 +02:00
- apt install 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
2021-07-25 15:23:31 +02:00
- pip3 install aqtinstall
- mkdir Qt
- aqt install --outputdir Qt/ 5.15.2 linux desktop
- cd Tools
2021-07-25 15:23:31 +02:00
- wget https://github.com/QuasarApp/CQtDeployer/releases/download/1.5.2/CQtDeployer_1.5.2_OfflineInstaller_Linux64.run
2021-07-25 15:47:31 +02:00
- python3 setup.py
- python3 build.py -t debug
artifacts:
2021-05-13 12:22:46 +02:00
expire_in: "4 weeks"
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:
2021-07-25 15:32:38 +02:00
name: ubuntu:20.04
tags:
2021-05-13 12:22:46 +02:00
- gitlab-org-docker
needs:
- check
script:
2021-07-25 15:27:51 +02:00
- apt update -y
# Otherwise libglib2 needs interaction
- export DEBIAN_FRONTEND=noninteractive
2021-07-25 15:50:53 +02:00
- apt install 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/ 5.15.2 linux desktop
2021-05-13 12:22:46 +02:00
- cd Tools
- wget https://github.com/QuasarApp/CQtDeployer/releases/download/1.5.2/CQtDeployer_1.5.2_OfflineInstaller_Linux64.run
2021-07-25 15:47:31 +02:00
- python3 setup.py
- python3 build.py -t release
artifacts:
2021-05-13 12:22:46 +02:00
expire_in: "4 weeks"
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
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