2020-02-14 01:06:37 +01:00
|
|
|
kind: pipeline
|
2020-02-15 00:42:17 +01:00
|
|
|
name: lint and build
|
2020-02-14 01:06:37 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: pylint
|
|
|
|
image: python:slim
|
|
|
|
commands:
|
|
|
|
- "echo \"==> Pylint ...\""
|
|
|
|
- pip install -r requirements.txt
|
|
|
|
- pip install pylint
|
|
|
|
- pylint *.py
|
|
|
|
|
2020-02-15 00:42:17 +01:00
|
|
|
- name: docker lint
|
2020-02-14 01:06:37 +01:00
|
|
|
image: hadolint/hadolint
|
|
|
|
commands:
|
|
|
|
- hadolint --ignore DL3013 Dockerfile # ignore pinning version in pip
|
|
|
|
|
|
|
|
- name: w3c validator
|
|
|
|
image: validator/validator:latest
|
|
|
|
commands:
|
2020-02-15 00:42:17 +01:00
|
|
|
- vnu static/*.html
|
|
|
|
|
|
|
|
- name: build image
|
|
|
|
image: docker:stable
|
|
|
|
environment:
|
2020-02-15 12:01:50 +01:00
|
|
|
DOCKER_HOST: tcp://docker:2376
|
2020-02-15 00:42:17 +01:00
|
|
|
commands:
|
|
|
|
- docker build -t kleph/beer .
|
|
|
|
|
|
|
|
services:
|
|
|
|
- name: docker
|
|
|
|
image: docker:dind
|
|
|
|
command: [ "--storage-driver=vfs", "--tls=false" ]
|
2020-02-15 11:59:32 +01:00
|
|
|
privileged: true
|