From ce734175af391966f33007bed7ed93d4cec8118f Mon Sep 17 00:00:00 2001 From: inso <insomniak.fr@gmaiL.com> Date: Mon, 26 Feb 2018 13:10:17 +0100 Subject: [PATCH] Test coverage in gitlab --- .gitlab-ci.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d1fdf8df..a277fbbf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,25 +40,16 @@ push_to_github: - export DISPLAY=:99 -build: &build +build_and_test: &build_and_test <<: *env - stage: build + stage: build_and_test script: - pip install wheel + - pip install pytest-cov - pip install -r requirements.txt - python gen_resources.py - python gen_translations.py --lrelease - python setup.py bdist_wheel - - py.test - -test: - <<: *env - stage: test - script: - - pip install coveralls - - pip install -r requirements.txt - - python gen_resources.py - - python gen_translations.py --lrelease - py.test --cov=sakia tests/ releases: -- GitLab