mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-01-30 18:36:29 +00:00
73 lines
1.9 KiB
YAML
73 lines
1.9 KiB
YAML
before_script:
|
|
- apt-get update && apt-get -y install make curl gnupg2
|
|
|
|
stages:
|
|
- lint
|
|
- test
|
|
- build
|
|
|
|
web-frontend-eslint:
|
|
stage: lint
|
|
image: node:10
|
|
script:
|
|
- mkdir web-frontend/plugins && cp -r premium/web-frontend web-frontend/plugins/premium
|
|
- cd web-frontend
|
|
- make install-dependencies
|
|
- make eslint
|
|
|
|
web-frontend-stylelint:
|
|
stage: lint
|
|
image: node:10
|
|
script:
|
|
- mkdir web-frontend/plugins && cp -r premium/web-frontend web-frontend/plugins/premium
|
|
- cd web-frontend
|
|
- make install-dependencies
|
|
- make stylelint
|
|
|
|
web-frontend-test:
|
|
stage: test
|
|
image: node:10
|
|
script:
|
|
- mkdir web-frontend/plugins && cp -r premium/web-frontend web-frontend/plugins/premium
|
|
- cd web-frontend
|
|
- make install-dependencies
|
|
- make test
|
|
|
|
backend-flake8:
|
|
stage: lint
|
|
image: python:3.7
|
|
script:
|
|
- mkdir backend/plugins && cp -r premium/backend backend/plugins/premium
|
|
- cd backend
|
|
- make install-dependencies
|
|
- make install-dev-dependencies
|
|
- make lint
|
|
|
|
backend-pytest:
|
|
stage: test
|
|
image: python:3.7
|
|
services:
|
|
- name: postgres:11.3
|
|
alias: db
|
|
- name: liminspace/mjml-tcpserver:0.10
|
|
alias: mjml
|
|
variables:
|
|
POSTGRES_USER: baserow
|
|
POSTGRES_PASSWORD: baserow
|
|
POSTGRES_DB: baserow
|
|
script:
|
|
- mkdir backend/plugins && cp -r premium/backend backend/plugins/premium
|
|
- cd backend
|
|
- make install-dependencies
|
|
- make install-dev-dependencies
|
|
- export PYTHONPATH=$CI_PROJECT_DIR/backend/src:$CI_PROJECT_DIR/backend/plugins/premium/src
|
|
- make test
|
|
|
|
backend-setup:
|
|
stage: build
|
|
image: python:3.7
|
|
script:
|
|
- pip install -e ./backend
|
|
- python -c 'import baserow'
|
|
- export DJANGO_SETTINGS_MODULE='baserow.config.settings.base'
|
|
- timeout --preserve-status 10s gunicorn --workers=1 -b 0.0.0.0:8000 -k uvicorn.workers.UvicornWorker baserow.config.asgi:application
|