-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
35 lines (31 loc) · 853 Bytes
/
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
test-windows:
@echo "# Testing windows installation..."
@echo "## Deleting old binary..."
@rm -f "$env:USERPROFILE\instl\instl-demo"
@echo "## Running instl..."
@go run . -test -verbose > ./run.ps1
@powershell -executionpolicy bypass -File ./run.ps1
@echo
@echo
@echo "## Testing binary..."
@echo
@start "$env:USERPROFILE\instl\instl-demo\instl-demo.exe"
test:
@echo "# Testing linux installation..."
@echo "## Deleting old binary..."
@rm -f "$HOME/.local/bin/instl-demo"
@rm -rf "$HOME/.local/bin/.instl/instl-demo/instl-demo"
@echo "## Running instl..."
@go run . -test -verbose > ./run.sh
@cat ./run.sh | bash
@echo
@echo
@echo "## Testing binary..."
@echo
@instl-demo
build:
docker build -t marvinjwendt/instl .
run: build
docker run -it --rm -p "80:80" marvinjwendt/instl
publish: build
docker push marvinjwendt/instl