mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-02-06 05:40:09 +00:00
66 lines
1.2 KiB
YAML
66 lines
1.2 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:
|
|
- cd web-frontend
|
|
- make install-dependencies
|
|
- make eslint
|
|
|
|
web-frontend-stylelint:
|
|
stage: lint
|
|
image: node:10
|
|
script:
|
|
- cd web-frontend
|
|
- make install-dependencies
|
|
- make stylelint
|
|
|
|
web-frontend-test:
|
|
stage: test
|
|
image: node:10
|
|
script:
|
|
- cd web-frontend
|
|
- make install-dependencies
|
|
- make test
|
|
|
|
backend-flake8:
|
|
stage: lint
|
|
image: python:3.6
|
|
script:
|
|
- cd backend
|
|
- make install-dependencies
|
|
- make install-dev-dependencies
|
|
- make lint
|
|
|
|
backend-pytest:
|
|
stage: test
|
|
image: python:3.6
|
|
services:
|
|
- name: postgres:11.3
|
|
alias: db
|
|
- name: liminspace/mjml-tcpserver:latest
|
|
alias: mjml
|
|
variables:
|
|
POSTGRES_USER: baserow
|
|
POSTGRES_PASSWORD: baserow
|
|
POSTGRES_DB: baserow
|
|
script:
|
|
- cd backend
|
|
- make install-dependencies
|
|
- make install-dev-dependencies
|
|
- export PYTHONPATH=$CI_PROJECT_DIR/backend/src
|
|
- make test
|
|
|
|
backend-setup:
|
|
stage: build
|
|
image: python:3.6
|
|
script:
|
|
- pip install -e ./backend
|
|
- python -c 'import baserow'
|