-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (40 loc) · 1.42 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
SHELL:=/bin/bash -eu
# define standard colors
BLACK := $(shell tput -Txterm setaf 0)
RED := $(shell tput -Txterm setaf 1)
GREEN := $(shell tput -Txterm setaf 2)
YELLOW := $(shell tput -Txterm setaf 3)
LIGHTPURPLE := $(shell tput -Txterm setaf 4)
PURPLE := $(shell tput -Txterm setaf 5)
BLUE := $(shell tput -Txterm setaf 6)
WHITE := $(shell tput -Txterm setaf 7)
RESET := $(shell tput -Txterm sgr0)
.PHONY: default install install-db test
default: help
##########################################################################
## This command manage helm release with the cluster Kubernetes
## Usage:
## make <command>
##
## Available Commands:
## - make help : Display help for this command (default)
help:
@cat $(MAKEFILE_LIST) | grep ^\#\# | grep -v ^\#\#\# |cut -c 4-
# pip install --upgrade setuptools
# Error: AttributeError: module 'pkg_resources' has no attribute 'iter_entry_points'
## - make install-db : Install docker postgres + inject sample table
install-pipenv:
@pip install pipenv
@/usr/bin/pipenv shell
@/usr/bin/pipenv check
@exit
## - make install-db : Install docker postgres + inject sample table
install-db:
@./db/db_setup.sh
## - make install : Create env with pip
install:
pipenv install --dev --skip-lock
## - make test : launch pytest on src directory
test:
# pipenv install --dev --user pytest pytest-mock boto3
PYTHONPATH=./src pytest