diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4c1494337d0f1e149260dbe3f3832bd7600a2db0..5cb605d57647a7083c60cb64af9db563b906601c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,18 +29,15 @@ cache: migrations: extends: .before_script_template script: - - source venv/bin/activate - ./manage.py makemigrations --dry-run --check test: extends: .before_script_template script: - - source venv/bin/activate - echo "GRANT ALL on *.* to '${MYSQL_USER}';"| mysql -u root --password="${MYSQL_ROOT_PASSWORD}" -h mysql - pip install pytest-cov unittest-xml-reporting - coverage run --source='.' manage.py test --settings AKPlanning.settings_ci after_script: - - source venv/bin/activate - coverage report - coverage xml coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/' @@ -55,7 +52,6 @@ lint: extends: .before_script_template stage: test script: - - source venv/bin/activate - pylint --load-plugins pylint_django --django-settings-module=AKPlanning.settings_ci --rcfile pylintrc --exit-zero --output-format=text AK* | tee /tmp/pylint.txt - sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' /tmp/pylint.txt > public/badges/$CI_JOB_NAME.score - pylint --load-plugins pylint_django --django-settings-module=AKPlanning.settings_ci --rcfile pylintrc --exit-zero --output-format=pylint_gitlab.GitlabCodeClimateReporter AK* > codeclimate.json