Skip to content

Commit 9ca1b8a

Browse files
Merge #351
351: Update `xargo`. r=Dylan-DPC a=reitermarkus Co-authored-by: Markus Reiter <[email protected]>
2 parents 9687401 + 24de90e commit 9ca1b8a

35 files changed

+84
-55
lines changed

build-docker-image.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22

3-
set -ex
3+
set -x
4+
set -euo pipefail
45

56
cd docker
67

ci/azure-install-rust.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
steps:
44
- bash: |
5-
set -e
5+
set -euo pipefail
6+
67
if command -v rustup; then
78
echo `command -v rustup` `rustup -V` already installed
89
rustup self update
@@ -17,13 +18,16 @@ steps:
1718
displayName: Install rustup
1819
1920
- bash: |
20-
set -e
21+
set -euo pipefail
22+
2123
rustup update $TOOLCHAIN
2224
rustup default $TOOLCHAIN
2325
displayName: Install rust
2426
2527
- bash: |
26-
set -ex
28+
set -x
29+
set -euo pipefail
30+
2731
rustup -V
2832
rustc -Vv
2933
cargo -V

ci/test.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22

3-
set -ex
3+
set -x
4+
set -euo pipefail
45

56
function retry {
67
local tries=${TRIES-5}
@@ -41,7 +42,7 @@ main() {
4142
export QEMU_STRACE=1
4243

4344
# test `cross check`
44-
if [ ! -z $STD ]; then
45+
if [[ ! -z ${STD:-} ]]; then
4546
td=$(mktemp -d)
4647
cargo init --lib --name foo $td
4748
pushd $td
@@ -52,7 +53,7 @@ main() {
5253
fi
5354

5455
# `cross build` test for targets where `std` is not available
55-
if [ -z "$STD" ]; then
56+
if [[ -z "${STD:-}" ]]; then
5657
td=$(mktemp -d)
5758

5859
git clone \
@@ -98,9 +99,9 @@ EOF
9899
rm -rf $td
99100
fi
100101

101-
if [ $RUN ]; then
102+
if [[ ${RUN:-} ]]; then
102103
# `cross test` test
103-
if [ $DYLIB ]; then
104+
if [[ ${DYLIB:-} ]]; then
104105
td=$(mktemp -d)
105106

106107
pushd $td
@@ -150,15 +151,15 @@ EOF
150151
fi
151152

152153
# Test C++ support
153-
if [ $CPP ]; then
154+
if [[ ${CPP:-} ]]; then
154155
td=$(mktemp -d)
155156

156157
git clone --depth 1 https://github.com/japaric/hellopp $td
157158

158159
pushd $td
159160
cargo update -p gcc
160161
retry cargo fetch
161-
if [ $RUN ]; then
162+
if [[ ${RUN:-} ]]; then
162163
cross_run --target $TARGET
163164
else
164165
cross build --target $TARGET
@@ -170,7 +171,7 @@ EOF
170171
}
171172

172173
cross_run() {
173-
if [ -z "$RUNNERS" ]; then
174+
if [[ -z "${RUNNERS:-}" ]]; then
174175
cross run "$@"
175176
else
176177
for runner in $RUNNERS; do
@@ -181,7 +182,7 @@ cross_run() {
181182
}
182183

183184
cross_test() {
184-
if [ -z "$RUNNERS" ]; then
185+
if [[ -z "${RUNNERS:-}" ]]; then
185186
cross test "$@"
186187
else
187188
for runner in $RUNNERS; do
@@ -192,7 +193,7 @@ cross_test() {
192193
}
193194

194195
cross_bench() {
195-
if [ -z "$RUNNERS" ]; then
196+
if [[ -z "${RUNNERS:-}" ]]; then
196197
cross bench "$@"
197198
else
198199
for runner in $RUNNERS; do

docker/Dockerfile.aarch64-linux-android

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ COPY android-system.sh /
1414
RUN /android-system.sh arm64
1515

1616
COPY qemu.sh /
17-
RUN /qemu.sh aarch64 android
17+
RUN /qemu.sh aarch64
1818

1919
RUN cp /android-ndk/sysroot/usr/lib/libz.so /system/lib/
2020

docker/Dockerfile.aarch64-unknown-linux-gnu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN apt-get install -y --no-install-recommends \
1515
libc6-dev-arm64-cross
1616

1717
COPY qemu.sh /
18-
RUN /qemu.sh aarch64 linux softmmu
18+
RUN /qemu.sh aarch64 softmmu
1919

2020
COPY dropbear.sh /
2121
RUN /dropbear.sh

docker/Dockerfile.arm-linux-androideabi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ COPY android-system.sh /
1414
RUN /android-system.sh arm
1515

1616
COPY qemu.sh /
17-
RUN /qemu.sh arm android
17+
RUN /qemu.sh arm
1818

1919
RUN cp /android-ndk/sysroot/usr/lib/libz.so /system/lib/
2020

docker/Dockerfile.armv7-linux-androideabi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ COPY android-system.sh /
1414
RUN /android-system.sh arm
1515

1616
COPY qemu.sh /
17-
RUN /qemu.sh arm android
17+
RUN /qemu.sh arm
1818

1919
RUN cp /android-ndk/sysroot/usr/lib/libz.so /system/lib/
2020

docker/Dockerfile.armv7-unknown-linux-gnueabihf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN apt-get install -y --no-install-recommends \
1515
libc6-dev-armhf-cross
1616

1717
COPY qemu.sh /
18-
RUN /qemu.sh arm linux softmmu
18+
RUN /qemu.sh arm softmmu
1919

2020
COPY dropbear.sh /
2121
RUN /dropbear.sh

docker/Dockerfile.i686-linux-android

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN /android-system.sh x86
2121
#
2222
# Running with qemu works as expected
2323
COPY qemu.sh /
24-
RUN /qemu.sh i386 android
24+
RUN /qemu.sh i386
2525

2626
RUN cp /android-ndk/sysroot/usr/lib/libz.so /system/lib/
2727

docker/Dockerfile.i686-unknown-linux-gnu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RUN apt-get install -y --no-install-recommends \
1414
g++-multilib
1515

1616
COPY qemu.sh /
17-
RUN /qemu.sh i386 linux softmmu
17+
RUN /qemu.sh i386 softmmu
1818

1919
COPY dropbear.sh /
2020
RUN /dropbear.sh

0 commit comments

Comments
 (0)