-
Notifications
You must be signed in to change notification settings - Fork 199
Expand file tree
/
Copy pathjustfile
More file actions
executable file
·80 lines (68 loc) · 2.32 KB
/
justfile
File metadata and controls
executable file
·80 lines (68 loc) · 2.32 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
set shell := ["bash", "-uc"]
# Just echo the purpose of this file
_default:
@echo "This file is used to automate some release tasks"
@echo "(running in `pwd`)"
@just --list
# Build locally without tests
build:
@echo "Building locally without tests"
./mvnw clean install -DskipTests -T1C
# Build locally without tests (fast, skipping docs, tests, revapi)
build-fast:
@echo "Building fast locally"
./mvnw clean install -Dquickly -T1.5C
# Build locally without tests (fast, with local maven repository)
build-fast-local repository=".repository":
@echo "Building fast locally with local repository"
./mvnw clean install -Dquickly -T1.5C -Dmaven.repo.local={{repository}}
# Build locally with tests
test:
@echo "Testing locally"
./mvnw clean verify
# Build on CI without tests
build-ci:
./mvnw -B -ntp -s .build/ci-maven-settings.xml clean install -DskipTests
# Test on CI with tests
test-ci:
./mvnw -B -ntp -s .build/ci-maven-settings.xml clean verify
# Update Pulsar Connector Configuration Documentation
update-pulsar-config-docs:
@echo "📝 Updating Pulsar connector configuration docs"
jbang .build/PulsarConfigDoc.java -d documentation/src/main/docs/pulsar/config
# Build documentation
build-docs:
#!/usr/bin/env bash
echo "📝 Building documentation"
./mvnw -B -ntp clean compile -pl documentation
cd documentation
pipenv install
pipenv run mkdocs build
# Serve documentation
serve-docs:
#!/usr/bin/env bash
echo "📝 Building documentation"
./mvnw -B -ntp clean compile -pl documentation
cd documentation
pipenv install
pipenv run mkdocs serve
# Deploy documentation
deploy-docs version:
#!/usr/bin/env bash
echo "📝 Deploying documentation to GitHub"
./mvnw -B -ntp clean compile -pl documentation
cd documentation
pipenv install
pipenv run mike deploy --update-aliases --push --remote origin {{version}} $(git merge-base --is-ancestor HEAD origin/main && echo 'latest' || echo '')
# Clear RevAPI justifications
clear-revapi:
#!/usr/bin/env bash
jbang .build/CompatibilityUtils.java clear
if [[ $(git diff --stat) != '' ]]; then
git add -A
git status
git commit -m "[POST-RELEASE] - Clearing breaking change justifications"
git push
else
echo "No justifications cleared"
fi