Skip to content

Commit

Permalink
working tests for Pulsar CLI tools
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Paul <[email protected]>
  • Loading branch information
MickeyPvX committed Dec 13, 2024
1 parent d3eb5f0 commit 5531ce8
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions apache-pulsar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,19 @@ pipeline:

- name: Install
runs: |
dest="${{targets.destdir}}/usr/share/java/pulsar"
mkdir -p "${dest}" "${{targets.destdir}}"/usr/bin
dest=${{targets.contextdir}}/usr/share/java/pulsar
mkdir -p ${dest}
tar -zxf ./distribution/server/target/${{package.name}}-${{package.version}}-bin.tar.gz -C "${dest}" --strip-components=1
tar -zxf ./distribution/server/target/${{package.name}}-${{package.version}}-bin.tar.gz -C ${dest} --strip-components=1
rm -rf ${dest}/bin/*.cmd
- uses: strip

subpackages:
- name: ${{package.name}}-compat
pipeline:
- runs: ln -s /usr/share/java/pulsar ${{targets.contextdir}}/pulsar

update:
enabled: true
github:
Expand All @@ -48,19 +53,23 @@ test:
environment:
contents:
packages:
- bash
- maven
- openjdk-17
- openjdk-17-default-jvm
pipeline:
- name: Test that all binaries are at least installed
- name: Test that all CLI tools are at least installed
runs: |
export PATH=/usr/share/java/pulsar/bin:$PATH
bookkeeper --help
pulsar --help
pulsar-admin --help
pulsar-client --help
pulsar-daemon --help
pulsar-managed-ledger-admin --help
pulsar-daemon --help | grep 'Usage: pulsar-daemon'
pulsar-perf --help
pulsar-shell --help
pulsar-shell --help | grep 'Usage: pulsar-shell'
- name: Run Maven unit tests from source repo
runs: |
./mvnw test
# - name: Run Maven unit tests from source repo
# runs: |
# mvn test

0 comments on commit 5531ce8

Please sign in to comment.