From ee84ee1f6c4761e29be651eb954dc95a5f34f0cb Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sat, 4 Jul 2015 17:02:18 +0200 Subject: [PATCH] Added a build script for gitlab CI --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000..d6ac30aa3d --- /dev/null +++ b/.gitlab-ci.yml @@ -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