pre-commit/.travis.yml
alzeih bdcbdc2e37 Fix test error "fatal: empty ident name (for <(null)>) not allowed"
Occurs when tests run with tox not with Travis CI or Appveyor

Changed existing tox setenv statement to use whitespace around `=` as per
http://tox.readthedocs.io/en/latest/example/basic.html#setting-environment-variables
2016-12-04 13:33:41 +13:00

27 lines
611 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
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
after_success:
- coveralls
sudo: false
cache:
directories:
- $HOME/.cache/pip
- $HOME/.pre-commit