Skip to content

Commit

Permalink
Travis-CI: Add MUSL target
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldk committed Apr 3, 2019
1 parent 000e585 commit e88cc28
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,40 @@ 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:
- rustup component add clippy
- 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
Expand Down

0 comments on commit e88cc28

Please sign in to comment.