From 68025644ffd78292ac42d10c41585f513b884984 Mon Sep 17 00:00:00 2001 From: Romuald Bierbasz Date: Mon, 11 Feb 2019 12:02:02 +0100 Subject: [PATCH] SDK-2520: Configure CI --- .gitlab-ci.yml | 12 ++++++++++++ galaxy/api/__init__.py | 1 - pytest.ini | 2 ++ requirements.txt | 1 + 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci.yml create mode 100644 pytest.ini diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..a814279 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,12 @@ +image: registry-gitlab.gog.com/galaxy-client/gitlab-ci-tools:latest + +stages: + - test + +test_package: + stage: test + script: + - pip install -r requirements.txt + - pytest + except: + - tags \ No newline at end of file diff --git a/galaxy/api/__init__.py b/galaxy/api/__init__.py index e876727..e69de29 100644 --- a/galaxy/api/__init__.py +++ b/galaxy/api/__init__.py @@ -1 +0,0 @@ -from galaxy.api.plugin import Plugin diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..3d6dc59 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,2 @@ +[pytest] +addopts = --flakes \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 8fac6cf..9dee50a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ pytest==4.2.0 +pytest-flakes==4.0.0