forked from pre-commit/pre-commit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
32 lines (32 loc) · 778 Bytes
/
.travis.yml
File metadata and controls
32 lines (32 loc) · 778 Bytes
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
language: python
dist: trusty
sudo: required
services:
- docker
matrix:
include:
- env: TOXENV=py27
- env: TOXENV=py27 LATEST_GIT=1
- env: TOXENV=py35
python: 3.5
- env: TOXENV=py36
python: 3.6
- env: TOXENV=pypy
install: pip install coveralls tox
script: tox
before_install:
# Our tests inspect some of *our* git history
- git fetch --unshallow
- git --version
- |
if [ "$LATEST_GIT" = "1" ]; then
./latest-git.sh
export PATH="/tmp/git/bin:$PATH"
fi
- git --version
- './get-swift.sh && export PATH="/tmp/swift/usr/bin:$PATH"'
after_success: coveralls
cache:
directories:
- $HOME/.cache/pip
- $HOME/.pre-commit