2016-02-27 18:07:26 +02:00
|
|
|
language: rust
|
2016-09-06 02:08:46 +02:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
2016-09-09 03:47:49 +02:00
|
|
|
- PROJECT_NAME=ripgrep
|
2016-09-06 02:08:46 +02:00
|
|
|
matrix:
|
|
|
|
include:
|
2016-09-10 00:07:30 +02:00
|
|
|
# Nightly channel.
|
|
|
|
# (All *nix releases are done on the nightly channel to take advantage
|
|
|
|
# of the regex library's multiple pattern SIMD search.)
|
|
|
|
- os: linux
|
|
|
|
rust: nightly
|
|
|
|
env: TARGET=i686-unknown-linux-musl
|
|
|
|
- os: linux
|
|
|
|
rust: nightly
|
|
|
|
env: TARGET=x86_64-unknown-linux-musl
|
2016-09-06 02:08:46 +02:00
|
|
|
- os: osx
|
|
|
|
rust: nightly
|
|
|
|
env: TARGET=x86_64-apple-darwin
|
2016-09-10 00:07:30 +02:00
|
|
|
# Beta channel.
|
2016-09-06 02:08:46 +02:00
|
|
|
- os: linux
|
2016-09-10 00:07:30 +02:00
|
|
|
rust: beta
|
|
|
|
env: TARGET=x86_64-unknown-linux-musl
|
2016-09-10 05:19:37 +02:00
|
|
|
- os: linux
|
|
|
|
rust: beta
|
|
|
|
env: TARGET=x86_64-unknown-linux-gnu
|
2016-09-10 00:07:30 +02:00
|
|
|
- os: osx
|
|
|
|
rust: beta
|
|
|
|
env: TARGET=x86_64-apple-darwin
|
|
|
|
# Minimum Rust supported channel.
|
2016-09-06 02:08:46 +02:00
|
|
|
- os: linux
|
Switch from Docopt to Clap.
There were two important reasons for the switch:
1. Performance. Docopt does poorly when the argv becomes large, which is
a reasonable common use case for search tools. (e.g., use with xargs)
2. Better failure modes. Clap knows a lot more about how a particular
argv might be invalid, and can therefore provide much clearer error
messages.
While both were important, (1) made it urgent.
Note that since Clap requires at least Rust 1.11, this will in turn
increase the minimum Rust version supported by ripgrep from Rust 1.9 to
Rust 1.11. It is therefore a breaking change, so the soonest release of
ripgrep with Clap will have to be 0.3.
There is also at least one subtle breaking change in real usage.
Previous to this commit, this used to work:
rg -e -foo
Where this would cause ripgrep to search for the string `-foo`. Clap
currently has problems supporting this use case
(see: https://github.com/kbknapp/clap-rs/issues/742),
but it can be worked around by using this instead:
rg -e [-]foo
or even
rg [-]foo
and this still works:
rg -- -foo
This commit also adds Bash, Fish and PowerShell completion files to the
release, fixes a bug that prevented ripgrep from working on file
paths containing invalid UTF-8 and shows short descriptions in the
output of `-h` but longer descriptions in the output of `--help`.
Fixes #136, Fixes #189, Fixes #210, Fixes #230
2016-11-13 04:48:11 +02:00
|
|
|
rust: 1.11.0
|
2016-09-10 05:19:37 +02:00
|
|
|
env: TARGET=x86_64-unknown-linux-gnu
|
2016-09-10 00:07:30 +02:00
|
|
|
- os: osx
|
Switch from Docopt to Clap.
There were two important reasons for the switch:
1. Performance. Docopt does poorly when the argv becomes large, which is
a reasonable common use case for search tools. (e.g., use with xargs)
2. Better failure modes. Clap knows a lot more about how a particular
argv might be invalid, and can therefore provide much clearer error
messages.
While both were important, (1) made it urgent.
Note that since Clap requires at least Rust 1.11, this will in turn
increase the minimum Rust version supported by ripgrep from Rust 1.9 to
Rust 1.11. It is therefore a breaking change, so the soonest release of
ripgrep with Clap will have to be 0.3.
There is also at least one subtle breaking change in real usage.
Previous to this commit, this used to work:
rg -e -foo
Where this would cause ripgrep to search for the string `-foo`. Clap
currently has problems supporting this use case
(see: https://github.com/kbknapp/clap-rs/issues/742),
but it can be worked around by using this instead:
rg -e [-]foo
or even
rg [-]foo
and this still works:
rg -- -foo
This commit also adds Bash, Fish and PowerShell completion files to the
release, fixes a bug that prevented ripgrep from working on file
paths containing invalid UTF-8 and shows short descriptions in the
output of `-h` but longer descriptions in the output of `--help`.
Fixes #136, Fixes #189, Fixes #210, Fixes #230
2016-11-13 04:48:11 +02:00
|
|
|
rust: 1.11.0
|
2016-09-10 00:07:30 +02:00
|
|
|
env: TARGET=x86_64-apple-darwin
|
2016-09-06 02:08:46 +02:00
|
|
|
|
|
|
|
before_install:
|
|
|
|
- export PATH="$PATH:$HOME/.cargo/bin"
|
|
|
|
|
|
|
|
install:
|
|
|
|
- bash ci/install.sh
|
|
|
|
|
2016-02-27 18:07:26 +02:00
|
|
|
script:
|
2016-09-06 02:08:46 +02:00
|
|
|
- bash ci/script.sh
|
|
|
|
|
|
|
|
before_deploy:
|
|
|
|
- bash ci/before_deploy.sh
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key:
|
2016-09-06 02:39:10 +02:00
|
|
|
secure: "IbSnsbGkxSydR/sozOf1/SRvHplzwRUHzcTjM7BKnr7GccL86gRPUrsrvD103KjQUGWIc1TnK1YTq5M0Onswg/ORDjqa1JEJPkPdPnVh9ipbF7M2De/7IlB4X4qXLKoApn8+bx2x/mfYXu4G+G1/2QdbaKK2yfXZKyjz0YFx+6CNrVCT2Nk8q7aHvOOzAL58vsG8iPDpupuhxlMDDn/UhyOWVInmPPQ0iJR1ZUJN8xJwXvKvBbfp3AhaBiAzkhXHNLgBR8QC5noWWMXnuVDMY3k4f3ic0V+p/qGUCN/nhptuceLxKFicMCYObSZeUzE5RAI0/OBW7l3z2iCoc+TbAnn+JrX/ObJCfzgAOXAU3tLaBFMiqQPGFKjKg1ltSYXomOFP/F7zALjpvFp4lYTBajRR+O3dqaxA9UQuRjw27vOeUpMcga4ZzL4VXFHzrxZKBHN//XIGjYAVhJ1NSSeGpeJV5/+jYzzWKfwSagRxQyVCzMooYFFXzn8Yxdm3PJlmp3GaAogNkdB9qKcrEvRINCelalzALPi0hD/HUDi8DD2PNTCLLMo6VSYtvc685Zbe+KgNzDV1YyTrRCUW6JotrS0r2ULLwnsh40hSB//nNv3XmwNmC/CmW5QAnIGj8cBMF4S2t6ohADIndojdAfNiptmaZOIT6owK7bWMgPMyopo="
|
2016-09-06 02:08:46 +02:00
|
|
|
file_glob: true
|
|
|
|
file: ${PROJECT_NAME}-${TRAVIS_TAG}-${TARGET}.*
|
|
|
|
# don't delete the artifacts from previous phases
|
|
|
|
skip_cleanup: true
|
|
|
|
# deploy when a new tag is pushed
|
|
|
|
on:
|
|
|
|
# channel to use to produce the release artifacts
|
|
|
|
# NOTE make sure you only release *once* per target
|
|
|
|
# TODO you may want to pick a different channel
|
|
|
|
condition: $TRAVIS_RUST_VERSION = nightly
|
|
|
|
tags: true
|
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
# Pushes and PR to the master branch
|
|
|
|
- master
|
|
|
|
# IMPORTANT Ruby regex to match tags. Required, or travis won't trigger deploys when a new tag
|
|
|
|
# is pushed. This regex matches semantic versions like v1.2.3-rc4+2016.02.22
|
|
|
|
- /^\d+\.\d+\.\d+.*$/
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|