@@ -132,6 +132,15 @@ ifeq ($(filter $(TAGS_SPLIT),bindata),bindata)
132132 GO_SOURCES += $(BINDATA_DEST)
133133endif
134134
135+ <<<<<<< HEAD
136+ ====== =
137+ ifneq ($(NO_DEPS_PLAYWRIGHT ) ,1)
138+ PLAYWRIGHT_FLAGS += --with-deps
139+ endif
140+
141+ # To update swagger use: GO111MODULE=on go get -u github.com/go-swagger/go-swagger/cmd/swagger
142+ SWAGGER := $(GO ) run github.com/go-swagger/go-swagger/cmd/swagger
143+ >>>>>>> d2c9f5bba (Simplify Makefile)
135144SWAGGER_SPEC := templates/swagger/v1_json.tmpl
136145SWAGGER_SPEC_S_TMPL := s|"basePath": *"/api/v1"|"basePath": "{{AppSubUrl \| JSEscape \| Safe}}/api/v1"|g
137146SWAGGER_SPEC_S_JSON := s|"basePath": *"{{AppSubUrl \| JSEscape \| Safe}}/api/v1"|"basePath": "/api/v1"|g
@@ -501,20 +510,18 @@ test-e2e: test-e2e-pgsql
501510
502511.PHONY : test-e2e\# %
503512test-e2e\#% : test-e2e-pgsql\# %
504- echo " Why do I need this? "
513+ true
505514
506515# Can I share the database with integration tests? Is it cleaned up between tests?
507516.PHONY : test-e2e-pgsql
508517test-e2e-pgsql : build generate-ini-pgsql
509- npx playwright install --with-deps
510- GITEA_ROOT=" $( CURDIR) " ./$(EXECUTABLE ) web -c integrations/pgsql.ini --quiet & \
511- (wait $i && npx playwright test && killall gitea)
518+ npx playwright install $(PLAYWRIGHT_FLAGS )
519+ GITEA_ROOT=$(CURDIR ) GITEA_EXECUTABLE=$(EXECUTABLE ) ./tools/e2e/run_e2e.sh
512520
513521.PHONY : test-e2e-pgsql\# %
514522test-e2e-pgsql\#% : build generate-ini-pgsql
515- npx playwright install --with-deps
516- GITEA_ROOT=" $( CURDIR) " ./$(EXECUTABLE ) web -c integrations/pgsql.ini --quiet & \
517- (wait $i && npx playwright test $* && killall gitea)
523+ npx playwright install $(PLAYWRIGHT_FLAGS )
524+ GITEA_ROOT=$(CURDIR ) GITEA_EXECUTABLE=$(EXECUTABLE ) E2E_TESTS=$* ./tools/e2e/run_e2e.sh
518525
519526.PHONY : bench-sqlite
520527bench-sqlite : integrations.sqlite.test generate-ini-sqlite
0 commit comments