Skip to content

Commit 79d6e65

Browse files
author
Jethro Beekman
committed
Reduce Travis builds
1 parent b1cc0d5 commit 79d6e65

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

.travis.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,23 @@ addons:
2323
- qemu-user
2424
rust:
2525
- stable
26-
- beta
27-
- nightly
28-
- nightly-2021-03-25
2926
env:
3027
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
3230
- TARGET=aarch64-unknown-linux-musl
3331
- TARGET=x86_64-fortanix-unknown-sgx
34-
- TARGET=x86_64-unknown-linux-gnu ZLIB_INSTALLED=true AES_NI_SUPPORT=true
3532
global:
3633
- RUST_BACKTRACE=1
3734
# Pinned to this particular nightly version because of core_io. This can be
3835
# re-pinned whenever core_io is updated to the latest nightly.
3936
- CORE_IO_NIGHTLY=nightly-2021-03-25
4037
- 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
4944
script:
5045
- ./ct.sh

ct.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ if [ -z $TRAVIS_RUST_VERSION ]; then
99
exit 1
1010
fi
1111

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+
1218
export CFLAGS_x86_64_fortanix_unknown_sgx="-isystem/usr/include/x86_64-linux-gnu -mlvi-hardening -mllvm -x86-experimental-lvi-inline-asm-hardening"
1319
export CC_x86_64_fortanix_unknown_sgx=clang-11
1420
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"
3238
cargo test --features dsa --target $TARGET
3339

3440
# If zlib is installed, test the zlib feature
35-
if [[ -v "${ZLIB_INSTALLED}" ]]; then
41+
if [ -n $ZLIB_INSTALLED ]; then
3642
cargo test --features zlib --target $TARGET
3743
fi
3844

3945
# If AES-NI is supported, test the feature
40-
if [[ -v "${AES_NI_SUPPORT}" ]]; then
46+
if [ -n $AES_NI_SUPPORT ]; then
4147
cargo test --features force_aesni_support --target $TARGET
4248
fi
4349
else

0 commit comments

Comments
 (0)