From 4601ead8f84cf7195836d36c95d9b54477827686 Mon Sep 17 00:00:00 2001 From: jpic Date: Tue, 21 Apr 2020 21:50:45 +0200 Subject: [PATCH] Enable gitlab-ci --- .gitlab-ci.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b8fb8b4..9ddc781 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,13 +3,16 @@ build: key: cache paths: [.cache] image: yourlabs/shlax - script: pip install -U --user -e . && CACHE_DIR=$(pwd)/.cache ./shlaxfile.py -d - shlax build push + script: pip install -U --user -e . && CACHE_DIR=$(pwd)/.cache ./shlaxfile.py build stage: build + +test: + image: yourlabs/python + stage: build + script: pip install -U --user -e . && py.test -sv tests + pypi: image: yourlabs/python only: [tags] script: pypi-release stage: deploy -test: {image: yourlabs/python, script: 'pip install -U --user -e .[test] && py.test - -svv tests', stage: build}