Add a small testsuite

This commit is contained in:
jvoisin 2018-12-16 20:39:08 +01:00
parent 19dfe05707
commit d44c8d676d
2 changed files with 28 additions and 1 deletions

28
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,28 @@
image: debian:testing
stages:
- linting
- test
pyflakes:
stage: linting
script:
- apt-get -qqy update
- apt-get -qqy install --no-install-recommends pyflakes3
- pyflakes3 ./main.py
mypy:
stage: linting
script:
- apt-get -qqy update
- apt-get -qqy install --no-install-recommends python3-pip
- pip3 install mypy
- mypy --ignore-missing-imports main.py
tests:debian:
stage: test
script:
- apt-get -qqy update
- apt-get -qqy install --no-install-recommends mat2 python3-flask python3-coverage
- python3-coverage run --branch -m unittest discover
- python3-coverage report -m

View File

@ -1,6 +1,5 @@
import os
import libmat2
from libmat2 import parser_factory
from flask import Flask, flash, request, redirect, url_for, render_template