Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup:ci:Simplify the listing of files for sanity check #929

Merged
merged 3 commits into from
Oct 30, 2019
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions scripts/ci_sanity_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@ check_diff(){
}

# List the files that are different from the trunk
from=$(git rev-parse refs/remotes/origin/trunk)
to=$(git rev-parse HEAD)
interval=${from}..${to}
[[ "${from}" == "${to}" ]] && interval=${to}

for f in $(git diff --name-only ${interval} | sort -u); do
for f in $(git diff --name-only refs/remotes/origin/trunk | sort -u); do
if [[ "${f}" =~ navit/support/ ]] || [[ "${f}" =~ navit/fib-1\.1/ ]] || [[ "${f}" =~ navit/traffic/permanentrestrictions/ ]] ; then
echo "[DEBUG] Skipping file ${f} ..."
continue
Expand Down