forked from pretix/pretix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
28 lines (28 loc) · 907 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 login -u ciuser -p $DOCKERPW -e [email protected] docker.rami.io
- docker build -t pretix/standalone .
- docker tag -f pretix/standalone docker.rami.io/pretix/standalone:$CI_BUILD_REF_NAME
- docker push docker.rami.io/pretix/standalone:$CI_BUILD_REF_NAME
tags:
- docker