wagtail-birdsong/.gitlab-ci.yml

49 lines
1019 B
YAML
Raw Normal View History

2020-06-03 06:29:53 +00:00
stages:
- test
2020-06-15 05:30:08 +00:00
- lint
2020-06-15 23:34:20 +00:00
- release
2020-06-03 06:29:53 +00:00
python:
2020-06-03 06:29:53 +00:00
stage: test
image: python:3.8
2020-06-03 06:29:53 +00:00
services:
- name: liminspace/mjml-tcpserver:latest
alias: mjml
2020-06-12 06:15:25 +00:00
- postgres:9.6
variables:
POSTGRES_USER: postgres
2020-06-15 01:41:13 +00:00
POSTGRES_DB: birdsong
2020-06-12 06:15:25 +00:00
POSTGRES_PASSWORD: ""
POSTGRES_HOST_AUTH_METHOD: trust
2020-06-03 06:33:52 +00:00
before_script:
2020-06-14 23:04:53 +00:00
- pip3 install psycopg2-binary~=2.8.0 -e .
2020-06-03 06:29:53 +00:00
script:
2020-06-15 05:30:08 +00:00
- python3 runtests.py --no-input
flake8:
stage: lint
image: python:3.8
before_script:
- pip install flake8
script:
- flake8 birdsong/ tests/
isort:
stage: lint
image: python:3.8
before_script:
2020-06-15 05:57:12 +00:00
- pip install isort -e .
2020-06-15 05:30:08 +00:00
script:
- isort --recursive --diff --check-only birdsong/ tests/
2020-06-15 23:34:20 +00:00
build:
image: python:3.8
stage: release
before_script:
- pip install --upgrade setuptools wheel twine
script:
- ./setup.py sdist bdist_wheel
- twine upload dist/*
only:
- tags