mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-08 04:34:16 +00:00
Merge pull request #154 from alzeih/patch-1
Fix test error "fatal: empty ident name (for <(null)>) not allowed"
This commit is contained in:
commit
af7659de18
2 changed files with 5 additions and 3 deletions
|
|
@ -7,10 +7,7 @@ env: # These should match the tox env list
|
||||||
- TOXENV=pypy
|
- TOXENV=pypy
|
||||||
install: pip install coveralls tox
|
install: pip install coveralls tox
|
||||||
script: tox
|
script: tox
|
||||||
# Special snowflake. Our tests depend on making real commits.
|
|
||||||
before_install:
|
before_install:
|
||||||
- git config --global user.name "Travis CI"
|
|
||||||
- git config --global user.email "user@example.com"
|
|
||||||
# Install git-lfs for a test
|
# Install git-lfs for a test
|
||||||
- './get-git-lfs.py && export PATH="/tmp/git-lfs:$PATH"'
|
- './get-git-lfs.py && export PATH="/tmp/git-lfs:$PATH"'
|
||||||
after_success:
|
after_success:
|
||||||
|
|
|
||||||
5
tox.ini
5
tox.ini
|
|
@ -6,6 +6,11 @@ envlist = py27,py34,py35,pypy
|
||||||
[testenv]
|
[testenv]
|
||||||
deps = -rrequirements-dev.txt
|
deps = -rrequirements-dev.txt
|
||||||
passenv = HOME HOMEPATH PROGRAMDATA
|
passenv = HOME HOMEPATH PROGRAMDATA
|
||||||
|
setenv =
|
||||||
|
GIT_AUTHOR_NAME = "test"
|
||||||
|
GIT_COMMITTER_NAME = "test"
|
||||||
|
GIT_AUTHOR_EMAIL = "test@example.com"
|
||||||
|
GIT_COMMITTER_EMAIL = "test@example.com"
|
||||||
commands =
|
commands =
|
||||||
coverage erase
|
coverage erase
|
||||||
coverage run -m pytest {posargs:tests}
|
coverage run -m pytest {posargs:tests}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue