Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/pd-store-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,15 @@ jobs:
run: |
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
PD_DIR=hugegraph-pd/apache-hugegraph-pd-$VERSION/
set +e
$TRAVIS_DIR/test-start-hugegraph-pd.sh $PD_DIR
EXIT=$?
set -e
if [ $EXIT -eq 77 ]; then
echo "::notice::PD startup tests skipped — required tools not available"
exit 0
fi
exit $EXIT

- name: Prepare env and service
run: |
Expand Down Expand Up @@ -173,7 +181,15 @@ jobs:
run: |
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
STORE_DIR=hugegraph-store/apache-hugegraph-store-$VERSION/
set +e
$TRAVIS_DIR/test-start-hugegraph-store.sh $STORE_DIR
EXIT=$?
set -e
if [ $EXIT -eq 77 ]; then
echo "::notice::Store startup tests skipped — required tools not available"
exit 0
fi
exit $EXIT

- name: Prepare env and service
run: |
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/server-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,15 @@ jobs:
mvn package -Dmaven.test.skip=true -pl hugegraph-server/hugegraph-dist -am -ntp
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
SERVER_DIR=hugegraph-server/apache-hugegraph-server-$VERSION/
set +e
$TRAVIS_DIR/test-start-hugegraph.sh $SERVER_DIR
EXIT=$?
set -e
if [ $EXIT -eq 77 ]; then
echo "::notice::Startup tests skipped — required tools not available"
exit 0
Comment thread
bitflicker64 marked this conversation as resolved.
Outdated
fi
exit $EXIT

- name: Run unit test
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ fi
for tool in lsof curl java; do
if ! command -v "$tool" >/dev/null 2>&1; then
echo "SKIP: required tool '$tool' not found — skipping test suite"
exit 0
exit 77
fi
done

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ fi
for tool in lsof curl java; do
if ! command -v "$tool" >/dev/null 2>&1; then
echo "SKIP: required tool '$tool' not found — skipping test suite"
exit 0
exit 77
fi
done

Expand All @@ -122,7 +122,7 @@ LIMIT_N=$(ulimit -n)
if [[ "$LIMIT_N" != "unlimited" ]]; then
if (( LIMIT_N < 1024 )); then
echo "SKIP: ulimit -n is $LIMIT_N — store requires >= 1024. Run: ulimit -n 1024"
exit 0
exit 77
fi
fi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ fi
for tool in lsof crontab curl java; do
if ! command -v "$tool" >/dev/null 2>&1; then
echo "SKIP: required tool '$tool' not found — skipping test suite"
exit 0
exit 77
fi
done

Expand Down
Loading