53 lines
1.0 KiB
YAML
53 lines
1.0 KiB
YAML
pipeline:
|
|
# =====TESTING=====
|
|
test-backend:
|
|
# Alpine version doesn't have make
|
|
image: python:3.8
|
|
pull: true
|
|
group: test
|
|
commands:
|
|
- make test
|
|
when:
|
|
event: push
|
|
|
|
test-frontend:
|
|
# Alpine version doesn't have make
|
|
image: node:16-alpine
|
|
pull: true
|
|
group: test
|
|
commands:
|
|
- cd web
|
|
- yarn build
|
|
when:
|
|
event: push
|
|
|
|
|
|
# =====LINTING=====
|
|
lint-backend:
|
|
image: python:3.8
|
|
group: lint
|
|
commands:
|
|
- make lint
|
|
when:
|
|
event: push
|
|
|
|
lint-frontend:
|
|
image: node:16-alpine
|
|
group: lint
|
|
commands:
|
|
- cd web
|
|
- yarn run lint
|
|
when:
|
|
event: push
|
|
|
|
|
|
# =====PUBLISHING=====
|
|
publish-dev:
|
|
image: plugins/docker
|
|
repo: chewingbever/jos
|
|
tag: [ dev ]
|
|
secrets: [ docker_username, docker_password ]
|
|
when:
|
|
branch: develop
|
|
event: push
|