Commit 4d2247e6 authored by Konstantin Schulz's avatar Konstantin Schulz

enable CI for frontend

parent 150d280e
Pipeline #11418 passed with stages
in 2 minutes and 39 seconds
# Specifies intentionally untracked files to ignore when using Git
# http://git-scm.com/docs/gitignore
.idea/
builds
*.log
stages:
- build
- ci_frontend
- coverage_frontend
build:
stage: build
script:
- docker-compose build
ci_frontend:
stage: ci_frontend
script:
- ./ci.sh
artifacts:
paths:
- ci_frontend.log
coverage_frontend:
stage: coverage_frontend
script:
- ./coverage.sh
- cat coverage_frontend.log
artifacts:
paths:
- coverage_frontend.log
coverage: '/.*/'
[![pipeline status](https://scm.cms.hu-berlin.de/callidus/machina-callida/badges/master/pipeline.svg)](https://scm.cms.hu-berlin.de/callidus/machina-callida/-/commits/master)
[![coverage report](https://scm.cms.hu-berlin.de/callidus/machina-callida/badges/master/coverage.svg)](https://scm.cms.hu-berlin.de/callidus/machina-callida/-/commits/master)
# Machina Callida
docker-compose run --rm --entrypoint="npm run test-ci" mc_frontend > ci_frontend.log
sed -En 's@Statements.*: @@p' ./ci_frontend.log | sed -n 's@%.*@@p' > coverage_frontend.log
version: '3.7'
services:
mc_frontend:
build:
context: ./mc_frontend
dockerfile: Dockerfile
entrypoint: ng build --prod app
environment:
- CHROME_BIN=google-chrome
stdin_open: true
tty: true
volumes:
- $PWD/mc_frontend/www:/home/mc/mc_frontend/www
nginx:
command: nginx -g "daemon off;"
image: nginx:alpine
ports:
- "8100:80"
restart: always
volumes:
- $PWD/mc_frontend/www:/usr/share/nginx/html
- ./mc_frontend/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- mc_frontend
csm:
build:
context: ./mc_backend
dockerfile: Dockerfile
command: /home/mc/venv/bin/gunicorn -c csm/gunicorn_config.py run_csm:app
depends_on:
- db
environment:
- FLASK_APP=run_csm.py
- IS_THIS_A_DOCKER_CONTAINER=Yes
- PYTHONPATH=/home/mc
ports:
- "8122:22"
- "6555:6555"
restart: always
stdin_open: true
db:
image: postgres
ports:
- "5432:5432"
restart: always
volumes:
- db-data:/var/lib/postgresql/data
mcserver:
build:
context: ./mc_backend
dockerfile: Dockerfile
command: /home/mc/venv/bin/gunicorn -c mcserver/gunicorn_config.py app:app
depends_on:
- db
environment:
- FLASK_APP=app.py
- IS_THIS_A_DOCKER_CONTAINER=Yes
- PYTHONPATH=/home/mc
ports:
- "8022:22"
- "5000:5000"
restart: always
stdin_open: true
volumes:
db-data:
{
"name": "mc_frontend",
"version": "1.8.0",
"version": "1.8.4",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment