Skip to content

Commit

Permalink
CI:add set -e for Azure build to fail on errors
Browse files Browse the repository at this point in the history
Signed-off-by: Raluca Chis <raluca.chis@analog.com>
  • Loading branch information
Raluca Chis authored and pcercuei committed Jun 21, 2022
1 parent 423e7b0 commit 6d59480
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ stages:
clean: true
persistCredentials: true
- script: |
set -e
mkdir build && cd build
cmake .. -DENABLE_PACKAGING=ON -DPYTHON_BINDINGS=ON -DWITH_DOC=ON -DCPACK_SYSTEM_NAME=${ARTIFACTNAME}
make
Expand Down Expand Up @@ -190,24 +191,28 @@ stages:
fetchDepth: 1
clean: true
- script: |
set -e
brew install doxygen libusb libxml2 ncurses cdk libserialport
pip3 install sphinx sphinx-rtd-theme
displayName: 'Dependencies'
- script: |
set -e
mkdir build && cd build
cmake .. -DOSX_PACKAGE=ON -DPYTHON_BINDINGS=ON -DWITH_EXAMPLES=ON -DWITH_SERIAL_BACKEND=OFF -DWITH_ZSTD=ON
make
sudo make install
cd ..
displayName: 'Build'
- script: |
set -e
mkdir build_tar && cd build_tar
cmake .. -DOSX_PACKAGE=OFF -DENABLE_PACKAGING=ON -DPYTHON_BINDINGS=ON -DWITH_SERIAL_BACKEND=OFF -DWITH_ZSTD=ON -DCPACK_SYSTEM_NAME=${ARTIFACTNAME}
make
make package
cd ..
displayName: 'Build tar'
- script: |
set -e
cd build
cmake .. -DPYTHON_BINDINGS=ON -DWITH_DOC=ON
make
Expand Down Expand Up @@ -258,6 +263,7 @@ stages:
artifactName: 'Ubuntu-arm32v7'
steps:
- script: |
set -e
sudo apt-get install -y gcc-arm-linux-gnueabihf libc6-dev-armhf-cross qemu-arm-static
sudo apt-get install -y g++-arm-linux-gnueabihf libstdc++-4.8-dev-armhf-cross
sudo apt-get install -y g++-aarch64-linux-gnu libstdc++-4.8-dev-arm64-cross
Expand All @@ -266,6 +272,7 @@ stages:
sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
displayName: 'Setup'
- script: |
set -e
sudo docker run --rm -t --privileged -e ARTIFACTNAME=$(artifactName) -v "$(Agent.BuildDirectory)/s":"/ci" -v "/usr/bin/qemu-$(arch)-static":"/usr/bin/qemu-$(arch)-static" "$(image)" /bin/bash -c "cd /ci/ && chmod +x ./CI/azure/$(build_script) && ./CI/azure/$(build_script)"
displayName: 'Build'
- task: CopyFiles@2
Expand Down Expand Up @@ -299,6 +306,7 @@ stages:
container: $[ variables['image'] ]
steps:
- script: |
set -e
mkdir build && cd build
cmake ..
mkdir artifacts
Expand Down

0 comments on commit 6d59480

Please sign in to comment.