-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.cirrus.yml
608 lines (582 loc) · 19.6 KB
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
# Attention: if you submit an improvement for a Namecoin Cirrus config, please
# file a GitHub issue about it at the namecoin/meta repo, so that we can make
# sure it propagates to all the other Namecoin repos. Thanks!
task:
name: ShellCheck
container:
image: fedora:latest
cpu: 1
memory: 1G
install_script: dnf install -y ShellCheck
lint_script: bash testdata/shellcheck.bash
task:
name: "Compile Go $GO_VERSION $GOOS $GOARCH$MODULES_NAME"
alias: Compile
container:
image: golang:$GO_VERSION
cpu: 1
memory: 1G
path_script:
- source testdata/move_to_gopath.bash
matrix:
- env:
GOOS: "linux"
GOARCH: "amd64"
- env:
GOOS: "linux"
GOARCH: "386"
CFLAGS: "-m32"
install_script:
- dpkg --add-architecture i386
- apt-get update
- apt-get install -y gcc-multilib libc6-dev:i386
- env:
GOOS: "linux"
GOARCH: "arm"
CC: "arm-linux-gnueabihf-gcc"
install_script:
- dpkg --add-architecture armhf
- apt-get update
- apt-get install -y gcc-arm-linux-gnueabihf libc6-dev:armhf
- env:
GOOS: "linux"
GOARCH: "arm64"
CC: "aarch64-linux-gnu-gcc"
install_script:
- dpkg --add-architecture arm64
- apt-get update
- apt-get install -y gcc-aarch64-linux-gnu libc6-dev:arm64
- env:
GOOS: "linux"
GOARCH: "ppc64le"
CC: "powerpc64le-linux-gnu-gcc"
install_script:
- dpkg --add-architecture ppc64el
- apt-get update
- apt-get install -y gcc-powerpc64le-linux-gnu libc6-dev:ppc64el
- env:
GOOS: "windows"
GOARCH: "amd64"
CC: "x86_64-w64-mingw32-gcc-win32"
install_script:
- apt-get update
- apt-get install -y gcc-mingw-w64-x86-64
- env:
GOOS: "windows"
GOARCH: "386"
CC: "i686-w64-mingw32-gcc-win32"
install_script:
- apt-get update
- apt-get install -y gcc-mingw-w64-i686
matrix:
- env:
GO111MODULE: "off"
MODULES_NAME: " Modules Off"
fetch_script:
- cd $(go env GOPATH)/src/github.com/"$CIRRUS_REPO_FULL_NAME"
- go get -tags "$GOX_TAGS" -d -v -t github.com/$CIRRUS_REPO_FULL_NAME/...
- go generate github.com/$CIRRUS_REPO_FULL_NAME/...
- go get -tags "$GOX_TAGS" -d -v -t github.com/$CIRRUS_REPO_FULL_NAME/...
- env:
MODULES_NAME: ""
fetch_script:
- cd $(go env GOPATH)/src/github.com/"$CIRRUS_REPO_FULL_NAME"
- go mod init github.com/"$CIRRUS_REPO_FULL_NAME"
- go mod tidy
- go generate ./...
- go mod tidy
build_script:
- SO_PREFIX=lib
- SO_EXT=so
- if [[ "$GOOS" == "windows" ]]
- then
- SO_PREFIX=""
- SO_EXT=dll
- fi
- cd $(go env GOPATH)/src/github.com/"$CIRRUS_REPO_FULL_NAME"
- mkdir -p dist
- cd pkcs11proxy
- CGO_ENABLED=1 go build -buildmode c-shared -o ../dist/${SO_PREFIX}pkcs11proxy.$SO_EXT
- cd ../p11proxy
- CGO_ENABLED=1 go build -buildmode c-shared -o ../dist/${SO_PREFIX}p11proxy.$SO_EXT
dist_script:
- SO_PREFIX=lib
- SO_EXT=so
- if [[ "$GOOS" == "windows" ]]
- then
- SO_PREFIX=""
- SO_EXT=dll
- fi
- mv $(go env GOPATH)/src/github.com/"$CIRRUS_REPO_FULL_NAME"/dist/*.$SO_EXT ./
- mkdir -p ./dist
- tar -caf ./dist/pkcs11mod.tar.gz ./*.$SO_EXT
binaries_artifacts:
path: "dist/*"
env:
GO_VERSION: latest
task:
name: "Compile Go $GO_VERSION $GOOS $GOARCH$MODULES_NAME"
alias: Compile
macos_instance:
image: big-sur-xcode-12.3
brew_script:
- brew update
bash_script:
# macOS default bash is missing globstar support.
- brew install bash
go_script:
- brew install go
path_script:
- source testdata/move_to_gopath.bash
env:
GOOS: "darwin"
GOARCH: "amd64"
matrix:
- env:
GO111MODULE: "off"
MODULES_NAME: " Modules Off"
fetch_script:
- cd $(go env GOPATH)/src/github.com/"$CIRRUS_REPO_FULL_NAME"
- go get -tags "$GOX_TAGS" -d -v -t github.com/$CIRRUS_REPO_FULL_NAME/...
- go generate github.com/$CIRRUS_REPO_FULL_NAME/...
- go get -tags "$GOX_TAGS" -d -v -t github.com/$CIRRUS_REPO_FULL_NAME/...
- env:
MODULES_NAME: ""
fetch_script:
- cd $(go env GOPATH)/src/github.com/"$CIRRUS_REPO_FULL_NAME"
- go mod init github.com/"$CIRRUS_REPO_FULL_NAME"
- go mod tidy
- go generate ./...
- go mod tidy
build_script:
- SO_PREFIX=lib
- SO_EXT=dylib
- cd $(go env GOPATH)/src/github.com/"$CIRRUS_REPO_FULL_NAME"
- mkdir -p dist
- cd pkcs11proxy
- CGO_ENABLED=1 go build -buildmode c-shared -o ../dist/${SO_PREFIX}pkcs11proxy.$SO_EXT
- cd ../p11proxy
- CGO_ENABLED=1 go build -buildmode c-shared -o ../dist/${SO_PREFIX}p11proxy.$SO_EXT
dist_script:
- SO_PREFIX=lib
- SO_EXT=dylib
- mv $(go env GOPATH)/src/github.com/"$CIRRUS_REPO_FULL_NAME"/dist/*.$SO_EXT ./
- mkdir -p ./dist
- tar -caf ./dist/pkcs11mod.tar.gz ./*.$SO_EXT
binaries_artifacts:
path: "dist/*"
env:
GO_VERSION: latest
task:
alias: Go Lint
container:
image: golangci/golangci-lint:latest
fetch_script:
- go mod init github.com/"$CIRRUS_REPO_FULL_NAME"
- go mod tidy
- go generate ./...
- go mod tidy
# interfacebloat complains about miekg/pkcs11 API's that we can't change.
# nosnakecase complains about miekg/pkcs11 API's that we can't change.
lint_script: golangci-lint run --enable-all --disable exhaustivestruct,exhaustruct,gochecknoglobals,gochecknoinits,interfacebloat,nosnakecase $GOLANGCI_ARGS -v --out-format json > lint-report.json
matrix:
- name: Go Lint New
env:
GOLANGCI_ARGS: "--new-from-rev=HEAD~"
- name: Go Lint Mandatory
env:
GOLANGCI_ARGS: "--disable=cyclop,dupl,gci,godox,goerr113,gomnd,gosimple,ifshort,lll,nlreturn,nosnakecase,revive,varnamelen,wrapcheck"
- name: Go Lint
env:
GOLANGCI_ARGS: ""
allow_failures: true
always:
golangci_artifacts:
path: lint-report.json
type: text/json
format: golangci
task:
name: "csbuild"
container:
image: fedora:latest
cpu: 1
memory: 1G
install_script:
- dnf install -y golang gcc csbuild
help_script:
- csbuild --help
path_script:
- source testdata/move_to_gopath.bash
fetch_script:
- cd $(go env GOPATH)/src/github.com/"$CIRRUS_REPO_FULL_NAME"
- go mod init github.com/"$CIRRUS_REPO_FULL_NAME"
- go mod tidy
- csbuild --build-cmd 'go generate ./...' | tee csbuild.txt
- if ! grep -P -q -i -z 'CURRENT DEFECTS\n===============\n$' csbuild.txt
- then
- exit 1
- fi
- go mod tidy
build_script:
- SO_PREFIX=lib
- SO_EXT=so
- cd $(go env GOPATH)/src/github.com/"$CIRRUS_REPO_FULL_NAME"
- mkdir -p dist
- cd pkcs11proxy
- CGO_ENABLED=1 csbuild --build-cmd "go build -buildmode c-shared -o ../dist/${SO_PREFIX}pkcs11proxy.$SO_EXT" | tee csbuild.txt
- if ! grep -P -q -i -z 'CURRENT DEFECTS\n===============\n$' csbuild.txt
- then
- exit 1
- fi
- cd ../p11proxy
- CGO_ENABLED=1 csbuild --build-cmd "go build -buildmode c-shared -o ../dist/${SO_PREFIX}p11proxy.$SO_EXT" | tee csbuild.txt
- if ! grep -P -q -i -z 'CURRENT DEFECTS\n===============\n$' csbuild.txt
- then
- exit 1
- fi
task:
name: "certutil $CI_DISTRO"
matrix:
- container:
image: fedora:latest
cpu: 1
memory: 1G
package_install_script:
- dnf install -y nss-tools
env:
CI_DISTRO: fedora
CI_MAIN_MODULE: /usr/lib64/pkcs11/p11-kit-trust.so
CI_BAK_MODULE: /usr/lib64/pkcs11/p11-kit-trust.orig.so
- container:
image: debian:latest
cpu: 1
memory: 1G
package_install_script:
- apt-get update
- apt-get install -y curl libnss3-tools
env:
CI_DISTRO: debian
CI_MAIN_MODULE: /usr/lib/x86_64-linux-gnu/nss/libnssckbi.so
CI_BAK_MODULE: /usr/lib/x86_64-linux-gnu/nss/libnssckbi.orig.so
install_script:
- curl -o pkcs11mod.tar.gz https://api.cirrus-ci.com/v1/artifact/build/$CIRRUS_BUILD_ID/Compile%20Go%20latest%20linux%20amd64/binaries/dist/pkcs11mod.tar.gz
- tar -xaf ./pkcs11mod.tar.gz
test_script:
- testdata/ci-certutil-tests.bash
depends_on:
- "Compile Go latest linux amd64"
task:
name: "certutil $CI_CHANNEL windows"
windows_container:
image: cirrusci/windowsservercore:2019
cpu: 1
memory: 1G
install_script:
- SET PATH=%PATH%;%cd%
- powershell -ExecutionPolicy Unrestricted -File "testdata/download-certutil.ps1" -channel %CI_CHANNEL%
- curl -o pkcs11mod.tar.gz --location https://api.cirrus-ci.com/v1/artifact/build/%CIRRUS_BUILD_ID%/Compile%%%%20Go%%%%20latest%%%%20windows%%%%20%GOARCH%/binaries/dist/pkcs11mod.tar.gz
- tar -xf pkcs11mod.tar.gz
test_script:
- SET PATH=%PATH%;%cd%
- powershell -ExecutionPolicy Unrestricted -File "testdata/ci-certutil-tests.ps1"
env:
GOARCH: "amd64"
CI_MAIN_MODULE: ./nssckbi.dll
CI_BAK_MODULE: ./nssckbi.orig.dll
depends_on:
- "Compile Go latest windows amd64"
matrix:
- env:
CI_CHANNEL: "Nightly"
- env:
CI_CHANNEL: "Alpha"
- env:
CI_CHANNEL: "Stable"
task:
name: "Chromium $CI_DISTRO"
matrix:
- container:
image: fedora:latest
cpu: 1
memory: 1G
package_install_script:
- dnf install -y chromium
env:
CI_DISTRO: fedora
CI_MAIN_MODULE: /usr/lib64/pkcs11/p11-kit-trust.so
CI_BAK_MODULE: /usr/lib64/pkcs11/p11-kit-trust.orig.so
- container:
image: debian:latest
cpu: 1
memory: 1G
package_install_script:
- apt-get update
- apt-get install -y curl chromium
- ln -s -T /usr/bin/chromium /usr/bin/chromium-browser
env:
CI_DISTRO: debian
CI_MAIN_MODULE: /usr/lib/x86_64-linux-gnu/nss/libnssckbi.so
CI_BAK_MODULE: /usr/lib/x86_64-linux-gnu/nss/libnssckbi.orig.so
install_script:
- curl -o pkcs11mod.tar.gz https://api.cirrus-ci.com/v1/artifact/build/$CIRRUS_BUILD_ID/Compile%20Go%20latest%20linux%20amd64/binaries/dist/pkcs11mod.tar.gz
- tar -xaf ./pkcs11mod.tar.gz
test_script:
- testdata/ci-chromium-tests.bash
depends_on:
- "Compile Go latest linux amd64"
task:
name: "Exports $GOARCH"
windows_container:
image: cirrusci/windowsservercore:2019
cpu: 1
memory: 1G
install_script:
- curl -o Dependencies.zip --location /~https://github.com/lucasg/Dependencies/releases/download/v1.11.1/Dependencies_x64_Release.zip
- tar -xf Dependencies.zip
- curl -o pkcs11mod.tar.gz --location https://api.cirrus-ci.com/v1/artifact/build/%CIRRUS_BUILD_ID%/Compile%%%%20Go%%%%20latest%%%%20windows%%%%20%GOARCH%/binaries/dist/pkcs11mod.tar.gz
- tar -xf pkcs11mod.tar.gz
test_script:
- SET PATH=%PATH%;%cd%
- powershell -ExecutionPolicy Unrestricted -File "testdata/ci-exports-tests.ps1"
matrix:
- env:
GOARCH: "amd64"
depends_on:
- "Compile Go latest windows amd64"
- env:
GOARCH: "386"
depends_on:
- "Compile Go latest windows 386"
task:
name: "Firefox $CI_DISTRO"
matrix:
- container:
image: fedora:latest
cpu: 1
memory: 1G
package_install_script:
- dnf install -y firefox
env:
CI_DISTRO: fedora
CI_MAIN_MODULE: /usr/lib64/pkcs11/p11-kit-trust.so
CI_BAK_MODULE: /usr/lib64/pkcs11/p11-kit-trust.orig.so
- container:
image: debian:latest
cpu: 1
memory: 1G
package_install_script:
- apt-get update
- apt-get install -y curl firefox-esr
env:
CI_DISTRO: debian
CI_MAIN_MODULE: /usr/lib/firefox-esr/libnssckbi.so
CI_BAK_MODULE: /usr/lib/firefox-esr/libnssckbi.orig.so
install_script:
- curl -o pkcs11mod.tar.gz https://api.cirrus-ci.com/v1/artifact/build/$CIRRUS_BUILD_ID/Compile%20Go%20latest%20linux%20amd64/binaries/dist/pkcs11mod.tar.gz
- tar -xaf ./pkcs11mod.tar.gz
test_script:
- testdata/ci-firefox-tests.bash
depends_on:
- "Compile Go latest linux amd64"
task:
name: "$CI_PACKAGE_NAME $CI_CHANNEL $CI_DISABLE_E10S_NAME windows"
compute_engine_instance:
image_project: windows-cloud
image: family/windows-2022
platform: windows
cpu: 1
memory: 2G
choco_script:
- powershell -ExecutionPolicy Unrestricted -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\\chocolatey\\bin\\"
install_script:
- SET "PATH=%PATH%;%ALLUSERSPROFILE%\\chocolatey\\bin\\"
- choco install %CI_PACKAGE% --yes --pre
- curl -o pkcs11mod.tar.gz --location https://api.cirrus-ci.com/v1/artifact/build/%CIRRUS_BUILD_ID%/Compile%%%%20Go%%%%20latest%%%%20windows%%%%20%GOARCH%/binaries/dist/pkcs11mod.tar.gz
- tar -xf pkcs11mod.tar.gz
test_script:
- SET PATH=%PATH%;%cd%
- powershell -ExecutionPolicy Unrestricted -File "testdata/ci-firefox-tests.ps1"
env:
CI_PACKAGE_NAME: "Firefox"
matrix:
- env:
GOARCH: "amd64"
CI_CHANNEL: "Nightly"
CI_PACKAGE: "firefox-nightly"
CI_MAIN_MODULE: "C:\\Program Files\\Firefox Nightly\\nssckbi.dll"
CI_BAK_MODULE: "C:\\Program Files\\Firefox Nightly\\nssckbi.orig.dll"
CI_MAIN_EXE: "C:\\Program Files\\Firefox Nightly\\firefox.exe"
CI_APPDATA: "Mozilla"
- env:
GOARCH: "amd64"
CI_CHANNEL: "Developer Edition"
CI_PACKAGE: "firefox-dev"
CI_MAIN_MODULE: "C:\\Program Files\\Firefox Developer Edition\\nssckbi.dll"
CI_BAK_MODULE: "C:\\Program Files\\Firefox Developer Edition\\nssckbi.orig.dll"
CI_MAIN_EXE: "C:\\Program Files\\Firefox Developer Edition\\firefox.exe"
CI_APPDATA: "Mozilla"
- env:
GOARCH: "amd64"
CI_CHANNEL: "Beta"
CI_PACKAGE: "firefox-beta"
CI_MAIN_MODULE: "C:\\Program Files\\Mozilla Firefox\\nssckbi.dll"
CI_BAK_MODULE: "C:\\Program Files\\Mozilla Firefox\\nssckbi.orig.dll"
CI_MAIN_EXE: "C:\\Program Files\\Mozilla Firefox\\firefox.exe"
CI_APPDATA: "Mozilla"
- env:
GOARCH: "amd64"
CI_CHANNEL: "Rapid Release"
CI_PACKAGE: "firefox"
CI_MAIN_MODULE: "C:\\Program Files\\Mozilla Firefox\\nssckbi.dll"
CI_BAK_MODULE: "C:\\Program Files\\Mozilla Firefox\\nssckbi.orig.dll"
CI_MAIN_EXE: "C:\\Program Files\\Mozilla Firefox\\firefox.exe"
CI_APPDATA: "Mozilla"
- env:
GOARCH: "amd64"
CI_CHANNEL: "ESR"
CI_PACKAGE: "firefoxesr"
CI_MAIN_MODULE: "C:\\Program Files\\Mozilla Firefox\\nssckbi.dll"
CI_BAK_MODULE: "C:\\Program Files\\Mozilla Firefox\\nssckbi.orig.dll"
CI_MAIN_EXE: "C:\\Program Files\\Mozilla Firefox\\firefox.exe"
CI_APPDATA: "Mozilla"
- env:
GOARCH: "amd64"
CI_CHANNEL: "ESR"
CI_PACKAGE_NAME: "IceCat"
CI_PACKAGE: "icecat"
CI_MAIN_MODULE: "C:\\Program Files\\IceCat\\nssckbi.dll"
CI_BAK_MODULE: "C:\\Program Files\\IceCat\\nssckbi.orig.dll"
CI_MAIN_EXE: "C:\\Program Files\\IceCat\\icecat.exe"
CI_APPDATA: "Mozilla"
- env:
GOARCH: "amd64"
CI_CHANNEL: "Rapid Release"
CI_PACKAGE_NAME: "LibreWolf"
CI_PACKAGE: "librewolf"
CI_MAIN_MODULE: "C:\\Program Files\\LibreWolf\\nssckbi.dll"
CI_BAK_MODULE: "C:\\Program Files\\LibreWolf\\nssckbi.orig.dll"
CI_MAIN_EXE: "C:\\Program Files\\LibreWolf\\librewolf.exe"
CI_APPDATA: "librewolf"
- env:
GOARCH: "amd64"
CI_CHANNEL: "Current"
CI_PACKAGE_NAME: "Waterfox"
CI_PACKAGE: "waterfox"
CI_MAIN_MODULE: "C:\\Program Files\\Waterfox\\nssckbi.dll"
CI_BAK_MODULE: "C:\\Program Files\\Waterfox\\nssckbi.orig.dll"
CI_MAIN_EXE: "C:\\Program Files\\Waterfox\\waterfox.exe"
CI_APPDATA: "Waterfox"
matrix:
- env:
CI_DISABLE_E10S: "1"
CI_DISABLE_E10S_NAME: "No-E10S"
- env:
CI_DISABLE_E10S: "0"
CI_DISABLE_E10S_NAME: ""
depends_on:
- "Compile Go latest windows amd64"
task:
name: "gnutls-cli"
container:
image: fedora:latest
cpu: 1
memory: 1G
install_script:
- dnf install -y gnutls-utils
- curl -o pkcs11mod.tar.gz https://api.cirrus-ci.com/v1/artifact/build/$CIRRUS_BUILD_ID/Compile%20Go%20latest%20linux%20amd64/binaries/dist/pkcs11mod.tar.gz
- tar -xaf ./pkcs11mod.tar.gz
test_script:
- testdata/ci-gnutls-cli-tests.bash
depends_on:
- "Compile Go latest linux amd64"
task:
name: "OpenDNSSEC"
container:
image: fedora:latest
cpu: 1
memory: 1G
install_script:
- dnf install -y git autoconf libtool g++ softhsm opensc diffutils
- curl -o pkcs11mod.tar.gz https://api.cirrus-ci.com/v1/artifact/build/$CIRRUS_BUILD_ID/Compile%20Go%20latest%20linux%20amd64/binaries/dist/pkcs11mod.tar.gz
- tar -xaf ./pkcs11mod.tar.gz
opendnssec_build_script:
- git clone /~https://github.com/opendnssec/pkcs11-testing.git
- cd pkcs11-testing
- chmod +x autogen.sh
- ./autogen.sh
- ./configure --disable-dependency-tracking
- make install
test_script:
- testdata/ci-opendnssec-tests.bash
depends_on:
- "Compile Go latest linux amd64"
task:
name: "pkcs11-dump"
container:
image: fedora:latest
cpu: 1
memory: 1G
install_script:
- dnf install -y pkcs11-dump diffutils
- curl -o pkcs11mod.tar.gz https://api.cirrus-ci.com/v1/artifact/build/$CIRRUS_BUILD_ID/Compile%20Go%20latest%20linux%20amd64/binaries/dist/pkcs11mod.tar.gz
- tar -xaf ./pkcs11mod.tar.gz
test_script:
- testdata/ci-pkcs11-dump-tests.bash
depends_on:
- "Compile Go latest linux amd64"
task:
name: "tstclnt $CI_DISTRO"
matrix:
- container:
image: fedora:latest
cpu: 1
memory: 1G
package_install_script:
- dnf install -y nss-tools
env:
CI_DISTRO: fedora
CI_MAIN_MODULE: /usr/lib64/pkcs11/p11-kit-trust.so
CI_BAK_MODULE: /usr/lib64/pkcs11/p11-kit-trust.orig.so
- container:
image: debian:latest
cpu: 1
memory: 1G
package_install_script:
- apt-get update
- apt-get install -y curl libnss3-tools
env:
CI_DISTRO: debian
CI_MAIN_MODULE: /usr/lib/x86_64-linux-gnu/nss/libnssckbi.so
CI_BAK_MODULE: /usr/lib/x86_64-linux-gnu/nss/libnssckbi.orig.so
install_script:
- curl -o pkcs11mod.tar.gz https://api.cirrus-ci.com/v1/artifact/build/$CIRRUS_BUILD_ID/Compile%20Go%20latest%20linux%20amd64/binaries/dist/pkcs11mod.tar.gz
- tar -xaf ./pkcs11mod.tar.gz
test_script:
- export PATH=$PATH:/usr/lib64/nss/unsupported-tools
- testdata/ci-tstclnt-tests.bash
depends_on:
- "Compile Go latest linux amd64"
task:
name: "wget"
container:
image: fedora:latest
cpu: 1
memory: 1G
install_script:
- dnf install -y wget
- curl -o pkcs11mod.tar.gz https://api.cirrus-ci.com/v1/artifact/build/$CIRRUS_BUILD_ID/Compile%20Go%20latest%20linux%20amd64/binaries/dist/pkcs11mod.tar.gz
- tar -xaf ./pkcs11mod.tar.gz
test_script:
- testdata/ci-wget-tests.bash
depends_on:
- "Compile Go latest linux amd64"
# TODO: Add Windows unit tests
# TODO: "Testing config parsing" from travis.bash
# TODO: Add multiple Go versions to Gox builds and unit tests
# TODO: Add debug stripping and path stripping to Gox for repro builds
# TODO: Re-add darwin/386 for old Go versions where it was supported
# TODO: Fix upload repo for tagged commits (don't use Nightly repo for this)
# TODO: Skip Signify and Release if it's not applicable
# TODO: Signify Nightlies
# TODO: IRC notifications on failure
# TODO: Cron