Azure: start all Bash scripts with "set -e" (#168)
This commit is contained in:
parent
005e088405
commit
16bee6c4ac
|
@ -74,8 +74,8 @@ steps:
|
||||||
displayName: 'long path support'
|
displayName: 'long path support'
|
||||||
condition: eq(variables['Agent.OS'], 'Windows_NT')
|
condition: eq(variables['Agent.OS'], 'Windows_NT')
|
||||||
- bash: |
|
- bash: |
|
||||||
echo "PATH=${PATH}"
|
|
||||||
set -e
|
set -e
|
||||||
|
echo "PATH=${PATH}"
|
||||||
echo "Installing MinGW-w64"
|
echo "Installing MinGW-w64"
|
||||||
if [[ $PLATFORM == "x86" ]]; then
|
if [[ $PLATFORM == "x86" ]]; then
|
||||||
MINGW_FILE="i686-8.1.0-release-posix-dwarf-rt_v6-rev0.7z"
|
MINGW_FILE="i686-8.1.0-release-posix-dwarf-rt_v6-rev0.7z"
|
||||||
|
@ -111,6 +111,7 @@ steps:
|
||||||
condition: eq(variables['Agent.OS'], 'Windows_NT')
|
condition: eq(variables['Agent.OS'], 'Windows_NT')
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
|
set -e
|
||||||
echo "PATH=${PATH}"
|
echo "PATH=${PATH}"
|
||||||
export ncpu=
|
export ncpu=
|
||||||
case '$(Agent.OS)' in
|
case '$(Agent.OS)' in
|
||||||
|
@ -130,6 +131,7 @@ steps:
|
||||||
displayName: 'Detecting number of cores'
|
displayName: 'Detecting number of cores'
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
|
set -e
|
||||||
echo "PATH=${PATH}"
|
echo "PATH=${PATH}"
|
||||||
|
|
||||||
# build nim from our own branch - this to avoid the day-to-day churn and
|
# build nim from our own branch - this to avoid the day-to-day churn and
|
||||||
|
@ -146,6 +148,7 @@ steps:
|
||||||
condition: eq(variables['Agent.OS'], 'Windows_NT')
|
condition: eq(variables['Agent.OS'], 'Windows_NT')
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
|
set -e
|
||||||
echo "PATH=${PATH}"
|
echo "PATH=${PATH}"
|
||||||
|
|
||||||
# build nim from our own branch - this to avoid the day-to-day churn and
|
# build nim from our own branch - this to avoid the day-to-day churn and
|
||||||
|
@ -161,6 +164,7 @@ steps:
|
||||||
condition: ne(variables['Agent.OS'], 'Windows_NT')
|
condition: ne(variables['Agent.OS'], 'Windows_NT')
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
|
set -e
|
||||||
# install and build go-libp2p-daemon
|
# install and build go-libp2p-daemon
|
||||||
go version
|
go version
|
||||||
|
|
||||||
|
@ -170,6 +174,7 @@ steps:
|
||||||
displayName: 'Building Go libp2p daemon'
|
displayName: 'Building Go libp2p daemon'
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
|
set -e
|
||||||
echo "PATH=${PATH}"
|
echo "PATH=${PATH}"
|
||||||
nimble refresh
|
nimble refresh
|
||||||
nimble install -y --depsOnly
|
nimble install -y --depsOnly
|
||||||
|
@ -183,6 +188,7 @@ steps:
|
||||||
condition: eq(variables['Agent.OS'], 'Windows_NT')
|
condition: eq(variables['Agent.OS'], 'Windows_NT')
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
|
set -e
|
||||||
echo "PATH=${PATH}"
|
echo "PATH=${PATH}"
|
||||||
which gcc
|
which gcc
|
||||||
gcc -v
|
gcc -v
|
||||||
|
|
Loading…
Reference in New Issue