-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
27 lines (22 loc) · 786 Bytes
/
Copy pathmakefile
File metadata and controls
27 lines (22 loc) · 786 Bytes
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
# Default values for environment variables
DEBUG ?= false
BASE_URL ?= http://localhost:3000
.PHONY: test pull-test pull-test-out
# Pull latest changes from main branch
pull:
git pull origin main
# Run k6 tests with environment variables
test:
DEBUG=$(DEBUG) BASE_URL=$(BASE_URL) k6 run main.js
# Pull and run tests in one command
pull-test: pull test
# Help command to show available targets
help:
@echo "Available commands:"
@echo " make pull - Pull latest changes from main branch"
@echo " make test - Run k6 tests"
@echo " make pull-and-test- Pull changes and run tests"
@echo ""
@echo "Environment variables:"
@echo " DEBUG - Debug mode (default: false)"
@echo " BASE_URL - Base URL for tests (default: http://localhost:3000)"