Commit 3b1c3c6f authored by Katia Saurfelt's avatar Katia Saurfelt
Browse files

chore([gitlab-ci]): add a basic version

--HG--
branch : 0.1
parent 66e21ccf9961
image: python:latest
stages:
- lint
- test
- qa
before_script:
- pip install tox
check-manifest:
stage: lint
script: tox -e check-manifest
flake8:
stage: lint
script: tox -e flake8
py3:
stage: test
script: tox -e py3
artifacts:
paths:
- py3-deprecated-warnings.json
sonarqube:
stage: qa
image: newtmitch/sonar-scanner
only:
- branch/default
script:
- apt install -y python-setuptools
- sonar-scanner
--define sonar.scm.revision=${CI_COMMIT_REF_NAME##*/}
--define sonar.projectBaseDir=.
--define sonar.projectVersion=`python setup.py --version`
--define sonar.scm.provider=hg
--define sonar.host.url=${SONAR_URL}
......@@ -3,7 +3,6 @@ include */*.py
recursive-include cubicweb_jsonschema *.py
recursive-include cubicweb_jsonschema/data *.gif *.png *.ico *.css *.js
recursive-include cubicweb_jsonschema/i18n *.po
recursive-include cubicweb_jsonschema/wdoc *
recursive-include test/data bootstrap_cubes *.py
include test/data/hyper-schema-draft-06.json
include test/data/schema-draft-06.json
......@@ -15,3 +14,4 @@ include .coveragerc
include test-requirements.txt
prune debian
prune cubicweb-jsonschema.spec
exclude .gitlab-ci.yml
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment