mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 17:14:43 +04:00
Merge pull request #275 from pre-commit/speed_up_tests_on_14_04
Some speedups for tests
This commit is contained in:
commit
72f03c141e
4 changed files with 11 additions and 8 deletions
|
|
@ -5,7 +5,7 @@ env: # These should match the tox env list
|
||||||
- TOXENV=py33
|
- TOXENV=py33
|
||||||
- TOXENV=py34
|
- TOXENV=py34
|
||||||
- TOXENV=pypy
|
- TOXENV=pypy
|
||||||
install: pip install coveralls tox --use-mirrors
|
install: pip install coveralls tox
|
||||||
script: tox
|
script: tox
|
||||||
# Special snowflake. Our tests depend on making real commits.
|
# Special snowflake. Our tests depend on making real commits.
|
||||||
before_install:
|
before_install:
|
||||||
|
|
@ -16,3 +16,7 @@ before_install:
|
||||||
after_success:
|
after_success:
|
||||||
- coveralls
|
- coveralls
|
||||||
sudo: false
|
sudo: false
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/.cache/pip
|
||||||
|
- $HOME/.pre-commit
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,5 @@
|
||||||
name: Ruby Hook
|
name: Ruby Hook
|
||||||
entry: ruby_hook
|
entry: ruby_hook
|
||||||
language: ruby
|
language: ruby
|
||||||
language_version: 1.9.3-p484
|
language_version: 1.9.3-p551
|
||||||
files: \.rb$
|
files: \.rb$
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,7 @@ def test_run_versioned_ruby_hook(tempdir_factory, store):
|
||||||
tempdir_factory, store, 'ruby_1_9_3_hooks_repo',
|
tempdir_factory, store, 'ruby_1_9_3_hooks_repo',
|
||||||
'ruby_hook',
|
'ruby_hook',
|
||||||
['/dev/null'],
|
['/dev/null'],
|
||||||
b'1.9.3\n484\nHello world from a ruby hook\n',
|
b'1.9.3\n551\nHello world from a ruby hook\n',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
1
tox.ini
1
tox.ini
|
|
@ -4,7 +4,6 @@ project = pre_commit
|
||||||
envlist = py26,py27,py33,py34,pypy
|
envlist = py26,py27,py33,py34,pypy
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
install_command = pip install --use-wheel {opts} {packages}
|
|
||||||
deps = -rrequirements-dev.txt
|
deps = -rrequirements-dev.txt
|
||||||
passenv = HOME HOMEPATH LANG TERM
|
passenv = HOME HOMEPATH LANG TERM
|
||||||
commands =
|
commands =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue