aboutsummaryrefslogtreecommitdiffstats
path: root/gitlab-ci.yml
blob: 0b7ffbc56adfbbb7e2cef768a61d809c7d57688e (plain) (blame)
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
29
30
31
32
33
34
35
36
37
38
39
40
image: python:3.6-alpine3.7

variables:
  PIPENV_VENV_IN_PROJECT: 1
  PIPENV_IGNORE_VIRTUALENVS: 1


before_script:
  - apk add --update tini
  - apk add --update build-base
  - apk add --update libffi-dev
  - apk add --update zlib
  - apk add --update jpeg-dev
  - apk add --update libxml2 libxml2-dev libxslt-dev
  - apk add --update zlib-dev
  - apk add --update freetype-dev

stages:
  - test
  - build

test:
  stage: test
  cache:
    paths:
      - ".venv"

  script:
    - pip install pipenv
    - pipenv sync --dev --three
    - pipenv run python -m flake8

build:
  services:
    - docker:dind

  stage: build
  script:
    - apk add docker curl
    - sh scripts/deploy.sh