Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (42 loc) · 1.37 KB
/
Copy pathMakefile
File metadata and controls
53 lines (42 loc) · 1.37 KB
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
# Makefile for cisco-ios-xe-wireless-go SDK package
#
# This Makefile provides direct access to specialized build and test scripts
# located in the scripts/ directory for focused development tasks.
#
# For comprehensive help, use: make help
# Every script takes no arguments; see docs/SCRIPT_REFERENCE.md for details.
.PHONY: help deps lint test-unit test-unit-coverage test-integration \
build pre-commit-install pre-commit-test pre-commit-uninstall
# Default target
help:
@./scripts/help.sh
# Install development dependencies
deps:
@./scripts/install_dependencies.sh
# Run linting tools
lint:
@./scripts/lint.sh
# Run unit tests only
test-unit:
@./scripts/test_unit.sh
# Run unit tests with coverage analysis
test-unit-coverage:
@./scripts/test_coverage.sh
# Run integration tests (requires environment variables)
test-integration:
@./scripts/test_integration.sh
# Verify build compilation
build:
@go build ./...
# Pre-commit Hook Management
# Install the pre-commit hooks declared in .pre-commit-config.yaml
pre-commit-install:
@command -v pre-commit >/dev/null 2>&1 || \
{ echo "✗ pre-commit not found - see https://pre-commit.com/#install"; exit 1; }
@pre-commit install --allow-missing-config
# Run every hook across the whole tree without committing
pre-commit-test:
@pre-commit run --all-files
# Uninstall pre-commit hook
pre-commit-uninstall:
@pre-commit uninstall