From 88d899cbbf0486c5ef028351b2acb2b803dfc390 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Tue, 30 Mar 2021 19:42:49 -0400 Subject: [PATCH] Attempt to build with Jenkins --- Jenkinsfile | 19 +++++++++++++++++++ Makefile | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..c71706c --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,19 @@ +pipeline { + agent { + docker { + image 'golang:latest' + } + } + stages { + stage('Build') { + steps { + sh "go build" + } + } + stage('Test') { + steps { + sh "go test ./... -v" + } + } + } + } \ No newline at end of file diff --git a/Makefile b/Makefile index e36dae1..5d3c55a 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ test: - go test timshome.page/gilo/editor timshome.page/gilo/terminal + go test ./... coverage.out: - go test timshome.page/gilo/editor timshome.page/gilo/terminal -coverprofile=coverage.out + go test ./... -coverprofile=coverage.out coverage: coverage.out go tool cover -html=coverage.out