chore: remove unused jenkins ci config
We use circle for ci. The old Jenkinsfile is stale and unused. License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
Oli Evans committed
Mar 4, 2020 at 16:43 UTC
9c232cc55ac48f6b1f2be136b95e89b2c7b1d9e6
2 files changed
-269
ci/Dockerfile.buildenv
deleted
-46
@@ -1,46 +0,0 @@
1
-FROM golang:1.11
2
-MAINTAINER Jakub Sztandera <kubuxu@ipfs.io>
3
-
4
-
5
-RUN apt-get update && apt-get install -y --no-install-recommends \
6
- netcat-openbsd bash curl \
7
- sudo \
8
- && rm -rf /var/lib/apt/lists/*
9
-
10
-ENV GOBIN $GOPATH/bin
11
-ENV SRC_PATH /go/src/github.com/ipfs/go-ipfs
12
-
13
-RUN curl -s https://codecov.io/bash > /usr/bin/codecov && chmod +x /usr/bin/codecov \
14
- && go get -u github.com/Kubuxu/gocovmerge && go get -u golang.org/x/tools/cmd/cover
15
-ENV IPFS_SKIP_COVER_BINS 1
16
-
17
-
18
-RUN useradd user
19
-RUN chown -R user $GOPATH
20
-
21
-WORKDIR $SRC_PATH
22
-
23
-COPY ./bin $SRC_PATH/bin/
24
-COPY ./mk $SRC_PATH/mk/
25
-RUN chown -R user $GOPATH
26
-
27
-USER user
28
-# install gx and gx-go
29
-RUN make -j 4 -f bin/Rules.mk d=bin bin/gx bin/gx-go && cp bin/gx bin/gx-go $GOBIN
30
-USER root
31
-ENV IPFS_GX_USE_GLOBAL 1
32
-
33
-COPY package.json $SRC_PATH/
34
-ENV PATH $SRC_PATH/bin:$PATH
35
-
36
-USER user
37
-RUN make -f mk/gx.mk gx-deps
38
-USER root
39
-
40
-COPY . $SRC_PATH
41
-RUN chown -R user:user $GOPATH
42
-USER user
43
-# mkdir .git/objects is required for git to detect repo
44
-RUN mkdir .git/objects && make cmd/ipfs/ipfs #populate go cache
45
-
46
-CMD ["/bin/bash", "-c", "trap : TERM INT; sleep infinity & wait"]
ci/Jenkinsfile
deleted
-223
@@ -1,223 +0,0 @@
1
-import groovy.transform.Field
2
-
3
-/* SETTINGS */
4
-
5
-// in minutes
6
-def sharness_timeout = 15
7
-def gotest_timeout = 10
8
-def build_timeout = 20
9
-def check_timeout = 4
10
-
11
-def test = 'go test -v ./...'
12
-
13
-def fast_build_platforms = [
14
- ['linux', 'amd64'],
15
-]
16
-
17
-def build_platforms = [
18
- ['windows', '386'],
19
- ['windows', 'amd64'],
20
-
21
- ['linux', 'arm'],
22
- ['linux', 'arm64'],
23
- ['linux', '386'],
24
-
25
- ['darwin', '386'],
26
- ['darwin', 'amd64'],
27
-
28
- ['freebsd', 'amd64']
29
-]
30
-
31
-/* PIPELINE UTILS */
32
-
33
-def setupStep(nodeLabel, f) {
34
- node(label: nodeLabel) {
35
- def ps = nodeLabel != 'windows' ? '/' : '\\'
36
- def psep = nodeLabel != 'windows' ? ':' : ';'
37
-
38
- def root = tool name: '1.11', type: 'go'
39
- def jobNameArr = "${JOB_NAME}"
40
- def jobName = jobNameArr.split("/")[0..1].join(nodeLabel != 'windows' ? '/' : '\\\\').toLowerCase()
41
- def subName = jobNameArr.split("/")[2].toLowerCase()
42
- def originalWs = "${WORKSPACE}"
43
-
44
- ws("${originalWs}${ps}src${ps}github.com${ps}${jobName}") {
45
- def goEnv = ["GOROOT=${root}", "GOPATH=${originalWs}", "SUBNAME=${subName}", "PATH=$PATH${psep}${root}${ps}bin${psep}${originalWs}${ps}bin"]
46
- withEnv(goEnv) {
47
- checkout scm
48
-
49
- def run = nodeLabel != 'windows' ? this.&sh : this.&bat
50
-
51
- try {
52
- f(run)
53
- } finally {
54
- cleanWs()
55
- }
56
- }
57
- }
58
- }
59
-}
60
-
61
-def gobuild_step = { list ->
62
- setupStep('linux') { run ->
63
- timeout(time: build_timeout, unit: 'MINUTES') {
64
- run "make gx-deps"
65
-
66
- list.each { platform ->
67
- timeout(time: check_timeout, unit: 'MINUTES') {
68
- withEnv(["GOOS=${platform[0]}", "GOARCH=${platform[1]}"]) {
69
- run "go build -i -ldflags=\"-X github.com/ipfs/go-ipfs/repo/config.CurrentCommit=${env.SUBNAME}-${env.BUILD_NUMBER}\" -o cmd/ipfs/ipfs github.com/ipfs/go-ipfs/cmd/ipfs"
70
- run "cp cmd/ipfs/ipfs cmd/ipfs/dist; cd cmd/ipfs/dist; tar -czvf ../go-ipfs_${env.GOOS}-${env.GOARCH}-${env.SUBNAME}-${env.BUILD_NUMBER}.tar.gz ."
71
- archiveArtifacts artifacts: "cmd/ipfs/go-ipfs_${env.GOOS}-${env.GOARCH}-${env.SUBNAME}-${env.BUILD_NUMBER}.tar.gz", fingerprint: true
72
- }
73
- }
74
- }
75
- }
76
- }
77
-}
78
-
79
-def sharness_step = { run, osname, makeargs, ignore ->
80
- timeout(time: sharness_timeout, unit: 'MINUTES') {
81
- run "make gx-deps"
82
-
83
- try {
84
- run "make -j12 ${makeargs} test/sharness/test-results/sharness.xml CONTINUE_ON_S_FAILURE=1 TEST_NO_FUSE=1 TEST_NO_DOCKER=1"
85
-
86
- try {
87
- // archive trash directories if any
88
- run "tar -czf sharnessTrashDirs-${osname}.tar.gz test/sharness/trash\\ *"
89
- archiveArtifacts artifacts: "sharnessTrashDirs-${osname}.tar.gz", fingerprint: true
90
- } catch (_) {}
91
- } catch (err) {
92
- throw err
93
- } finally {
94
- if (!ignore) {
95
- junit allowEmptyResults: true, testResults: 'test/sharness/test-results/sharness.xml'
96
- }
97
- }
98
- }
99
-}
100
-
101
-def gotest_step = { run ->
102
- timeout(time: gotest_timeout, unit: 'MINUTES') {
103
- run "make gx-deps"
104
-
105
- try {
106
- run test + ' -tags="nofuse" 2>&1 | tee output'
107
- run 'cat output | go-junit-report > junit-report-linux.xml'
108
- } catch (err) {
109
- throw err
110
- } finally {
111
- junit allowEmptyResults: true, testResults: 'junit-report-*.xml'
112
- }
113
- }
114
-}
115
-
116
-/* PIPELINE */
117
-
118
-ansiColor('xterm') { withEnv(['TERM=xterm-color']) {
119
- stage('Checks') {
120
- parallel(
121
- 'go fmt': {
122
- setupStep('linux') { run ->
123
- timeout(time: check_timeout, unit: 'MINUTES') {
124
- run 'make test_go_fmt'
125
- }
126
- }
127
- },
128
- 'go vet': {
129
- setupStep('linux') { run ->
130
- timeout(time: check_timeout, unit: 'MINUTES') {
131
- run 'make gx-deps'
132
- run 'go vet ./...'
133
- }
134
- }
135
- },
136
- 'go build': {
137
- gobuild_step(fast_build_platforms)
138
- },
139
- 'gx deps dupes': {
140
- setupStep('linux') { run ->
141
- timeout(time: check_timeout, unit: 'MINUTES') {
142
- run 'make gx-deps'
143
- run 'test -z "$(./bin/gx deps dupes)"'
144
- }
145
- }
146
- }
147
- )
148
- }
149
-
150
- stage('Tests') {
151
- parallel(
152
- 'go build (other platforms)': {
153
- gobuild_step(build_platforms)
154
- },
155
- windows: {
156
- setupStep('windows') { run ->
157
- timeout(time: gotest_timeout, unit: 'MINUTES') {
158
- run 'go get -v github.com/jstemmer/go-junit-report github.com/whyrusleeping/gx github.com/whyrusleeping/gx-go'
159
- run "gx install --global"
160
-
161
- try {
162
- run test + ' -tags="nofuse" > output & type output'
163
- run 'type output | go-junit-report > junit-report-windows.xml'
164
- } catch (err) {
165
- throw err
166
- } finally {
167
- /* IGNORE TEST FAILS */
168
- /* junit allowEmptyResults: true, testResults: 'junit-report-*.xml' */
169
- }
170
- }
171
- }
172
- },
173
- linux: {
174
- setupStep('linux') { run ->
175
- run 'go get -v github.com/jstemmer/go-junit-report'
176
- gotest_step(run)
177
- }
178
- },
179
- linuxSharness: {
180
- setupStep('linux') { run ->
181
- sharness_step(run, 'linux', '-Otarget', false)
182
- }
183
- },
184
- linux32: {
185
- setupStep('linux') { run ->
186
- run 'go get -v github.com/jstemmer/go-junit-report'
187
- withEnv(["GOARCH=386"]) {
188
- gotest_step(run)
189
- }
190
- }
191
- },
192
- linux32Sharness: {
193
- setupStep('linux') { run ->
194
- withEnv(["GOARCH=386", "TEST_NO_PLUGIN=1"]) {
195
- sharness_step(run, 'linux', '-Otarget', false)
196
- }
197
- }
198
- },
199
- //macOS: {
200
- // setupStep('macos') { run ->
201
- // sharness_step(run, 'macos', '', true)
202
- // }
203
- //},
204
- //macSharness: {
205
- // setupStep('macos') { run ->
206
- // timeout(time: sharness_timeout, unit: 'MINUTES') {
207
- // run 'go get -v github.com/jstemmer/go-junit-report'
208
- // run "make gx-deps"
209
-
210
- // try {
211
- // run "make -j12 test/sharness/test-results/sharness.xml CONTINUE_ON_S_FAILURE=1 TEST_NO_FUSE=1"
212
- // } catch (err) {
213
- // throw err
214
- // } finally {
215
- // /* IGNORE TEST FAILS */
216
- // /* junit allowEmptyResults: true, testResults: 'test/sharness/test-results/sharness.xml' */
217
- // }
218
- // }
219
- // }
220
- //},
221
- )
222
- }
223
-}}