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
|
2021-05-18 12:36:07 +02:00
|
|
|
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
|
2021-05-18 12:36:07 +02:00
|
|
|
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:
|
2021-05-18 15:55:36 +02:00
|
|
|
- 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
|