File tree Expand file tree Collapse file tree 2 files changed +16
-15
lines changed Expand file tree Collapse file tree 2 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -23,28 +23,23 @@ addons:
23
23
- qemu-user
24
24
rust :
25
25
- stable
26
- - beta
27
- - nightly
28
- - nightly-2021-03-25
29
26
env :
30
27
jobs :
31
- # Matrix build of 3 targets against the above rust toolchain releases
28
+ # Matrix build of 3 targets against Rust stable
29
+ - TARGET=x86_64-unknown-linux-gnu ZLIB_INSTALLED=true AES_NI_SUPPORT=true
32
30
- TARGET=aarch64-unknown-linux-musl
33
31
- TARGET=x86_64-fortanix-unknown-sgx
34
- - TARGET=x86_64-unknown-linux-gnu ZLIB_INSTALLED=true AES_NI_SUPPORT=true
35
32
global :
36
33
- RUST_BACKTRACE=1
37
34
# Pinned to this particular nightly version because of core_io. This can be
38
35
# re-pinned whenever core_io is updated to the latest nightly.
39
36
- CORE_IO_NIGHTLY=nightly-2021-03-25
40
37
- LLVM_CONFIG_PATH=llvm-config-3.9
41
-
42
- before_script :
43
- - if [ "$TARGET" == "aarch64-unknown-linux-musl" ]; then
44
- cd /tmp && wget https://musl.cc/aarch64-linux-musl-cross.tgz;
45
- tar -xvzf aarch64-linux-musl-cross.tgz;
46
- cd $TRAVIS_BUILD_DIR;
47
- fi
48
-
38
+ jobs :
39
+ include :
40
+ # Test additional Rust toolchains on x86_64
41
+ - rust : beta
42
+ - rust : nightly
43
+ - rust : nightly-2021-03-25
49
44
script :
50
45
- ./ct.sh
Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ if [ -z $TRAVIS_RUST_VERSION ]; then
9
9
exit 1
10
10
fi
11
11
12
+ if [ " $TARGET " == " aarch64-unknown-linux-musl" ]; then
13
+ cd /tmp && wget https://musl.cc/aarch64-linux-musl-cross.tgz;
14
+ tar -xzf aarch64-linux-musl-cross.tgz;
15
+ cd $TRAVIS_BUILD_DIR ;
16
+ fi
17
+
12
18
export CFLAGS_x86_64_fortanix_unknown_sgx=" -isystem/usr/include/x86_64-linux-gnu -mlvi-hardening -mllvm -x86-experimental-lvi-inline-asm-hardening"
13
19
export CC_x86_64_fortanix_unknown_sgx=clang-11
14
20
export CC_aarch64_unknown_linux_musl=/tmp/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc
@@ -32,12 +38,12 @@ if [ "$TRAVIS_RUST_VERSION" == "stable" ] || [ "$TRAVIS_RUST_VERSION" == "beta"
32
38
cargo test --features dsa --target $TARGET
33
39
34
40
# If zlib is installed, test the zlib feature
35
- if [[ -v " ${ ZLIB_INSTALLED} " ] ]; then
41
+ if [ -n $ ZLIB_INSTALLED ]; then
36
42
cargo test --features zlib --target $TARGET
37
43
fi
38
44
39
45
# If AES-NI is supported, test the feature
40
- if [[ -v " ${ AES_NI_SUPPORT} " ] ]; then
46
+ if [ -n $ AES_NI_SUPPORT ]; then
41
47
cargo test --features force_aesni_support --target $TARGET
42
48
fi
43
49
else
You can’t perform that action at this time.
0 commit comments