Skip to content

Commit

Permalink
CI:add debian build
Browse files Browse the repository at this point in the history
Signed-off-by: Raluca Groza <[email protected]>
(cherry picked from commit a24e263)
  • Loading branch information
ccraluca authored and SRaus committed Sep 26, 2023
1 parent 8bdca05 commit 2bf936d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 12 deletions.
21 changes: 21 additions & 0 deletions CI/travis/ci-debian.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

set -x

DEBIAN_FRONTEND=noninteractive apt-get install -y rpm

sudo dpkg -i /ci/build/*.deb

python3 -m pip install pylibiio --no-binary :all:

# Build project
mkdir -p build
cd build
sudo cmake -DPYTHON_BINDINGS=ON -DENABLE_PACKAGING=ON -DDEB_DETECT_DEPENDENCIES=ON ..
sudo make && make package && make test
sudo make install
ldconfig
cd ..
cd bindings/python
pip3 install -r requirements_dev.txt
python3 -m pytest -vs --skip-scan
24 changes: 12 additions & 12 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ jobs:
strategy:
matrix:
ubuntu_20_04_x86_64:
imageName: 'ubuntu-20.04'
OS_TYPE: 'ubuntu_docker'
OS_VERSION: focal
image: 'tfcollins/libiio_ubuntu_20_04-ci:latest'
artifactName: 'Linux-Ubuntu-20.04'
PACKAGE_TO_INSTALL: 'build/*.deb'
build_script: ci-debian.sh
ubuntu_22_04_x86_64:
imageName: 'ubuntu-22.04'
OS_TYPE: 'ubuntu_docker'
OS_VERSION: jammy
image: 'tfcollins/libiio_ubuntu_22_04-ci:latest'
artifactName: 'Linux-Ubuntu-22.04'
PACKAGE_TO_INSTALL: 'build/*.deb'
build_script: ci-debian.sh
debian_bullseye:
image: 'tfcollins/libiio_debian_bullseye-ci:latest'
artifactName: 'Linux-Debian-11'
build_script: ci-debian.sh
pool:
vmImage: $(imageName)
vmImage: 'ubuntu-latest'
steps:
- checkout: self
fetchDepth: 1
Expand All @@ -50,9 +50,9 @@ jobs:
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/master'
path: '$(Agent.BuildDirectory)/s/build/'
- script: ./CI/travis/before_install_linux
displayName: "Install Dependencies"
- script: ./CI/travis/make_linux
- script: |
set -e
sudo docker run --rm -t --privileged -e ARTIFACTNAME=$(artifactName) -v "$(Agent.BuildDirectory)/s":"/ci" "$(image)" /bin/bash -c "cd /ci/ && chmod +x ./CI/travis/$(build_script) && ./CI/travis/$(build_script)"
displayName: "Build"
- task: CopyFiles@2
inputs:
Expand Down

0 comments on commit 2bf936d

Please sign in to comment.