mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Added a build script for gitlab CI
This commit is contained in:
25
.gitlab-ci.yml
Normal file
25
.gitlab-ci.yml
Normal 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
|
||||
Reference in New Issue
Block a user