init
This commit is contained in:
13
{{cookiecutter.project_slug}}/scripts/build.sh
Normal file
13
{{cookiecutter.project_slug}}/scripts/build.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/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;
|
||||
|
||||
# build
|
||||
docker-compose build
|
||||
6
{{cookiecutter.project_slug}}/scripts/test.sh
Normal file
6
{{cookiecutter.project_slug}}/scripts/test.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
# Exit in case of error
|
||||
set -e
|
||||
|
||||
docker-compose run {{ cookiecutter.project_slug }} pytest
|
||||
Reference in New Issue
Block a user