language: rust
cache: cargo
dist: trusty
matrix:
include:
- os: linux
rust: stable
env: TARGET=x86_64-unknown-linux-gnu
- os: linux
rust: stable
env: TARGET=x86_64-unknown-linux-musl
addons:
apt:
packages: &musl_packages
- musl
- musl-dev
- musl-tools
- os: osx
rust: stable
env: TARGET=x86_64-apple-darwin
rust:
- stable
- nightly
jobs:
include:
- stage: compile
script:
- cargo build
- cargo build --examples
- stage: test
script:
- cargo test
- stage: deploy
if: branch = master
script:
- BUILD_RELEASE="true" bash scripts/docker/build.sh
stages:
- compile
- test
- deploy
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/21e1d3b0e2793934dc3f
on_success: change on_failure: always on_start: never