Skip to content

Commit

Permalink
Remove redundant Travis CI config/code
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Nov 16, 2022
1 parent 5f149c1 commit a6f0856
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 44 deletions.
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

15 changes: 0 additions & 15 deletions gitdb/test/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,6 @@ def setUpClass(cls):

#{ Decorators

def skip_on_travis_ci(func):
"""All tests decorated with this one will raise SkipTest when run on travis ci.
Use it to workaround difficult to solve issues
NOTE: copied from bcore (https://github.com/Byron/bcore)"""
@wraps(func)
def wrapper(self, *args, **kwargs):
if 'TRAVIS' in os.environ:
import pytest
pytest.skip("Cannot run on travis-ci")
# end check for travis ci
return func(self, *args, **kwargs)
# end wrapper
return wrapper


def with_rw_directory(func):
"""Create a temporary directory which can be written to, remove it if the
test succeeds, but leave it otherwise to aid additional debugging"""
Expand Down
4 changes: 0 additions & 4 deletions gitdb/test/performance/test_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from gitdb.typ import str_blob_type
from gitdb.exc import UnsupportedOperation
from gitdb.db.pack import PackedDB
from gitdb.test.lib import skip_on_travis_ci

import sys
import os
Expand All @@ -26,7 +25,6 @@

class TestPackedDBPerformance(TestBigRepoR):

@skip_on_travis_ci
def test_pack_random_access(self):
pdb = PackedDB(os.path.join(self.gitrepopath, "objects/pack"))

Expand Down Expand Up @@ -79,7 +77,6 @@ def test_pack_random_access(self):
print("PDB: Obtained %i streams by sha and read all bytes totallying %i KiB ( %f KiB / s ) in %f s ( %f streams/s )" %
(max_items, total_kib, total_kib / (elapsed or 1), elapsed, max_items / (elapsed or 1)), file=sys.stderr)

@skip_on_travis_ci
def test_loose_correctness(self):
"""based on the pack(s) of our packed object DB, we will just copy and verify all objects in the back
into the loose object db (memory).
Expand All @@ -106,7 +103,6 @@ def test_loose_correctness(self):
mdb._cache.clear()
# end for each sha to copy

@skip_on_travis_ci
def test_correctness(self):
pdb = PackedDB(os.path.join(self.gitrepopath, "objects/pack"))
# disabled for now as it used to work perfectly, checking big repositories takes a long time
Expand Down
3 changes: 0 additions & 3 deletions gitdb/test/performance/test_pack_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from gitdb.db.pack import PackedDB
from gitdb.stream import NullStream
from gitdb.pack import PackEntity
from gitdb.test.lib import skip_on_travis_ci

import os
import sys
Expand All @@ -34,7 +33,6 @@ def write(self, d):

class TestPackStreamingPerformance(TestBigRepoR):

@skip_on_travis_ci
def test_pack_writing(self):
# see how fast we can write a pack from object streams.
# This will not be fast, as we take time for decompressing the streams as well
Expand All @@ -61,7 +59,6 @@ def test_pack_writing(self):
print(sys.stderr, "PDB Streaming: Wrote pack of size %i kb in %f s (%f kb/s)" %
(total_kb, elapsed, total_kb / (elapsed or 1)), sys.stderr)

@skip_on_travis_ci
def test_stream_reading(self):
# raise SkipTest()
pdb = PackedDB(os.path.join(self.gitrepopath, "objects/pack"))
Expand Down
2 changes: 0 additions & 2 deletions gitdb/test/performance/test_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from gitdb.test.lib import (
make_memory_file,
with_rw_directory,
skip_on_travis_ci
)


Expand All @@ -44,7 +43,6 @@ class TestObjDBPerformance(TestBigRepoR):
large_data_size_bytes = 1000 * 1000 * 50 # some MiB should do it
moderate_data_size_bytes = 1000 * 1000 * 1 # just 1 MiB

@skip_on_travis_ci
@with_rw_directory
def test_large_data_streaming(self, path):
ldb = LooseObjectDB(path)
Expand Down

0 comments on commit a6f0856

Please sign in to comment.