-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (28 loc) · 1005 Bytes
/
.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
# 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
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)
## We only support Ubuntu 14.04 and newer
dist: trusty
language: bash
## EXPERIMENTAL
## 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.
git:
depth: 3
submodules: false
install:
- pip install --user pre-commit
before_script:
- git diff-tree -z --no-commit-id --name-only -r HEAD | xargs --null pre-commit run --files