diff --git a/.travis.yml b/.travis.yml index f43e72e..4865338 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,6 +25,11 @@ matrix: env: - TARGET=arm-unknown-linux-gnueabihf - CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc-4.8 + - os: linux + rust: stable + env: + - TARGET=arm-unknown-linux-musleabihf + - CARGO_TARGET_ARM_UNKNOWN_LINUX_MUSLEABIHF_LINKER=arm-linux-gnueabihf-gcc-4.8 # Beta channel. - os: linux diff --git a/ci/before_deploy.bash b/ci/before_deploy.bash index d21dce5..e13616b 100755 --- a/ci/before_deploy.bash +++ b/ci/before_deploy.bash @@ -17,7 +17,7 @@ pack() { out_dir=$(pwd) package_name="$PROJECT_NAME-$TRAVIS_TAG-$TARGET" - if [[ $TARGET == "arm-unknown-linux-gnueabihf" ]]; then + if [[ $TARGET == arm-unknown-linux-* ]]; then gcc_prefix="arm-linux-gnueabihf-" else gcc_prefix="" diff --git a/ci/before_install.bash b/ci/before_install.bash index 8e19876..3e3f141 100755 --- a/ci/before_install.bash +++ b/ci/before_install.bash @@ -17,7 +17,7 @@ if [[ $TARGET == i686-unknown-linux-gnu ]]; then fi # needed for cross-compiling for arm -if [[ $TARGET == arm-unknown-linux-gnueabihf ]]; then +if [[ $TARGET == arm-unknown-linux-* ]]; then sudo apt-get install -y \ gcc-4.8-arm-linux-gnueabihf \ binutils-arm-linux-gnueabihf \ diff --git a/ci/script.bash b/ci/script.bash index 79f8232..5316210 100755 --- a/ci/script.bash +++ b/ci/script.bash @@ -6,6 +6,6 @@ set -ex cargo build --target "$TARGET" --verbose # We cannot run arm executables on linux -if [[ $TARGET != arm-unknown-linux-gnueabihf ]]; then +if [[ $TARGET != arm-unknown-linux-* ]]; then cargo test --target "$TARGET" --verbose fi