File tree Expand file tree Collapse file tree 2 files changed +32
-26
lines changed Expand file tree Collapse file tree 2 files changed +32
-26
lines changed Original file line number Diff line number Diff line change @@ -12,23 +12,26 @@ main() {
12
12
13
13
# Builds for iOS are done on OSX, but require the specific target to be
14
14
# installed.
15
- case $TARGET in
16
- aarch64-apple-ios)
17
- rustup target install aarch64-apple-ios
18
- ;;
19
- armv7-apple-ios)
20
- rustup target install armv7-apple-ios
21
- ;;
22
- armv7s-apple-ios)
23
- rustup target install armv7s-apple-ios
24
- ;;
25
- i386-apple-ios)
26
- rustup target install i386-apple-ios
27
- ;;
28
- x86_64-apple-ios)
29
- rustup target install x86_64-apple-ios
30
- ;;
31
- esac
15
+ IFS=' ;' read -ra TARGET_ARRAY <<< " $TARGET"
16
+ for t in " ${TARGET_ARRAY[@]} " ; do
17
+ case $t in
18
+ aarch64-apple-ios)
19
+ rustup target install aarch64-apple-ios
20
+ ;;
21
+ armv7-apple-ios)
22
+ rustup target install armv7-apple-ios
23
+ ;;
24
+ armv7s-apple-ios)
25
+ rustup target install armv7s-apple-ios
26
+ ;;
27
+ i386-apple-ios)
28
+ rustup target install i386-apple-ios
29
+ ;;
30
+ x86_64-apple-ios)
31
+ rustup target install x86_64-apple-ios
32
+ ;;
33
+ esac
34
+ done
32
35
33
36
# This fetches latest stable release
34
37
local tag=$( git ls-remote --tags --refs --exit-code https://github.com/japaric/cross \
Original file line number Diff line number Diff line change @@ -8,17 +8,20 @@ main() {
8
8
export RUSTFLAGS=--cfg=travis
9
9
fi
10
10
11
- # Build debug and release targets
12
- cross build --target $TARGET
13
- cross build --target $TARGET --release
11
+ IFS=' ;' read -ra TARGET_ARRAY <<< " $TARGET"
12
+ for t in " ${TARGET_ARRAY[@]} " ; do
13
+ # Build debug and release targets
14
+ cross build --target $t
15
+ cross build --target $t --release
14
16
15
- if [ ! -z $DISABLE_TESTS ]; then
16
- return
17
- fi
17
+ if [ ! -z $DISABLE_TESTS ]; then
18
+ continue
19
+ fi
18
20
19
- # Run tests on debug and release targets.
20
- cross test --target $TARGET
21
- cross test --target $TARGET --release
21
+ # Run tests on debug and release targets.
22
+ cross test --target $t
23
+ cross test --target $t --release
24
+ done
22
25
}
23
26
24
27
# we don't run the "test phase" when doing deploys
You can’t perform that action at this time.
0 commit comments