1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-02-06 13:50:10 +00:00
bramw_baserow/.gitlab-ci.yml
2020-05-18 15:50:48 +00:00

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'