Skip to content
Snippets Groups Projects
Commit e45a13be authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Add CI flag to disable unit test build

parent a31645f3
No related branches found
No related tags found
No related merge requests found
...@@ -21,30 +21,36 @@ variables: ...@@ -21,30 +21,36 @@ variables:
- "FALSE" - "FALSE"
- "TRUE" - "TRUE"
description: "Are package registry uploads public?. Set to 'TRUE' by default" description: "Are package registry uploads public?. Set to 'TRUE' by default"
USE_SENTRY: ENABLE_TESTS:
value: "TRUE" value: "TRUE"
options: options:
- "FALSE" - "FALSE"
- "TRUE" - "TRUE"
description: "Enable Sentry crash reporting. Set to 'TRUE' by default." description: "Enable Sentry crash reporting. Set to 'TRUE' by default."
USE_DISCORD: description: "Enable Discord integrations. Set to 'TRUE' by default."
ENABLE_LTO:
value: "TRUE" value: "TRUE"
options: options:
- "FALSE" - "FALSE"
- "TRUE" - "TRUE"
description: "Enable Discord integrations. Set to 'TRUE' by default." description: "Enable Link Time Optimization. Set to 'TRUE' by default."
USE_HAVOK: USE_HAVOK:
value: "TRUE" value: "TRUE"
options: options:
- "FALSE" - "FALSE"
- "TRUE" - "TRUE"
description: "Enable Havok integrations. Set to 'TRUE' by default." description: "Enable Havok integrations. Set to 'TRUE' by default."
USE_LTO: USE_SENTRY:
value: "TRUE"
options:
- "FALSE"
- "TRUE"
description: "Enable Sentry crash reporting. Set to 'TRUE' by default."
USE_DISCORD:
value: "TRUE" value: "TRUE"
options: options:
- "FALSE" - "FALSE"
- "TRUE" - "TRUE"
description: "Enable Link Time Optimization. Set to 'TRUE' by default."
AUTOBUILD_BUILD_ID: $CI_PIPELINE_ID AUTOBUILD_BUILD_ID: $CI_PIPELINE_ID
AUTOBUILD_GITLAB_TOKEN: $CI_JOB_TOKEN AUTOBUILD_GITLAB_TOKEN: $CI_JOB_TOKEN
AUTOBUILD_INSTALLABLE_CACHE: "$CI_PROJECT_DIR/.cache/autobuild" AUTOBUILD_INSTALLABLE_CACHE: "$CI_PROJECT_DIR/.cache/autobuild"
...@@ -69,7 +75,7 @@ variables: ...@@ -69,7 +75,7 @@ variables:
- .\.venv\Scripts\Activate.ps1 - .\.venv\Scripts\Activate.ps1
- pip install --upgrade llbase autobuild certifi sentry-cli cmake - pip install --upgrade llbase autobuild certifi sentry-cli cmake
script: script:
- autobuild configure -c Release -- -DUSE_LTO="${USE_LTO}" -DHAVOK_TPV="${USE_HAVOK}" -DDISABLE_FATAL_WARNINGS=ON -DREVISION_FROM_VCS=FALSE -DENABLE_DELTA_GEN=ON - autobuild configure -c Release -- -DUSE_LTO="${ENABLE_LTO}" -DHAVOK_TPV="${USE_HAVOK}" -DLL_TESTS="${ENABLE_TESTS}" -DDISABLE_FATAL_WARNINGS=ON -DREVISION_FROM_VCS=FALSE -DENABLE_DELTA_GEN=ON
- autobuild build -c Release --no-configure - autobuild build -c Release --no-configure
- autobuild graph -c Release --graph-file "alchemy-windows${AUTOBUILD_ADDRSIZE}-dependencies.svg" build-vc-64/autobuild-package.xml - autobuild graph -c Release --graph-file "alchemy-windows${AUTOBUILD_ADDRSIZE}-dependencies.svg" build-vc-64/autobuild-package.xml
- $AlchemyPdbPath = Resolve-Path build-vc-*/newview/Release/Alchemy*.pdb - $AlchemyPdbPath = Resolve-Path build-vc-*/newview/Release/Alchemy*.pdb
...@@ -109,7 +115,7 @@ variables: ...@@ -109,7 +115,7 @@ variables:
- source .venv/bin/activate - source .venv/bin/activate
- pip3 install --upgrade llbase autobuild dmgbuild certifi sentry-cli cmake - pip3 install --upgrade llbase autobuild dmgbuild certifi sentry-cli cmake
script: script:
- autobuild configure -c Release -- -DENABLE_SIGNING=ON -DUSE_LTO=${USE_LTO} -DHAVOK_TPV=${USE_HAVOK} -DDISABLE_FATAL_WARNINGS=ON -DREVISION_FROM_VCS=FALSE - autobuild configure -c Release -- -DENABLE_SIGNING=ON -DUSE_LTO=${ENABLE_LTO} -DHAVOK_TPV=${USE_HAVOK} -DLL_TESTS="${ENABLE_TESTS}" -DDISABLE_FATAL_WARNINGS=ON -DREVISION_FROM_VCS=FALSE
- autobuild build -c Release --no-configure - autobuild build -c Release --no-configure
- autobuild graph -c Release --graph-file alchemy-darwin${AUTOBUILD_ADDRSIZE}-dependencies.svg build-darwin-64/autobuild-package.xml - autobuild graph -c Release --graph-file alchemy-darwin${AUTOBUILD_ADDRSIZE}-dependencies.svg build-darwin-64/autobuild-package.xml
- if [ "$USE_SENTRY" = "TRUE" ]; then sentry-cli difutil bundle-sources build-darwin-*/newview/Release/*.app.dSYM/Contents/Resources/DWARF/*; fi - if [ "$USE_SENTRY" = "TRUE" ]; then sentry-cli difutil bundle-sources build-darwin-*/newview/Release/*.app.dSYM/Contents/Resources/DWARF/*; fi
...@@ -151,7 +157,7 @@ variables: ...@@ -151,7 +157,7 @@ variables:
- source .venv/bin/activate - source .venv/bin/activate
- pip3 install --upgrade llbase autobuild certifi sentry-cli cmake ninja - pip3 install --upgrade llbase autobuild certifi sentry-cli cmake ninja
script: script:
- autobuild configure -c Release -- -DUSE_LTO=OFF -DDISABLE_FATAL_WARNINGS=ON -DREVISION_FROM_VCS=FALSE -DCOMPRESS_DEBUG=ON - autobuild configure -c Release -- -DUSE_LTO=OFF -DLL_TESTS="${ENABLE_TESTS}" -DDISABLE_FATAL_WARNINGS=ON -DREVISION_FROM_VCS=FALSE -DCOMPRESS_DEBUG=ON
- autobuild build -c Release --no-configure - autobuild build -c Release --no-configure
- autobuild graph -c Release --graph-file alchemy-linuxs${AUTOBUILD_ADDRSIZE}-dependencies.svg build-linux-${AUTOBUILD_ADDRSIZE}/autobuild-package.xml - autobuild graph -c Release --graph-file alchemy-linuxs${AUTOBUILD_ADDRSIZE}-dependencies.svg build-linux-${AUTOBUILD_ADDRSIZE}/autobuild-package.xml
- if [ "$USE_SENTRY" = "TRUE" ]; then sentry-cli difutil bundle-sources build-linux-*/newview/alchemy-bin; fi - if [ "$USE_SENTRY" = "TRUE" ]; then sentry-cli difutil bundle-sources build-linux-*/newview/alchemy-bin; fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment