From 437428cbe3e54dd4fc42875fa1fe0f4673a900b2 Mon Sep 17 00:00:00 2001
From: Tamas Kiss <tamas.kiss@prezi.com>
Date: Mon, 1 Jun 2020 19:35:50 +0200
Subject: [PATCH] Fixing gitlab runner

---
 .gitlab-ci.yml | 19 ++++---------------
 1 file changed, 4 insertions(+), 15 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0d883d6..5861b03 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,27 +1,15 @@
-image: registry.kszk.bme.hu/baseimg/python-tools
+image: python:2.7
 
 stages:
-  - Init
   - Testing
   - Release
 
-pip:
-  stage: Init
-  script:
-    - python --version
-    - pip install -e .
-
 flake8:
   stage: Testing
   script:
+    - pip install flake8
     - flake8 src
 
-pytest:
-  stage: Testing
-  script:
-    - pip install .[tests]
-    - py.test tests
-
 release:
   only:
     - master
@@ -29,4 +17,5 @@ release:
   stage: Release
   script:
     - python setup.py sdist bdist_wheel
-    - python setup.py upload --repository https://nexus.kszk.bme.hu/repository/pypi/
\ No newline at end of file
+    - pip install twine
+    - twine upload --repository-url https://nexus.kszk.bme.hu/repository/pypi/ --username "${NEXUS_USERNAME}" --password "${NEXUS_PASSWORD}" dist/*
-- 
GitLab