1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-02-06 05:40:09 +00:00
bramw_baserow/.gitlab-ci.yml
2020-04-10 15:10:32 +02:00

64 lines
1.1 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
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'