mirror of
https://github.com/sharkdp/hyperfine.git
synced 2024-09-11 22:17:46 +03:00
96 lines
3.1 KiB
YAML
96 lines
3.1 KiB
YAML
language: rust
|
|
cache: cargo
|
|
matrix:
|
|
include:
|
|
# Stable channel.
|
|
- os: linux
|
|
rust: stable
|
|
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
|
|
|
|
# Minimum Rust supported channel.
|
|
- os: linux
|
|
rust: 1.31.0
|
|
env: TARGET=x86_64-unknown-linux-gnu
|
|
- os: linux
|
|
rust: 1.31.0
|
|
env: TARGET=x86_64-unknown-linux-musl
|
|
- os: linux
|
|
rust: 1.31.0
|
|
env: TARGET=i686-unknown-linux-gnu
|
|
- os: linux
|
|
rust: 1.31.0
|
|
env: TARGET=i686-unknown-linux-musl
|
|
- os: osx
|
|
rust: 1.31.0
|
|
env: TARGET=x86_64-apple-darwin
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
# needed for i686-unknown-linux-gnu target
|
|
- gcc-multilib
|
|
# needed to build deb packages
|
|
- fakeroot
|
|
|
|
env:
|
|
global:
|
|
# Default target on travis-ci.
|
|
# Used as conditional check in the install stage
|
|
- HOST=x86_64-unknown-linux-gnu
|
|
# Used on the deployment script
|
|
- PROJECT_NAME=hyperfine
|
|
|
|
install:
|
|
# prevent target re-add error from rustup
|
|
- if [[ $TRAVIS_OS_NAME = linux && $HOST != $TARGET ]]; then rustup target add $TARGET; fi
|
|
|
|
script:
|
|
# Incorporate TARGET env var to the build and test process
|
|
- cargo build --target $TARGET --verbose
|
|
- cargo test --target $TARGET --verbose
|
|
|
|
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:
|
|
secure: "U9QfCOQkeozaDNrTV6i2vRocX2puB5p1WSN+w9t/1j33rAtXx6ZhFx67A8nl0+dQ9nvPu/RIsFWXrYzfHQskL1WulKNHm0S5otN+747dEzbSIfMNi1UfysyCiM1SNPq+FX3qOkva83+Fe2Lyd1g4gQObceE4xsgfplfzdm+ebIa6CrfKOypToEuetzP/r8V0WpW4Cp8ojQwvsL1nfHjr1gmvmr443Gr9Yvgq9SS/NAHldrpaJr8mD26W/7jbHdm3lvrNwqLbthYDUTPZsO+2B44h+T/tuhVYbur4fel1KMo4mkIwZwsSKvJbf3Q6Vdcc9dZM+niZU78UGLt0JNEMQNqQLPGYqh+TlFR2B++lcYlybT3LcUaSkt0YIX7C4DAbMLS6sl5Fq2pRNuM/eY2BWdHf0I+K19PDxUEliUifsfSQ3rbfl52aKKLcJa0WPyDJt0qldElagxOaTIk/jn1kKkdkQu9M4gVzKXImIauRQih3CLER7th8ADMxW5Plgq8fvffJBTKlubUznKrGeeR3Mjm8DsRjhkIvFO0Doqmki4sd5zE/BOFI5a/SHg73ms+bLXLuKFK+YzIlHszCHolzkAT44aq7+LEudk8jt+QVtBEocCN/4ew4Q9Qh2tcn22+hU3Aw88lO95PsbZzTzoFtX4X89Sl1fGtpkHFZvvL4ZT0="
|
|
# 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
|
|
file:
|
|
- $PROJECT_NAME-$TRAVIS_TAG-$TARGET.*
|
|
- $PROJECT_NAME*.deb
|
|
# 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 != ""
|
|
|
|
notifications:
|
|
email:
|
|
on_success: never
|