From e88cc2872fb6ad3493981e925b7c3c0cada0d7d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danie=CC=88l=20de=20Kok?= Date: Wed, 3 Apr 2019 10:43:59 +0200 Subject: [PATCH] Travis-CI: Add MUSL target --- .travis.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ce869d1..ab3454b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,19 +2,31 @@ language: rust env: global: - PROJECT_NAME: finalfrontier +addons: + apt: + packages: + - musl-tools +install: + - if [[ $TRAVIS_OS_NAME = linux && ${TARGET} != x86_64-unknown-linux-gnu ]]; then rustup target add ${TARGET}; fi + matrix: fast_finish: true include: - os: linux rust: stable env: TARGET=x86_64-unknown-linux-gnu + - os: linux + rust: stable + env: TARGET=x86_64-unknown-linux-musl - os: osx rust: stable env: TARGET=x86_64-apple-darwin - os: linux rust: 1.31.0 + env: TARGET=x86_64-unknown-linux-gnu - os: linux rust: nightly + env: TARGET=x86_64-unknown-linux-gnu allow_failures: - rust: nightly before_script: @@ -22,8 +34,8 @@ before_script: - rustup component add rustfmt script: - cargo fmt --all -- --check - - cargo build - - cargo test + - cargo build --target ${TARGET} + - cargo test --target ${TARGET} before_deploy: ci/before_deploy.sh deploy: provider: releases