2017-05-12 11:41:26 +00:00
|
|
|
language: rust
|
2017-10-11 17:11:19 +00:00
|
|
|
cache: cargo
|
2017-06-05 09:51:05 +00:00
|
|
|
matrix:
|
2018-04-21 09:38:34 +00:00
|
|
|
# allow_failures:
|
|
|
|
# - rust: nightly
|
2017-06-12 20:05:34 +00:00
|
|
|
include:
|
2017-10-11 17:11:19 +00:00
|
|
|
# Stable channel.
|
|
|
|
- os: linux
|
|
|
|
rust: stable
|
2017-10-19 04:47:35 +00:00
|
|
|
env: TARGET=x86_64-unknown-linux-gnu
|
|
|
|
- os: linux
|
|
|
|
rust: stable
|
|
|
|
env: TARGET=x86_64-unknown-linux-musl
|
|
|
|
- os: linux
|
|
|
|
rust: stable
|
|
|
|
env: TARGET=i686-unknown-linux-gnu
|
|
|
|
- os: linux
|
|
|
|
rust: stable
|
|
|
|
env: TARGET=i686-unknown-linux-musl
|
|
|
|
- os: osx
|
|
|
|
rust: stable
|
|
|
|
env: TARGET=x86_64-apple-darwin
|
2018-08-19 13:30:59 +00:00
|
|
|
- os: linux
|
|
|
|
rust: stable
|
|
|
|
env:
|
|
|
|
- TARGET=arm-unknown-linux-gnueabihf
|
2019-06-16 06:23:43 +00:00
|
|
|
- CC_arm_unknown_linux_gnueabihf=/usr/bin/arm-linux-gnueabihf-gcc-4.8
|
2018-08-19 13:30:59 +00:00
|
|
|
- CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc-4.8
|
2018-11-03 09:58:54 +00:00
|
|
|
- os: linux
|
|
|
|
rust: stable
|
|
|
|
env:
|
|
|
|
- TARGET=arm-unknown-linux-musleabihf
|
|
|
|
- CARGO_TARGET_ARM_UNKNOWN_LINUX_MUSLEABIHF_LINKER=arm-linux-gnueabihf-gcc-4.8
|
2017-10-19 04:47:35 +00:00
|
|
|
|
2017-10-11 17:11:19 +00:00
|
|
|
# Beta channel.
|
|
|
|
- os: linux
|
|
|
|
rust: beta
|
2017-10-19 04:47:35 +00:00
|
|
|
env: TARGET=x86_64-unknown-linux-gnu
|
2017-10-20 06:41:53 +00:00
|
|
|
# Disabled to reduce total CI time
|
|
|
|
# - os: linux
|
|
|
|
# rust: beta
|
|
|
|
# env: TARGET=x86_64-unknown-linux-musl
|
|
|
|
# - os: linux
|
|
|
|
# rust: beta
|
|
|
|
# env: TARGET=i686-unknown-linux-gnu
|
|
|
|
# - os: linux
|
|
|
|
# rust: beta
|
|
|
|
# env: TARGET=i686-unknown-linux-musl
|
|
|
|
# - os: osx
|
|
|
|
# rust: beta
|
|
|
|
# env: TARGET=x86_64-apple-darwin
|
2017-10-19 04:47:35 +00:00
|
|
|
|
2017-06-12 20:05:34 +00:00
|
|
|
# Nightly channel.
|
2017-10-11 17:11:19 +00:00
|
|
|
- os: linux
|
|
|
|
rust: nightly
|
2017-10-19 04:47:35 +00:00
|
|
|
env: TARGET=x86_64-unknown-linux-gnu
|
2017-10-20 06:41:53 +00:00
|
|
|
# Disabled to reduce total CI time
|
|
|
|
# - os: linux
|
|
|
|
# rust: nightly
|
|
|
|
# env: TARGET=x86_64-unknown-linux-musl
|
|
|
|
# - os: linux
|
|
|
|
# rust: nightly
|
|
|
|
# env: TARGET=i686-unknown-linux-gnu
|
|
|
|
# - os: linux
|
|
|
|
# rust: nightly
|
|
|
|
# env: TARGET=i686-unknown-linux-musl
|
|
|
|
# - os: osx
|
|
|
|
# rust: nightly
|
|
|
|
# env: TARGET=x86_64-apple-darwin
|
2017-10-19 04:47:35 +00:00
|
|
|
|
2017-06-12 20:05:34 +00:00
|
|
|
# Minimum Rust supported channel.
|
|
|
|
- os: linux
|
2018-12-09 14:11:43 +00:00
|
|
|
rust: 1.31.0
|
2017-06-12 20:05:34 +00:00
|
|
|
env: TARGET=x86_64-unknown-linux-gnu
|
|
|
|
- os: linux
|
2018-12-09 14:11:43 +00:00
|
|
|
rust: 1.31.0
|
2017-06-12 20:05:34 +00:00
|
|
|
env: TARGET=x86_64-unknown-linux-musl
|
2017-10-19 04:47:35 +00:00
|
|
|
- os: linux
|
2018-12-09 14:11:43 +00:00
|
|
|
rust: 1.31.0
|
2017-10-19 04:47:35 +00:00
|
|
|
env: TARGET=i686-unknown-linux-gnu
|
|
|
|
- os: linux
|
2018-12-09 14:11:43 +00:00
|
|
|
rust: 1.31.0
|
2017-10-19 04:47:35 +00:00
|
|
|
env: TARGET=i686-unknown-linux-musl
|
2017-10-07 19:30:57 +00:00
|
|
|
- os: osx
|
2018-12-09 14:11:43 +00:00
|
|
|
rust: 1.31.0
|
2017-10-07 19:30:57 +00:00
|
|
|
env: TARGET=x86_64-apple-darwin
|
2017-06-12 20:05:34 +00:00
|
|
|
|
2018-01-01 11:16:43 +00:00
|
|
|
# Code formatting check
|
2017-10-19 04:47:35 +00:00
|
|
|
- os: linux
|
|
|
|
rust: nightly
|
|
|
|
# skip the global install step
|
2017-10-21 03:21:56 +00:00
|
|
|
install:
|
2018-02-07 18:50:10 +00:00
|
|
|
- cargo install --debug --force rustfmt-nightly
|
2018-05-14 16:39:47 +00:00
|
|
|
script: cargo fmt -- --check
|
2017-10-19 04:47:35 +00:00
|
|
|
|
2018-08-19 13:30:59 +00:00
|
|
|
sudo: required
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- ci/before_install.bash
|
2017-10-19 04:47:35 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
# Default target on travis-ci.
|
|
|
|
# Used as conditional check in the install stage
|
|
|
|
- HOST=x86_64-unknown-linux-gnu
|
2017-10-23 05:41:28 +00:00
|
|
|
# Used on the deployment script
|
|
|
|
- PROJECT_NAME=fd
|
2017-10-19 04:47:35 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
# prevent target re-add error from rustup
|
|
|
|
- if [[ $TRAVIS_OS_NAME = linux && $HOST != $TARGET ]]; then rustup target add $TARGET; fi
|
|
|
|
|
|
|
|
script:
|
2018-08-19 13:30:59 +00:00
|
|
|
- ci/script.bash
|
2017-10-19 04:47:35 +00:00
|
|
|
|
2017-10-23 05:41:28 +00:00
|
|
|
before_deploy:
|
|
|
|
- bash ci/before_deploy.bash
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
# NOTE updating the `api_key.secure`
|
|
|
|
# - go to: https://github.com/settings/tokens/new
|
|
|
|
# - generate new token using `public_repo` scope
|
|
|
|
# - encrypt it using: `travis encrypt API_KEY_HERE`
|
|
|
|
# - paste the output below
|
|
|
|
api_key:
|
2017-10-25 16:28:27 +00:00
|
|
|
secure: "RyFdh2lpDmaNhPar7ezsb18Xz+6XFM40y7cZCDRML+Sk+eYK1xtDNfEhDRJU5Qo1ReVsByds/QJTSXr2KmZPk3lXwG3SiN7UtrLUxCxFr6qrcM/iujlKTf5UxeRklkzPXxnH95DEyEgxvgbVhWTGVDWoyMnrVQXZKDy6z1iAiYB5h2Zl1rs+MRb/Enlt5q6XIKAlG0ppGtl8CfYudq5ZiqfJaMWTt9SWm2YskC8FeMc0S3IM6/EhTvaNYLdaarFqVWQEVql+6oCuL3ayPzmGyxLdxM37tIMNQ0f97zxqWodacXTG5ULdRD8if1l/SmTujrtjbZ0KWRjsjOq4vBtxBJKGdprcSiB0xH/hToqqtTSO0z5FPXi5cB8UlK6YLDDHcP3kXNer8CYMLI1VPaUDLTF57/0/RPi2DZiiGfZsIAS6PsICbHdTQVzxQckM4lN1vnAGgkhXIMbztml21pv+QrGy98OZJ0ubf5ztgQhpT0WPH4JXT8M6htsoo8dZf8lQ5aLfmW9RKePJDqixQwPqmimPIkrlxRDTDGII0ZAZws7l779eOLmEcM2tH2HbsUKUCZIG/pRHLSlP45Jn2bULGzuXZ2daq70z6zvIbom0CUzSXIvdTXEZI2AM5RBvPYGGaKI8YlxgRdQvJp3h0BzPdFOXI3RAxscCY7PJpa/RdIg="
|
2017-10-23 05:41:28 +00:00
|
|
|
# for uploading multiple files
|
|
|
|
file_glob: true
|
|
|
|
# NOTE explanation on each env variable
|
|
|
|
# - PROJECT_NAME: name of the project, set on the `env.global` above
|
|
|
|
# - TRAVIS_TAG: tag name that the build is being deployed for, usually the version number
|
|
|
|
# - TARGET: target triple of the build
|
2017-12-04 07:47:35 +00:00
|
|
|
file:
|
|
|
|
- $PROJECT_NAME-$TRAVIS_TAG-$TARGET.*
|
|
|
|
- $PROJECT_NAME*.deb
|
2017-10-23 05:41:28 +00:00
|
|
|
# don't delete artifacts from previous stage
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
# deploy only if we push a tag
|
|
|
|
tags: true
|
|
|
|
# deploy only on stable channel that has TARGET env variable sets
|
|
|
|
condition: $TRAVIS_RUST_VERSION = stable && $TARGET != ""
|
|
|
|
|
2017-06-12 20:05:34 +00:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|