diff --git a/.travis.yml b/.travis.yml index 8ac45500c9c31a4c75479dcba0fe62ac70c0c24b..15d6c5b24649fa358d99f0cba46c762b862e494a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,9 @@ language: python stages: - name: test + - name: deploy + if: tag is present + cache: pip before_script: - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter @@ -32,6 +35,26 @@ jobs: after_script: - coverage xml - ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT + - stage: deploy + python: "3.8" + before_script: + - pip install wheel twine doctor-wheel auditwheel snakehouse satella + script: + - python setup.py bdist_wheel sdist + - cd dist + - doctor-wheel *.whl + - auditwheel repair --plat manylinux2014_x86_64 *.whl + - twine upload -u $PYPI_USER -p $PYPI_PWD wheelhouse/*.whl *.gz + - stage: deploy + python: "3.9" + before_script: + - pip install wheel twine doctor-wheel auditwheel snakehouse satella + script: + - python setup.py bdist_wheel + - cd dist + - doctor-wheel *.whl + - auditwheel repair --plat manylinux2014_x86_64 *.whl + - twine upload -u $PYPI_USER -p $PYPI_PWD wheelhouse/*.whl diff --git a/setup.cfg b/setup.cfg index 3e4676bd3690e8ff241f3ef2d383e709d66b4443..addabcd61ac8afae2ff215c968fa22447f103a74 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,7 +1,7 @@ # coding: utf-8 [metadata] name = tempsdb -version = 0.6.2a4 +version = 0.6.2 long-description = file: README.md long-description-content-type = text/markdown; charset=UTF-8 license_files = LICENSE diff --git a/tests/test_database.py b/tests/test_database.py index 4fd9574c4b9b67d3b9efd28e4e6be7ffa3e0ecf4..8538b2dfd136abbeac1092b94ada3f55ece99806 100644 --- a/tests/test_database.py +++ b/tests/test_database.py @@ -9,6 +9,9 @@ class TestDatabase(unittest.TestCase): def setUpClass(cls) -> None: cls.db = create_database('my_db') + def test_checkpoint(self): + self.db.checkpoint() + def test_metadata(self): meta = self.db.metadata self.assertFalse(self.db.metadata)