@@ -389,15 +389,15 @@ generate-ini-sqlite:
389
389
390
390
.PHONY : test-sqlite
391
391
test-sqlite : integrations.sqlite.test generate-ini-sqlite
392
- GITEA_ROOT=${ CURDIR} GITEA_CONF=integrations/sqlite.ini ./integrations.sqlite.test
392
+ GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/sqlite.ini ./integrations.sqlite.test
393
393
394
394
.PHONY : test-sqlite\# %
395
395
test-sqlite\#% : integrations.sqlite.test generate-ini-sqlite
396
- GITEA_ROOT=${ CURDIR} GITEA_CONF=integrations/sqlite.ini ./integrations.sqlite.test -test.run $(subst .,/,$* )
396
+ GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/sqlite.ini ./integrations.sqlite.test -test.run $(subst .,/,$* )
397
397
398
398
.PHONY : test-sqlite-migration
399
399
test-sqlite-migration : migrations.sqlite.test generate-ini-sqlite
400
- GITEA_ROOT=${ CURDIR} GITEA_CONF=integrations/sqlite.ini ./migrations.sqlite.test
400
+ GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/sqlite.ini ./migrations.sqlite.test
401
401
402
402
generate-ini-mysql :
403
403
sed -e ' s|{{TEST_MYSQL_HOST}}|${TEST_MYSQL_HOST}|g' \
@@ -409,15 +409,15 @@ generate-ini-mysql:
409
409
410
410
.PHONY : test-mysql
411
411
test-mysql : integrations.mysql.test generate-ini-mysql
412
- GITEA_ROOT=${ CURDIR} GITEA_CONF=integrations/mysql.ini ./integrations.mysql.test
412
+ GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/mysql.ini ./integrations.mysql.test
413
413
414
414
.PHONY : test-mysql\# %
415
415
test-mysql\#% : integrations.mysql.test generate-ini-mysql
416
- GITEA_ROOT=${ CURDIR} GITEA_CONF=integrations/mysql.ini ./integrations.mysql.test -test.run $(subst .,/,$* )
416
+ GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/mysql.ini ./integrations.mysql.test -test.run $(subst .,/,$* )
417
417
418
418
.PHONY : test-mysql-migration
419
419
test-mysql-migration : migrations.mysql.test generate-ini-mysql
420
- GITEA_ROOT=${ CURDIR} GITEA_CONF=integrations/mysql.ini ./migrations.mysql.test
420
+ GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/mysql.ini ./migrations.mysql.test
421
421
422
422
generate-ini-mysql8 :
423
423
sed -e ' s|{{TEST_MYSQL8_HOST}}|${TEST_MYSQL8_HOST}|g' \
@@ -429,15 +429,15 @@ generate-ini-mysql8:
429
429
430
430
.PHONY : test-mysql8
431
431
test-mysql8 : integrations.mysql8.test generate-ini-mysql8
432
- GITEA_ROOT=${ CURDIR} GITEA_CONF=integrations/mysql8.ini ./integrations.mysql8.test
432
+ GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/mysql8.ini ./integrations.mysql8.test
433
433
434
434
.PHONY : test-mysql8\# %
435
435
test-mysql8\#% : integrations.mysql8.test generate-ini-mysql8
436
- GITEA_ROOT=${ CURDIR} GITEA_CONF=integrations/mysql8.ini ./integrations.mysql8.test -test.run $(subst .,/,$* )
436
+ GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/mysql8.ini ./integrations.mysql8.test -test.run $(subst .,/,$* )
437
437
438
438
.PHONY : test-mysql8-migration
439
439
test-mysql8-migration : migrations.mysql8.test generate-ini-mysql8
440
- GITEA_ROOT=${ CURDIR} GITEA_CONF=integrations/mysql8.ini ./migrations.mysql8.test
440
+ GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/mysql8.ini ./migrations.mysql8.test
441
441
442
442
generate-ini-pgsql :
443
443
sed -e ' s|{{TEST_PGSQL_HOST}}|${TEST_PGSQL_HOST}|g' \
@@ -450,15 +450,15 @@ generate-ini-pgsql:
450
450
451
451
.PHONY : test-pgsql
452
452
test-pgsql : integrations.pgsql.test generate-ini-pgsql
453
- GITEA_ROOT=${ CURDIR} GITEA_CONF=integrations/pgsql.ini ./integrations.pgsql.test
453
+ GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/pgsql.ini ./integrations.pgsql.test
454
454
455
455
.PHONY : test-pgsql\# %
456
456
test-pgsql\#% : integrations.pgsql.test generate-ini-pgsql
457
- GITEA_ROOT=${ CURDIR} GITEA_CONF=integrations/pgsql.ini ./integrations.pgsql.test -test.run $(subst .,/,$* )
457
+ GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/pgsql.ini ./integrations.pgsql.test -test.run $(subst .,/,$* )
458
458
459
459
.PHONY : test-pgsql-migration
460
460
test-pgsql-migration : migrations.pgsql.test generate-ini-pgsql
461
- GITEA_ROOT=${ CURDIR} GITEA_CONF=integrations/pgsql.ini ./migrations.pgsql.test
461
+ GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/pgsql.ini ./migrations.pgsql.test
462
462
463
463
generate-ini-mssql :
464
464
sed -e ' s|{{TEST_MSSQL_HOST}}|${TEST_MSSQL_HOST}|g' \
@@ -470,35 +470,35 @@ generate-ini-mssql:
470
470
471
471
.PHONY : test-mssql
472
472
test-mssql : integrations.mssql.test generate-ini-mssql
473
- GITEA_ROOT=${ CURDIR} GITEA_CONF=integrations/mssql.ini ./integrations.mssql.test
473
+ GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/mssql.ini ./integrations.mssql.test
474
474
475
475
.PHONY : test-mssql\# %
476
476
test-mssql\#% : integrations.mssql.test generate-ini-mssql
477
- GITEA_ROOT=${ CURDIR} GITEA_CONF=integrations/mssql.ini ./integrations.mssql.test -test.run $(subst .,/,$* )
477
+ GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/mssql.ini ./integrations.mssql.test -test.run $(subst .,/,$* )
478
478
479
479
.PHONY : test-mssql-migration
480
480
test-mssql-migration : migrations.mssql.test generate-ini-mssql
481
- GITEA_ROOT=${ CURDIR} GITEA_CONF=integrations/mssql.ini ./migrations.mssql.test -test.failfast
481
+ GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/mssql.ini ./migrations.mssql.test -test.failfast
482
482
483
483
.PHONY : bench-sqlite
484
484
bench-sqlite : integrations.sqlite.test generate-ini-sqlite
485
- GITEA_ROOT=${ CURDIR} GITEA_CONF=integrations/sqlite.ini ./integrations.sqlite.test -test.cpuprofile=cpu.out -test.run DontRunTests -test.bench .
485
+ GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/sqlite.ini ./integrations.sqlite.test -test.cpuprofile=cpu.out -test.run DontRunTests -test.bench .
486
486
487
487
.PHONY : bench-mysql
488
488
bench-mysql : integrations.mysql.test generate-ini-mysql
489
- GITEA_ROOT=${ CURDIR} GITEA_CONF=integrations/mysql.ini ./integrations.mysql.test -test.cpuprofile=cpu.out -test.run DontRunTests -test.bench .
489
+ GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/mysql.ini ./integrations.mysql.test -test.cpuprofile=cpu.out -test.run DontRunTests -test.bench .
490
490
491
491
.PHONY : bench-mssql
492
492
bench-mssql : integrations.mssql.test generate-ini-mssql
493
- GITEA_ROOT=${ CURDIR} GITEA_CONF=integrations/mssql.ini ./integrations.mssql.test -test.cpuprofile=cpu.out -test.run DontRunTests -test.bench .
493
+ GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/mssql.ini ./integrations.mssql.test -test.cpuprofile=cpu.out -test.run DontRunTests -test.bench .
494
494
495
495
.PHONY : bench-pgsql
496
496
bench-pgsql : integrations.pgsql.test generate-ini-pgsql
497
- GITEA_ROOT=${ CURDIR} GITEA_CONF=integrations/pgsql.ini ./integrations.pgsql.test -test.cpuprofile=cpu.out -test.run DontRunTests -test.bench .
497
+ GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/pgsql.ini ./integrations.pgsql.test -test.cpuprofile=cpu.out -test.run DontRunTests -test.bench .
498
498
499
499
.PHONY : integration-test-coverage
500
500
integration-test-coverage : integrations.cover.test generate-ini-mysql
501
- GITEA_ROOT=${ CURDIR} GITEA_CONF=integrations/mysql.ini ./integrations.cover.test -test.coverprofile=integration.coverage.out
501
+ GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/mysql.ini ./integrations.cover.test -test.coverprofile=integration.coverage.out
502
502
503
503
integrations.mysql.test : git-check $(GO_SOURCES )
504
504
$(GO ) test $(GOTESTFLAGS ) -mod=vendor -c code.gitea.io/gitea/integrations -o integrations.mysql.test
@@ -720,7 +720,7 @@ docker:
720
720
721
721
.PHONY : docker-build
722
722
docker-build :
723
- docker run -ti --rm -v $(CURDIR ) :/srv/app/src/code.gitea.io/gitea -w /srv/app/src/code.gitea.io/gitea -e TAGS=" bindata $( TAGS) " LDFLAGS=" $( LDFLAGS) " CGO_EXTRA_CFLAGS=" $( CGO_EXTRA_CFLAGS) " webhippie/golang:edge make clean build
723
+ docker run -ti --rm -v " $( CURDIR) :/srv/app/src/code.gitea.io/gitea" -w /srv/app/src/code.gitea.io/gitea -e TAGS=" bindata $( TAGS) " LDFLAGS=" $( LDFLAGS) " CGO_EXTRA_CFLAGS=" $( CGO_EXTRA_CFLAGS) " webhippie/golang:edge make clean build
724
724
725
725
# This endif closes the if at the top of the file
726
726
endif
0 commit comments