pre-commit/.travis.yml
2016-11-26 12:26:23 -08:00

30 lines
778 B
YAML

language: python
python: 3.5
env: # These should match the tox env list
- TOXENV=py27
- TOXENV=py34
- TOXENV=py35
- TOXENV=pypy
- 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/bin:$PATH"
fi
- git --version
after_success:
- coveralls
sudo: false
cache:
directories:
- $HOME/.cache/pip
- $HOME/.pre-commit