File tree Expand file tree Collapse file tree 3 files changed +27
-16
lines changed Expand file tree Collapse file tree 3 files changed +27
-16
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ functions:
251
251
working_dir : src/go.mongodb.org/mongo-driver
252
252
script : |
253
253
${PREPARE_SHELL}
254
- ${BUILD_ENV|} make ${targets} BUILD_TAGS="-tags cse, gssapi"
254
+ ${BUILD_ENV|} make ${targets} BUILD_TAGS="-tags \" cse gssapi\" "
255
255
256
256
run-tests :
257
257
- command : shell.exec
@@ -1385,31 +1385,39 @@ tasks:
1385
1385
commands :
1386
1386
- func : run-make
1387
1387
vars :
1388
- targets : " build"
1388
+ targets : " build build-tests "
1389
1389
BUILD_ENV : " PATH=/opt/golang/go1.10/bin:$PATH GOROOT=/opt/golang/go1.10"
1390
1390
1391
+ # Build with whatever the latest Go version is that we're using for tests
1392
+ - name : build
1393
+ tags : ["compile-check"]
1394
+ commands :
1395
+ - func : run-make
1396
+ vars :
1397
+ targets : " build build-tests"
1398
+
1391
1399
- name : linux-32-bit
1392
1400
tags : ["compile-check"]
1393
1401
commands :
1394
1402
- func : run-make
1395
1403
vars :
1396
- targets : " build"
1404
+ targets : " build-no-tags "
1397
1405
BUILD_ENV : " GOARCH=386"
1398
1406
1399
1407
- name : linux-arm64
1400
1408
tags : ["compile-check"]
1401
1409
commands :
1402
1410
- func : run-make
1403
1411
vars :
1404
- targets : " build"
1412
+ targets : " build-no-tags "
1405
1413
BUILD_ENV : " GOARCH=arm64"
1406
1414
1407
1415
- name : linux-s390x
1408
1416
tags : ["compile-check"]
1409
1417
commands :
1410
1418
- func : run-make
1411
1419
vars :
1412
- targets : " build"
1420
+ targets : " build-no-tags "
1413
1421
BUILD_ENV : " GOARCH=ppc64le"
1414
1422
1415
1423
- name : " atlas-test"
@@ -1431,14 +1439,6 @@ tasks:
1431
1439
- func : run-aws-auth-test-with-aws-EC2-credentials
1432
1440
- func : run-aws-ECS-auth-test
1433
1441
1434
- - name : go1.10-build-cse
1435
- tags : ["compile-check"]
1436
- commands :
1437
- - func : run-make
1438
- vars :
1439
- targets : " build-cse"
1440
- BUILD_ENV : " PATH=/opt/golang/go1.10/bin:$PATH GOROOT=/opt/golang/go1.10"
1441
-
1442
1442
axes :
1443
1443
- id : version
1444
1444
display_name : MongoDB Version
Original file line number Diff line number Diff line change 10
10
driver-test-data.tar.gz
11
11
perf
12
12
** mongocryptd.pid
13
+ * .test
Original file line number Diff line number Diff line change @@ -31,11 +31,21 @@ build-examples:
31
31
32
32
.PHONY : build
33
33
build :
34
+ go build $(BUILD_TAGS ) $(filter-out ./core/auth/internal/gssapi,$(PKGS ) )
35
+
36
+ .PHONY : build-no-tags
37
+ build-no-tags :
34
38
go build $(filter-out ./core/auth/internal/gssapi,$(PKGS ) )
35
39
36
- .PHONY : build-cse
37
- build-cse :
38
- go build -tags cse $(filter-out ./core/auth/internal/gssapi,$(PKGS ) )
40
+ .PHONY : build-tests
41
+ build-tests :
42
+ for TEST in $( PKGS) ; do \
43
+ go test $(BUILD_TAGS ) -c $$ TEST ; \
44
+ if [ $$ ? -ne 0 ]; \
45
+ then \
46
+ exit 1; \
47
+ fi \
48
+ done
39
49
40
50
.PHONY : check-fmt
41
51
check-fmt :
You can’t perform that action at this time.
0 commit comments