Added a build script for gitlab CI

This commit is contained in:
Raphael Michel
2015-07-04 17:02:18 +02:00
parent 205c946f82
commit ee84ee1f6c

25
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,25 @@
before_script:
tests:
script:
- git submodule init
- git submodule update
- pyvenv-3.4 --without-pip env
- source env/bin/activate
- curl https://bootstrap.pypa.io/get-pip.py | python
- cd src
- pip3 install -q -r requirements.txt
- flake8 --ignore=E123,F403,F401,N802,C901,W503 .
- python3 manage.py check
- make
- make compress
- coverage run -m py.test tests
tags:
- python3
- selenium
build:
type: deploy
script:
- cd deployment/docker/standalone/
- docker build -t pretix/standalone .
tags:
- docker