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
1015 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 23:46:46 +02:00
image: python:3.9
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:
2021-05-18 18:29:20 +02:00
- make fbuild ftest
2021-05-18 15:33:49 +02:00
when:
event: push
# =====LINTING=====
lint-backend:
2021-05-18 23:46:46 +02:00
image: python:3.9
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