File tree Expand file tree Collapse file tree 2 files changed +11
-20
lines changed Expand file tree Collapse file tree 2 files changed +11
-20
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/sh
1
+ #! /bin/bash
2
2
3
- warning () {
4
- # shellcheck disable=2028
5
- echo " \\ e[1;33m $1 "
3
+ handle_failure () {
4
+ echo " ❌ Error: $1 failed! "
5
+ exit 1
6
6
}
7
7
8
- alertMessages () {
9
- warning " One or more $1 are failing."
10
- warning " Please fix those $1 before pushing your branch"
11
- }
8
+ echo " 🔍 Running lint checks..."
9
+ make lint || handle_failure " lint"
12
10
13
- if make lint; then
14
- if make test-coverage; then
15
- exit 0
16
- else
17
- alertMessages " unit tests"
18
- exit 1
19
- fi
20
- else
21
- alertMessages " linter checks"
22
- exit 1
23
- fi
11
+ echo " 🧪 Running test coverage..."
12
+ make test-coverage || handle_failure " test-coverage"
13
+
14
+ echo " ✅ All checks passed successfully!"
Original file line number Diff line number Diff line change 46
46
47
47
.PHONY : test-coverage
48
48
test-coverage :
49
- @docker compose run --rm -v ${ROOT} :/app \
49
+ @docker compose run --rm -T - v ${ROOT} :/app \
50
50
--name ${TEST_CONTAINER_NAME} ${APP_NAME} \
51
51
/bin/bash -c " pytest --cov=validate_docbr/"
52
52
You can’t perform that action at this time.
0 commit comments