From b806d5ea826553ca22532262bc8bd88d63f4ade1 Mon Sep 17 00:00:00 2001 From: Alexander Polyakov Date: Fri, 23 Sep 2016 15:20:38 +0300 Subject: [PATCH] Enable x86-64 musl build on travis --- .travis.yml | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 45057a1..baab7ff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,24 @@ language: rust -cache: - directories: - - $HOME/.cargo -rust: - - stable - - beta - - nightly +matrix: + include: + - os: linux + rust: stable + env: TARGET=x86_64-unknown-linux-gnu + - os: linux + rust: beta + env: TARGET=x86_64-unknown-linux-gnu + - os: linux + rust: nightly + env: TARGET=x86_64-unknown-linux-gnu + - os: linux + rust: stable + env: TARGET=x86_64-unknown-linux-musl + - os: linux + rust: beta + env: TARGET=x86_64-unknown-linux-musl + - os: linux + rust: nightly + env: TARGET=x86_64-unknown-linux-musl notifications: irc: channels: @@ -14,5 +27,7 @@ notifications: script: - | git clone --depth=1 https://github.com/luigirizzo/netmap && - cargo build --verbose && cargo test --verbose && - cargo build --features netmap_with_libs && cargo test --features netmap_with_libs + cargo build --target=$TARGET --verbose && + cargo test --target=$TARGET --verbose && + cargo build --target=$TARGET --features netmap_with_libs && + cargo test --target=$TARGET --features netmap_with_libs