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