diff --git a/CI/travis/before_install_linux b/CI/travis/before_install_linux index a3b0f2a..bff4a2b 100755 --- a/CI/travis/before_install_linux +++ b/CI/travis/before_install_linux @@ -1,7 +1,5 @@ #!/bin/sh -e -. CI/travis/lib.sh - install_sphinx() { $PYTHON --version diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0a87e81..05b1481 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -21,22 +21,38 @@ pr: jobs: - job: LinuxBuilds + pool: + vmImage: 'ubuntu-latest' strategy: matrix: + ubuntu_18_04_x86_64: + image: 'tfcollins/libiio_ubuntu_18_04-ci:latest' + artifactName: 'Linux-Ubuntu-18.04' + PACKAGE_TO_INSTALL: 'build/*.deb' 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' 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' - pool: - vmImage: $(imageName) + debian_bullseye: + image: 'tfcollins/libiio_debian_bullseye-ci:latest' + artifactName: 'Linux-Debian-11' + PACKAGE_TO_INSTALL: 'build/*.deb' + centos_7: + image: 'tfcollins/libiio_centos_7-ci:latest' + artifactName: 'Linux-CentOS-7' + PACKAGE_TO_INSTALL: 'build/*.rpm' + fedora28: + image: 'tfcollins/libiio_fedora_28-ci:latest' + artifactName: 'Linux-Fedora-28' + PACKAGE_TO_INSTALL: 'build/*.rpm' + fedora34: + image: 'tfcollins/libiio_fedora_34-ci:latest' + artifactName: 'Linux-Fedora-34' + PACKAGE_TO_INSTALL: 'build/*.rpm' steps: - checkout: self fetchDepth: 1 @@ -50,9 +66,26 @@ 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: | + apt-get install -y yum + yum localinstall -y $PACKAGE_TO_INSTALL + condition: eq(variables['artifactName'], 'Linux-CentOS-7') + displayName: "Install libiio" + - script: | + dpkg -i $PACKAGE_TO_INSTALL + condition: neq(variables['artifactName'], 'Linux-CentOS-7') + displayName: "Install libiio" + - script: | + mkdir -p build + cd build + cmake -DPYTHON_BINDINGS=ON -DENABLE_PACKAGING=ON -DDEB_DETECT_DEPENDENCIES=ON .. + make && make package && make test + make install + ldconfig + cd .. + cd bindings/python + pip3 install -r requirements_dev.txt + python3 -m pytest -vs --skip-scan displayName: "Build" - task: CopyFiles@2 inputs: @@ -171,16 +204,35 @@ jobs: artifactName: '$(artifactName)' - job: macOSBuilds + workspace: + clean: all strategy: matrix: macOS_11: - imageName: 'macOS-11' + poolName: 'Azure Pipelines' + vmImage: 'macOS-11' + agentName: 'Azure Pipelines 4' artifactName: 'macOS-11' macOS_12: - imageName: 'macOS-12' + poolName: 'Azure Pipelines' + vmImage: 'macOS-12' + agentName: 'Azure Pipelines 3' artifactName: 'macOS-12' + macOS_13_x64: + poolName: 'Azure Pipelines' + vmImage: 'macOS-13' + agentName: 'Azure Pipelines 2' + artifactName: 'macOS-13-x64' + macOS_13_arm64: + poolName: 'Default' + vmImage: + agentName: 'macOS_arm64' + artifactName: 'macOS-13-arm64' pool: - vmImage: $(imageName) + name: $(poolName) + vmImage: $(vmImage) + demands: + - agent.name -equals $(agentName) variables: PACKAGE_TO_INSTALL: 'build/*.pkg' steps: