ci: exit setup on any error
PATCH 1/1 ci: exit setup on any error
-e is preferrable so that we can catch errors in the middle of this script.
An example is this Travis job [1] that should have errored at the meson install step rather than go to the build step.
Adding debug mode as it can help post-mortem.
1: https://travis-ci.com/DPDK/dpdk/jobs/223511683
--- .ci/linux-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
.ci/linux-setup.sh +1 -1
@@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh -xe # need to install as 'root' since some of the unit tests won't run without it sudo python3 -m pip install --upgrade meson
Signature · 1 line
1.8.3.1
Quoted 11 lines · David Marchand
-e is preferrable so that we can catch errors in the middle of this script.
An example is this Travis job [1] that should have errored at the meson install step rather than go to the build step.Adding debug mode as it can help post-mortem.
1: https://travis-ci.com/DPDK/dpdk/jobs/223511683
Signed-off-by David Marchand <[email protected]>
Quoted 17 lines
--- .ci/linux-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-).ci/linux-setup.sh +1
-2@@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh -xe # need to install as 'root' since some of the unit tests won't run without it sudo python3 -m pip install --upgrade meson --1.8.3.1
Quoted 11 lines · David Marchand
-e is preferrable so that we can catch errors in the middle of this script.
An example is this Travis job [1] that should have errored at the meson install step rather than go to the build step.Adding debug mode as it can help post-mortem.
1: https://travis-ci.com/DPDK/dpdk/jobs/223511683
Signed-off-by David Marchand <[email protected]>---
Good call.
Thomas Monjalon
Applied08/08/2019 16:30, Aaron Conole:
Quoted 9 lines
Quoted 7 lines · David Marchand
-e is preferrable so that we can catch errors in the middle of this script.
An example is this Travis job [1] that should have errored at the meson install step rather than go to the build step.Adding debug mode as it can help post-mortem.
Quoted 8 lines
Quoted 4 lines
1: https://travis-ci.com/DPDK/dpdk/jobs/223511683
Signed-off-by David Marchand <[email protected]>---
Good call.
Acked-by Aaron Conole <[email protected]>
Applied, thanks