-
Notifications
You must be signed in to change notification settings - Fork 179
/
justfile
executable file
·52 lines (44 loc) · 1.51 KB
/
justfile
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
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 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
# 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