This repository has been archived on 2021-12-24. You can view files and clone it, but cannot push or open issues/pull-requests.
jos/.woodpecker.yml

51 lines
1009 B
YAML
Raw Normal View History

2021-05-18 09:04:41 +02:00
pipeline:
2021-05-18 15:33:49 +02:00
# =====TESTING=====
test-backend:
2021-05-18 09:04:41 +02:00
# Alpine version doesn't have make
2021-05-18 12:17:28 +02:00
image: python:3.8
2021-05-18 09:04:41 +02:00
pull: true
2021-05-18 15:33:49 +02:00
group: test
2021-05-18 09:04:41 +02:00
commands:
- make test
when:
event: push
2021-05-18 09:04:41 +02:00
2021-05-18 15:33:49 +02:00
test-frontend:
# Alpine version doesn't have make
2021-05-18 15:56:58 +02:00
image: node:16
2021-05-18 15:33:49 +02:00
pull: true
group: test
commands:
- make fbuild
2021-05-18 15:33:49 +02:00
when:
event: push
# =====LINTING=====
lint-backend:
2021-05-18 12:17:28 +02:00
image: python:3.8
2021-05-18 15:33:49 +02:00
group: lint
2021-05-18 09:04:41 +02:00
commands:
- make lint
when:
event: push
2021-05-18 12:24:10 +02:00
2021-05-18 15:33:49 +02:00
lint-frontend:
2021-05-18 15:56:58 +02:00
image: node:16
2021-05-18 15:33:49 +02:00
group: lint
commands:
- make flint
2021-05-18 15:33:49 +02:00
when:
event: push
# =====PUBLISHING=====
2021-05-18 12:24:10 +02:00
publish-dev:
image: plugins/docker
repo: chewingbever/jos
tag: [ dev ]
secrets: [ docker_username, docker_password ]
when:
branch: develop
event: push