Attempt to build with Jenkins

This commit is contained in:
Timothy Warren 2021-03-30 19:42:49 -04:00
parent 16f7f9464c
commit 88d899cbbf
2 changed files with 21 additions and 2 deletions

19
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,19 @@
pipeline {
agent {
docker {
image 'golang:latest'
}
}
stages {
stage('Build') {
steps {
sh "go build"
}
}
stage('Test') {
steps {
sh "go test ./... -v"
}
}
}
}

View File

@ -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