KintoneAppBuilder created
This commit is contained in:
16
scripts/build.sh
Normal file
16
scripts/build.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Exit in case of error
|
||||
set -e
|
||||
|
||||
# Build and run containers
|
||||
docker-compose up -d
|
||||
|
||||
# Hack to wait for postgres container to be up before running alembic migrations
|
||||
sleep 5;
|
||||
|
||||
# Run migrations
|
||||
docker-compose run --rm backend alembic upgrade head
|
||||
|
||||
# Create initial data
|
||||
docker-compose run --rm backend python3 app/initial_data.py
|
||||
7
scripts/test.sh
Normal file
7
scripts/test.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
# Exit in case of error
|
||||
set -e
|
||||
|
||||
docker-compose run backend pytest
|
||||
docker-compose run frontend test
|
||||
6
scripts/test_backend.sh
Normal file
6
scripts/test_backend.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
# Exit in case of error
|
||||
set -e
|
||||
|
||||
docker-compose run backend pytest $@
|
||||
Reference in New Issue
Block a user