Skip to content

Commit ea8169c

Browse files
committed
ci: Setup pre-commit framework
Signed-off-by: 林博仁(Buo-ren Lin) <[email protected]>
1 parent 2c1c236 commit ea8169c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,14 @@ before_script:
4949
- ./setup-development-environment.bash
5050
- ./'Linters/GNU Bash Automatic Checking Program for Git Projects/GNU Bash Automatic Checking Program for Git Projects.bash'
5151

52+
- pip install --user pre-commit
53+
- git diff-tree -z --no-commit-id --name-only -r HEAD | xargs --null pre-commit run --files
54+
5255
script:
5356
- ./build.bash
5457

5558
cache:
59+
pip: true
5660
directories:
5761
- $HOME/Software
5862

0 commit comments

Comments
 (0)