Attempt to build with Jenkins
This commit is contained in:
parent
16f7f9464c
commit
88d899cbbf
19
Jenkinsfile
vendored
Normal file
19
Jenkinsfile
vendored
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
4
Makefile
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user