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
38 lines (38 loc) · 922 Bytes
/
.travis.yml
File metadata and controls
38 lines (38 loc) · 922 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
33
34
35
36
37
38
language: python
env: # These should match the tox env list
- TOXENV=py26
- TOXENV=py27
- TOXENV=py33
- TOXENV=py34
- TOXENV=py35
- TOXENV=pypy
- TOXENV=pypy3
- TOXENV=py27 LATEST_GIT=1
install: pip install coveralls tox
script: tox
# Special snowflake. Our tests depend on making real commits.
before_install:
- git config --global user.name "Travis CI"
- git config --global user.email "user@example.com"
# 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:$PATH"
fi
- git --version
after_success:
- coveralls
sudo: false
cache:
directories:
- $HOME/.cache/pip
- $HOME/.pre-commit
addons:
apt:
sources:
- deadsnakes
packages:
- python3.5-dev