Add .gitlab-ci.yml: tests and style checking

Signed-off-by: Jerome Flesch <jflesch@openpaper.work>
2 jobs for <span class="ref-name">wip-ci</span> in 4 minutes and 16 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Test
passed #297239
volatile linux
check

00:01:42

failed #297240
volatile linux
test

00:03:49

 
Name Stage Failure
failed
test Test

Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj

ERROR: FAIL could not package project - v = InvocationError('/usr/bin/python3 /builds/World/OpenPaperwork/pyocr/setup.py sdist --formats=zip --dist-dir /builds/World/OpenPaperwork/pyocr/.tox/dist (see /builds/World/OpenPaperwork/pyocr/.tox/log/tox-0.log)', 1)
Makefile:23: recipe for target 'test' failed
make: *** [test] Error 2
ERROR: Job failed: exit code 1