forked from momor666/LBHTenancyAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 654 Bytes
/
Makefile
File metadata and controls
28 lines (21 loc) · 654 Bytes
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
TEST_UH_CONNECTION_STRING="Data Source=tcp:stubuniversalhousing;Initial Catalog=StubUH;Integrated Security=False;User ID=sa;Password=Rooty-Tooty"
.PHONY: docker-build
docker-build:
docker-compose build --build-arg VERSION_SUFFIX='local-build'
.PHONY: docker-down
docker-down:
docker-compose down
.PHONY: setup
setup: docker-build
.PHONY: serve
serve:
docker run -p 3000:80 -it --rm lbhtenancyapi
.PHONY: test
test:
docker-compose run -e UH_CONNECTION_STRING=$(TEST_UH_CONNECTION_STRING) --rm lbhtenancyapitest dotnet test
.PHONY: shell
shell:
docker-compose run --rm lbhtenancyapi /bin/bash
.PHONY: check
check: lint test
echo 'Deployable!'