mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-03-03 14:32:22 +02:00
[ignore] tests and new matched_path_or_any_parents method The test data (gitignore rules and expected result) is based on the test repo at <https://github.com/behnam/gitignore-test>. The new `matched_path_or_any_parents` method fixes a bug in gitignore matching where rules of form `<dir>/*` result in ignoring only first-level files, but no deep files. This is not correct, as `<dir>/*` matches the first-level directories under `<dir>`, resulting all to be ignored. The new method fixes it by trying to match all parents in the path against the gitignore rules. The new method is necessary because it necessarily entails a performance hit for trying to match all parents.
75 lines
2.5 KiB
YAML
75 lines
2.5 KiB
YAML
language: rust
|
|
|
|
env:
|
|
global:
|
|
- PROJECT_NAME=ripgrep
|
|
- RUST_BACKTRACE: full
|
|
matrix:
|
|
include:
|
|
# 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-2017-03-13
|
|
env: TARGET=i686-unknown-linux-musl
|
|
- os: linux
|
|
rust: nightly-2017-03-13
|
|
env: TARGET=x86_64-unknown-linux-musl
|
|
- os: osx
|
|
rust: nightly-2017-03-13
|
|
env: TARGET=x86_64-apple-darwin
|
|
# Beta channel.
|
|
- os: linux
|
|
rust: beta
|
|
env: TARGET=x86_64-unknown-linux-musl
|
|
- os: linux
|
|
rust: beta
|
|
env: TARGET=x86_64-unknown-linux-gnu
|
|
# Minimum Rust supported channel.
|
|
- os: linux
|
|
rust: 1.12.0
|
|
env: TARGET=x86_64-unknown-linux-gnu
|
|
- os: linux
|
|
rust: 1.12.0
|
|
env: TARGET=x86_64-unknown-linux-musl
|
|
|
|
before_install:
|
|
- export PATH="$PATH:$HOME/.cargo/bin"
|
|
|
|
install:
|
|
- bash ci/install.sh
|
|
|
|
script:
|
|
- bash ci/script.sh
|
|
|
|
before_deploy:
|
|
- bash ci/before_deploy.sh
|
|
|
|
deploy:
|
|
provider: releases
|
|
api_key:
|
|
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="
|
|
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-2017-03-13
|
|
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
|