Skip to content

Commit 2bf6376

Browse files
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
1 parent 9ff5fd3 commit 2bf6376

File tree

3 files changed

+52
-2
lines changed

3 files changed

+52
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
- name: curl
3434
uses: enflo/curl-action@master
3535
with:
36-
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
36+
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

Jenkinsfile

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
pipeline {
2+
agent any
3+
4+
stages {
5+
stage('Build') {
6+
steps {
7+
script{
8+
docker.withRegistry('https://git.vdb.to'){
9+
echo 'Building geth image...'
10+
//def geth_image = docker.build("cerc-io/go-ethereum:jenkinscicd")
11+
echo 'built geth image'
12+
}
13+
}
14+
}
15+
}
16+
stage('Test') {
17+
agent {
18+
docker {
19+
image 'cerc-io/foundation:jenkinscicd'
20+
//image 'cerc-io/foundation_alpine:jenkinscicd'
21+
}
22+
}
23+
24+
environment {
25+
GO111MODULE = "on"
26+
CGO_ENABLED = 1
27+
//GOPATH = "${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_ID}"
28+
//GOPATH = "/go"
29+
GOPATH = "/tmp/go"
30+
//GOMODCACHE = "/go/pkg/mod"
31+
GOCACHE = "${WORKSPACE}/.cache/go-build"
32+
GOENV = "${WORKSPACE}/.config/go/env"
33+
GOMODCACHE = "/tmp/go/pkg/mod"
34+
GOWORK=""
35+
//GOFLAGS=""
36+
37+
}
38+
steps {
39+
echo 'Testing ...'
40+
//sh '/usr/local/go/bin/go test -p 1 -v ./...'
41+
sh 'make test'
42+
}
43+
}
44+
stage('Packaging') {
45+
steps {
46+
echo 'Packaging ...'
47+
}
48+
}
49+
}
50+
}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ ios:
5050
@echo "Import \"$(GOBIN)/Geth.framework\" to use the library."
5151

5252
test: all
53-
$(GORUN) build/ci.go test
53+
$(GORUN) build/ci.go test -v
5454

5555
lint: ## Run linters.
5656
$(GORUN) build/ci.go lint

0 commit comments

Comments
 (0)