Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
94ec4b8feThis file is pinned to the selected release. Download the original to open it in your design tool.
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-22.04'
timeoutInMinutes: 180
variables:
OS: 'linux'
ARCH: 'x86_64'
strategy:
matrix:
Ubuntu_2204_Qt_6_10_GCC:
IMAGE: librepcb/librepcb-dev:ubuntu-22.04-qt6.10-1
DEPLOY: true
Ubuntu_2204_Clang:
IMAGE: librepcb/librepcb-dev:ubuntu-22.04-6
CC: clang
CXX: clang++
CMAKE_OPTIONS: '-DCMAKE_CXX_FLAGS="-DQT_FORCE_ASSERTS=1"'
LD_LIBRARY_PATH: $(Build.Repository.LocalPath)/build/install/lib
Ubuntu_2404_Unbundled:
IMAGE: librepcb/librepcb-dev:ubuntu-24.04-4
UNBUNDLE_DXFLIB: true
UNBUNDLE_GTEST: true
UNBUNDLE_MUPARSER: true
UNBUNDLE_POLYCLIPPING: true
CMAKE_OPTIONS: '-DCMAKE_CXX_FLAGS="-DQT_FORCE_ASSERTS=1"'
LD_LIBRARY_PATH: $(Build.Repository.LocalPath)/build/install/lib
container:
image: $[ variables['IMAGE'] ]
steps:
- checkout: self
clean: true
submodules: recursive
- bash: ./ci/print_environment.sh
displayName: Print Environment
- bash: ./ci/install_dependencies.sh
displayName: Install Dependencies
env:
SLINT_UI_TESTING_AUTH: $(SLINT_UI_TESTING_AUTH)
- template: azure-cache.yml
- bash: ./ci/print_environment.sh
displayName: Print New Environment # Print again since it has been modified
- bash: rm -rf libs/dxflib
displayName: Remove bundled dxflib lib
condition: and(succeeded(), eq(variables['UNBUNDLE_DXFLIB'], 'true'))
- bash: rm -rf libs/googletest
displayName: Remove bundled googletest lib
condition: and(succeeded(), eq(variables['UNBUNDLE_GTEST'], 'true'))
- bash: rm -rf libs/muparser
displayName: Remove bundled muparser lib
condition: and(succeeded(), eq(variables['UNBUNDLE_MUPARSER'], 'true'))
- bash: rm -rf libs/polyclipping
displayName: Remove bundled polyclipping lib
condition: and(succeeded(), eq(variables['UNBUNDLE_POLYCLIPPING'], 'true'))
- bash: ./ci/build_librepcb.sh
displayName: Build LibrePCB
- bash: ./ci/build_linux_portables.sh
displayName: Build Portable Packages
condition: and(succeeded(), eq(variables['DEPLOY'], 'true'))
- bash: cd libs/librepcb/rust-core && cargo test --features=fail-on-warnings
displayName: Run rust-core tests
- bash: xvfb-run -a ./build/tests/unittests/librepcb-unittests
displayName: Run LibrePCB Unittests
- bash: xvfb-run -a --server-args="-screen 0 1024x768x24" uv --directory ./tests/cli run --no-dev pytest -vvv --librepcb-executable="../../build/install/bin/librepcb-cli"
displayName: Run LibrePCB-CLI Functional Tests
- bash: xvfb-run -a --server-args="-screen 0 1024x768x24" uv --directory ./tests/funq run --no-dev pytest -vvv --librepcb-executable="../../build/install/bin/librepcb" --reruns 5 --reruns-delay 10
displayName: Run LibrePCB Functional Tests
- bash: xvfb-run -a --server-args="-screen 0 1600x1200x24" uv --directory "./tests/ui" run --no-dev pytest -vvv --librepcb-executable="../../build/install/bin/librepcb"
displayName: Run LibrePCB UI Tests
condition: and(succeeded(), variables['SLINT_UI_TESTING_AUTH'])
env:
SLINT_UI_TESTING_AUTH: $(SLINT_UI_TESTING_AUTH)
- bash: |
./ci/tar_artifacts.sh
./ci/upload_artifacts.sh
displayName: Tar & Upload Artifacts
condition: and(succeeded(), eq(variables['DEPLOY'], 'true'), variables['ARTIFACTS_UPLOAD_URL'], ne(variables['Build.Reason'], 'PullRequest'))
env:
UPLOAD_URL: $(ARTIFACTS_UPLOAD_URL)
UPLOAD_USER: $(ARTIFACTS_UPLOAD_USER)
UPLOAD_PASS: $(ARTIFACTS_UPLOAD_PASS)
UPLOAD_SIGN_KEY: $(ARTIFACTS_UPLOAD_SIGN_KEY)