mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-13 20:40:08 -06:00
Merge pull request #275 from pre-commit/speed_up_tests_on_14_04
Some speedups for tests
This commit is contained in:
14
.travis.yml
14
.travis.yml
@@ -5,14 +5,18 @@ env: # These should match the tox env list
|
||||
- TOXENV=py33
|
||||
- TOXENV=py34
|
||||
- TOXENV=pypy
|
||||
install: pip install coveralls tox --use-mirrors
|
||||
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 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
|
||||
after_success:
|
||||
- coveralls
|
||||
sudo: false
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.cache/pip
|
||||
- $HOME/.pre-commit
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
name: Ruby Hook
|
||||
entry: ruby_hook
|
||||
language: ruby
|
||||
language_version: 1.9.3-p484
|
||||
language_version: 1.9.3-p551
|
||||
files: \.rb$
|
||||
|
||||
@@ -146,7 +146,7 @@ def test_run_versioned_ruby_hook(tempdir_factory, store):
|
||||
tempdir_factory, store, 'ruby_1_9_3_hooks_repo',
|
||||
'ruby_hook',
|
||||
['/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',
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user