From cdc58c26cc002b9f39d03852ac57a52d76c384f5 Mon Sep 17 00:00:00 2001 From: Eric Neidhardt Date: Tue, 16 Jun 2020 14:42:36 +0000 Subject: [PATCH] Enable gitpod --- .gitignore | 1 + .gitpod.yml | 3 +++ README.md | 2 ++ makefile | 5 +++++ 4 files changed, 11 insertions(+) create mode 100644 .gitpod.yml diff --git a/.gitignore b/.gitignore index c6a0852..e6293ba 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ cmd/sleep/sleep.exe +cmd/sleep/sleep \ No newline at end of file diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..443b711 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,3 @@ +tasks: + - init: go get && go build ./... && go test ./... && make + command: go run diff --git a/README.md b/README.md index b42cc10..664baf3 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/EricNeid/go-sleep) + # About Just sleep for windows. diff --git a/makefile b/makefile index 590533a..115740e 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,10 @@ +all: test build build-windows + build: cd cmd/sleep && go build +build-windows: + cd cmd/sleep && GOOS=windows GOARCH=amd64 go build + test: go test ./... \ No newline at end of file