-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 695 Bytes
/
Makefile
File metadata and controls
27 lines (22 loc) · 695 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
build:
GOOS=windows go build .
lint: build
GOOS=windows golangci-lint run
devcontainer:
docker build -f ./.devcontainer/Dockerfile ./.devcontainer -t wsl-clock
devcontainer-release:
ifdef DEVCONTAINER
$(error This target can only be run outside of the devcontainer as it mounts files and this fails within a devcontainer. Don't worry all it needs is docker)
endif
@docker run -v ${PWD}:${PWD} \
-e BUILD_NUMBER="${BUILD_NUMBER}" \
-e IS_CI="${IS_CI}" \
-e IS_PR="${IS_PR}" \
-e BRANCH="${BRANCH}" \
-e GITHUB_TOKEN="${GITHUB_TOKEN}" \
--entrypoint /bin/bash \
--workdir "${PWD}" \
wsl-clock \
-c "${PWD}/scripts/ci_release.sh"
test:
GOOS=windows go test -v ./...