Jenkins reborn (#285)
* initial build and output testing... lots of trial and error * clean up for working (but failing) unit test geth with ubuntu foundation image
This commit is contained in:
parent
c9beb11f8f
commit
70d6dbb012
2
.github/workflows/publish.yaml
vendored
2
.github/workflows/publish.yaml
vendored
@ -33,4 +33,4 @@ jobs:
|
|||||||
- name: curl
|
- name: curl
|
||||||
uses: enflo/curl-action@master
|
uses: enflo/curl-action@master
|
||||||
with:
|
with:
|
||||||
curl: --user circcicd:${{ secrets.GITEA_TOKEN }} --upload-file geth-linux-amd64 https://git.vdb.to/api/packages/cerc-io/generic/go-ethereum/v1.10.23-statediff-alpha-unstable/geth-linux-amd64
|
curl: --user cerccicd:${{ secrets.GITEA_TOKEN }} --upload-file geth-linux-amd64 https://git.vdb.to/api/packages/cerc-io/generic/go-ethereum/${{ github.event.inputs.giteaPublishTag }}/geth-linux-amd64
|
||||||
|
50
Jenkinsfile
vendored
Normal file
50
Jenkinsfile
vendored
Normal file
@ -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 ...'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
2
Makefile
2
Makefile
@ -50,7 +50,7 @@ ios:
|
|||||||
@echo "Import \"$(GOBIN)/Geth.framework\" to use the library."
|
@echo "Import \"$(GOBIN)/Geth.framework\" to use the library."
|
||||||
|
|
||||||
test: all
|
test: all
|
||||||
$(GORUN) build/ci.go test
|
$(GORUN) build/ci.go test -v
|
||||||
|
|
||||||
lint: ## Run linters.
|
lint: ## Run linters.
|
||||||
$(GORUN) build/ci.go lint
|
$(GORUN) build/ci.go lint
|
||||||
|
Loading…
Reference in New Issue
Block a user