# Based on the "trust" template v0.1.2
# https://github.com/japaric/trust/tree/v0.1.2
dist: trusty
language: rust
services: docker
sudo: required
env:
global:
- CRATE_NAME=emplace
matrix:
include:
# Linux
- env: TARGET=aarch64-unknown-linux-gnu
- env: TARGET=arm-unknown-linux-gnueabi
- env: TARGET=armv7-unknown-linux-gnueabihf
- env: TARGET=i686-unknown-linux-gnu
- env: TARGET=i686-unknown-linux-musl
- env: TARGET=mips-unknown-linux-gnu
- env: TARGET=mips64-unknown-linux-gnuabi64
- env: TARGET=mips64el-unknown-linux-gnuabi64
- env: TARGET=mipsel-unknown-linux-gnu
- env: TARGET=powerpc-unknown-linux-gnu
- env: TARGET=powerpc64-unknown-linux-gnu
- env: TARGET=s390x-unknown-linux-gnu DISABLE_TESTS=1
- env: TARGET=x86_64-unknown-linux-gnu
- env: TARGET=x86_64-unknown-linux-musl
# OSX
- env: TARGET=x86_64-apple-darwin
os: osx
# Testing other channels
- env: TARGET=x86_64-unknown-linux-gnu
rust: nightly
- env: TARGET=x86_64-apple-darwin
os: osx
rust: nightly
before_install:
- set -e
- rustup self update
install:
- sh ci/install.sh
- source ~/.cargo/env || true
script:
- bash ci/script.sh
after_script: set +e
before_deploy:
- sh ci/before_deploy.sh
deploy:
# - Create a `public_repo` GitHub token. Go to: https://github.com/settings/tokens/new
# - Encrypt it: `travis encrypt 0123456789012345678901234567890123456789
# - Paste the output down here
api_key:
- secure: Z0mPeFMLdnEqgrLBodxrG1TdGM/r3D7H3pLKpuh33eztfiCSK4Qy8aubG7UHhaoSdHFaIjvnfXCrN3vmtwgH0hLaYvFSABKxCXn8bu+mo8veGJvxNEAt8QSYRgyt+oEKXhAUor9XgQLNZSnObg80DzBVwD2WVZuPERnPIYtV4na1ZHcBzCVnPeXfajk99WEOJjVbVraS1rOwY/J0cGK6AYvYurdR0Q1Be9tSDjeqgFTBh/btUBygEsU7UrowRcEktDs1ohZIfYO/ShkYgTdKsTJb6LeoHfgkYZQdryboRL0b87KSIRfyJcgpQDLU19Jcl6LEABNszf86gRbBwjPpJa/IN6hShv3o+uRIHVGAUXJTz48PasKmCnXpKMFkFY1reGdjZDz2ajbAnZg/Dgn4U9wy2tmQyZSeCrUMB6LvisW0edUY7igwYCLVbHkuXpLibDFR/OJXPXcjr7Tl3cUNA5hLa+dhpANlO2tJs/VCliqNhHikbfQmeYhQaXp1KAWTYhivrylFNxOdaxBy7nm+epU2tpR71NxJAJSmR1RK7elWFJViJnXvkX1VHHTX0nXk6DJeiSPl1V5ytaiTyEcuG9Uu/EDjpRMflLTmpGuPIBREMHJlaOMEpjzbFQj8OJpEALw3dbMmnX90KPABC0FGnt9r35D91+hYdIz8/YuG1jo=
file_glob: true
file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.*
on:
# In this example, there are some targets that are tested using the stable
# and nightly channels. This condition makes sure there is only one release
# for such targets and that's generated using the stable channel
condition: $TRAVIS_RUST_VERSION = stable
tags: true
provider: releases
skip_cleanup: true
cache: cargo
before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo
branches:
only:
# release tags
- /^v\d+\.\d+\.\d+.*$/
- master
notifications:
email:
on_success: never