From 3aa55ee7f293b99231077552f417cbd56654d631 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Wed, 17 May 2017 13:29:29 +0300 Subject: [PATCH] Add stages to GitLab CI --- .gitlab-ci.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e86e8d2..4c20cd3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,21 @@ image: python:3.5 -all_tests: +stages: + - build + - lint + - test + +build: + stage: build script: - sh ./scripts/autoinstall.sh + +lint: + stage: lint + script: + - pep8 --count && eslint . + +test: + stage: test + script: - docker-compose run web python manage.py test - after_script: - - docker-compose exec -T web find . -type f -name '*.pyc' -delete - when: on_success