mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-27 09:18:58 +03:00
36 lines
No EOL
689 B
Bash
Executable file
36 lines
No EOL
689 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
set -x
|
|
|
|
echo "Starting AdGuard Home CI script"
|
|
|
|
# Print the current directory contents
|
|
ls -la
|
|
|
|
# Check versions and current directory
|
|
node -v
|
|
npm -v
|
|
go version
|
|
golangci-lint --version
|
|
|
|
# Run linter
|
|
golangci-lint run
|
|
|
|
# Run tests
|
|
go test -race -v -bench=. -coverprofile=coverage.txt -covermode=atomic ./...
|
|
|
|
# Make
|
|
make clean
|
|
make build/static/index.html
|
|
make
|
|
|
|
# if [[ -z "$(git status --porcelain)" ]]; then
|
|
# # Working directory clean
|
|
# echo "Git status is clean"
|
|
# else
|
|
# echo "Git status is not clean and contains uncommited changes"
|
|
# echo "Please make sure there are no changes"
|
|
# exit 1
|
|
# fi
|
|
|
|
echo "AdGuard Home CI script finished successfully" |