/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.9
extra/git-post-commit.sh
23 строки
736 B
Ville Skyttä
post-commit: trigger on test/requirements.txt too
09 мар 2019, 10:39
09 мар 2019, 10:39
51aa5c3
Код
Авторство
О чём код?
#!/bin/sh -e # Post-commit hook for triggering bash-completion Docker Hub test image # builds at https://hub.docker.com/r/vskytta/bash-completion/ # # To enable: ln -s ../../extra/git-post-commit.sh .git/hooks/post-commit # # The bash-completion.docker-hub-trigger-url config option must be set to # the full Docker Hub build trigger URL to hit. url=$(git config bash-completion.docker-hub-trigger-url) test "$(git symbolic-ref --short HEAD 2>/dev/null)" = master git diff-tree -r --name-only --no-commit-id HEAD | \ grep -qxE 'completions/Makefile\.am|test/requirements\.txt' curl \ --silent --show-error \ --max-time 30 \ --header Content-Type:application/json \ --data '{"build":true}' \ $url >/dev/null