diff --git a/.travis.yml b/.travis.yml index 36ace11..d69c96c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,7 @@ services: before_install: - docker network create gutenberg - docker run --detach --name fuseki --network gutenberg --tmpfs /fuseki --env ADMIN_PASSWORD=some-password stain/jena-fuseki:3.6.0 /jena-fuseki/fuseki-server --loc=/fuseki --update /ds + - codecov_env="$(bash <(curl -s https://codecov.io/env))" install: - if [ "$DOCKER_PYTHON_VERSION" = "2.7" ]; then docker build --build-arg PYTHON_VERSION="$DOCKER_PYTHON_VERSION" -t "gutenberg-$DOCKER_PYTHON_VERSION" -f Dockerfile-py2 .; fi @@ -21,12 +22,7 @@ install: script: - docker run -v $PWD:/app --tmpfs /data "gutenberg-$DOCKER_PYTHON_VERSION" flake8 gutenberg - - docker run -v $PWD:/app --tmpfs /data --network gutenberg --env UNIT_TEST_GUTENBERG_FUSEKI_URL=http://fuseki:3030/ds --env GUTENBERG_FUSEKI_USER=admin --env GUTENBERG_FUSEKI_PASSWORD=some-password "gutenberg-$DOCKER_PYTHON_VERSION" nose2 --verbose --with-coverage - -after_success: - # Overwrite variable for codecov - - export TRAVIS_PYTHON_VERSION=${DOCKER_PYTHON_VERSION} - - pip install codecov && codecov + - docker run -v $PWD:/app --tmpfs /data --network gutenberg --env UNIT_TEST_GUTENBERG_FUSEKI_URL=http://fuseki:3030/ds --env GUTENBERG_FUSEKI_USER=admin --env GUTENBERG_FUSEKI_PASSWORD=some-password $codecov_env "gutenberg-$DOCKER_PYTHON_VERSION" bash -c "nose2 --verbose --with-coverage && bash <(curl -s https://codecov.io/bash)" deploy: provider: pypi diff --git a/README.rst b/README.rst index 89e2635..c037bc6 100644 --- a/README.rst +++ b/README.rst @@ -14,6 +14,9 @@ Gutenberg .. image:: https://img.shields.io/pypi/v/gutenberg.svg :target: https://pypi.python.org/pypi/gutenberg/ +.. image:: https://img.shields.io/pypi/pyversions/gutenberg.svg + :target: https://pypi.python.org/pypi/gutenberg/ + Overview ======== diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 79f5228..f34c217 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,6 +1,14 @@ trigger: - master +schedules: +- cron: '0 4 * * *' + displayName: 'Daily build at midnight EDT' + branches: + include: + - master + always: true + pool: vmImage: '$(os.image)' @@ -50,7 +58,7 @@ steps: displayName: 'Upgrade pip and setuptools' - powershell: | - $mirror = "https://download.lfd.uci.edu/pythonlibs/q5gtlas7" + $mirror = "https://download.lfd.uci.edu/pythonlibs/r7aykn4w" $wheel = "bsddb3-6.2.6-cp3$(python.version.minor)-cp3$(python.version.minor)m-win_amd64.whl" Invoke-WebRequest -Uri "$mirror/$wheel" -OutFile "$(Agent.TempDirectory)\$wheel" pip install "$(Agent.TempDirectory)\$wheel" diff --git a/setup.py b/setup.py index feb57e7..7e2e521 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ setup( name='Gutenberg', - version='0.7.0', + version='0.8.0', author='Clemens Wolff', author_email='clemens.wolff+pypi@gmail.com', packages=find_packages(exclude=['tests']),