forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial build and output testing... lots of trial and error * clean up for working (but failing) unit test geth with ubuntu foundation image
- Loading branch information
1 parent
c9beb11
commit 70d6dbb
Showing
3 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
pipeline { | ||
agent any | ||
|
||
stages { | ||
stage('Build') { | ||
steps { | ||
script{ | ||
docker.withRegistry('https://git.vdb.to'){ | ||
echo 'Building geth image...' | ||
//def geth_image = docker.build("cerc-io/go-ethereum:jenkinscicd") | ||
echo 'built geth image' | ||
} | ||
} | ||
} | ||
} | ||
stage('Test') { | ||
agent { | ||
docker { | ||
image 'cerc-io/foundation:jenkinscicd' | ||
//image 'cerc-io/foundation_alpine:jenkinscicd' | ||
} | ||
} | ||
|
||
environment { | ||
GO111MODULE = "on" | ||
CGO_ENABLED = 1 | ||
//GOPATH = "${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_ID}" | ||
//GOPATH = "/go" | ||
GOPATH = "/tmp/go" | ||
//GOMODCACHE = "/go/pkg/mod" | ||
GOCACHE = "${WORKSPACE}/.cache/go-build" | ||
GOENV = "${WORKSPACE}/.config/go/env" | ||
GOMODCACHE = "/tmp/go/pkg/mod" | ||
GOWORK="" | ||
//GOFLAGS="" | ||
|
||
} | ||
steps { | ||
echo 'Testing ...' | ||
//sh '/usr/local/go/bin/go test -p 1 -v ./...' | ||
sh 'make test' | ||
} | ||
} | ||
stage('Packaging') { | ||
steps { | ||
echo 'Packaging ...' | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters