-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (32 loc) · 1.18 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Travis CI Configuration
# https://docs.travis-ci.com
# This file is based on
# TravisCI · koalaman/shellcheck Wiki
# https://github.com/koalaman/shellcheck/wiki/TravisCI
## Use container-based infrastructure for quicker build start-up
sudo: false
## We only support Ubuntu 14.04 and newer
dist: trusty
language: bash
git:
# Git Clone Depth - Customizing the Build - Travis CI
# https://docs.travis-ci.com/user/customizing-the-build/#Git-Clone-Depth
# > Please note that if you use a depth of 1 and have a queue of jobs, Travis CI won’t build commits that are in the queue when you push a new commit.
depth: 1
addons:
apt:
sources:
- git-core
packages:
- realpath # Merged to GNU Coreutils in Ubuntu 16.04
- git # Update Git due to missing `worktree` sub-command(git-core is not enough)
install:
- pip install --user pre-commit
before_script:
# Run pre-commit hooks on changed file at HEAD
- git diff-tree -z --no-commit-id --name-only -r HEAD | xargs --null pre-commit run --files
# Run shellcheck hook on all scripts in project
- pre-commit run --all-files shellcheck
- ./"GNU Bash Automatic Checking Program for Git Projects.bash"
cache:
pip: true