From 268541313e5d9538346b40e0a227aba61f0156ac Mon Sep 17 00:00:00 2001 From: Marvin Pohl Date: Mon, 11 Mar 2019 01:36:11 +0100 Subject: [PATCH] Setup travis ci --- .travis.yml | 21 +++++++++++++++++++++ requirements.txt | 1 - setup.py | 12 +++++++----- testrequirements.txt | 1 + 4 files changed, 29 insertions(+), 6 deletions(-) create mode 100644 .travis.yml create mode 100644 testrequirements.txt diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ea83368 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,21 @@ +language: python +python: + - "3.6" +addons: + apt_packages: + - enchant + - aspell + - aspell-en + - ispell + - iamerican +env: + - BOTO_CONFIG=/dev/null +install: + - pip install -U pip wheel setuptools + - "pip install --no-binary :all: -r testrequirements.txt" + - pip install -r requirements.txt + - pip install -e . +cache: + directories: + - $HOME/.cache/pip +script: "trial buildbot_gitea.test" diff --git a/requirements.txt b/requirements.txt index afc8681..d984d74 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1 @@ setuptools -buildbot[test] diff --git a/setup.py b/setup.py index 85b0de7..f9b45e6 100644 --- a/setup.py +++ b/setup.py @@ -2,15 +2,17 @@ from distutils.core import setup +VERSION = "0.1.0" + setup(name='buildbot-gitea', - version='0.1.0', + version=VERSION, description='buildbot plugin for integration with Gitea.', author='Marvin Pohl', - author_email='marvin@lab132.com', - url='https://lab132.com', + author_email='hello@lab132.com', + url='https://github.com/lab132/buildbot-gitea', packages=['buildbot_gitea'], - install_requires=[ - "buildbot>=2.0.0" + requires=[ + "buildbot (>=2.0.0)" ], entry_points={ "buildbot.webhooks": [ diff --git a/testrequirements.txt b/testrequirements.txt new file mode 100644 index 0000000..6f64d16 --- /dev/null +++ b/testrequirements.txt @@ -0,0 +1 @@ +buildbot[test]