Skip to content

Commit

Permalink
Address comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
starcke committed Aug 4, 2023
1 parent e7ca233 commit 3ef82c1
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 4 deletions.
3 changes: 2 additions & 1 deletion codeql-workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ provide:
- "*/ql/test/qlpack.yml"
- "*/ql/examples/qlpack.yml"
- "*/ql/consistency-queries/qlpack.yml"
- "*/ql/automodel/qlpack.yml"
- "*/ql/automodel/src/qlpack.yml"
- "*/ql/automodel/test/qlpack.yml"
- "shared/*/qlpack.yml"
- "cpp/ql/test/query-tests/Security/CWE/CWE-190/semmle/tainted/qlpack.yml"
- "go/ql/config/legacy-support/qlpack.yml"
Expand Down
28 changes: 28 additions & 0 deletions java/ql/automodel/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/sh
set -e

AUTOMODEL_ROOT="$(dirname $0)"
WORKSPACE_ROOT="$AUTOMODEL_ROOT/../../../.."
GRPS="automodel,-test"

if [ -z "$CODEQL_DIST" ]; then
echo "CODEQL_DIST not set"
exit -1
fi

cd "$AUTOMODEL_ROOT"
echo Testing automodel queries
"${CODEQL_DIST}/codeql" test run test

cd "$WORKSPACE_ROOT"

echo Preparing release
"${CODEQL_DIST}/codeql" pack release --groups $GRPS

echo Publishing automodel
"${CODEQL_DIST}/codeql" pack publish --groups $GRPS

echo Bumping versions
"${CODEQL_DIST}/codeql" pack post-release --groups $GRPS

echo Automodel packs successfully published. Please commit and push the version changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: codeql/java-automodel-queries
version: 0.0.1
version: 0.0.1-dev
groups:
- java
- automodel
dependencies:
codeql/java-all: ${workspace}
extractor: java
tests: test
warnOnImplicitThis: true
12 changes: 12 additions & 0 deletions java/ql/automodel/test/qlpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: codeql/java-automodel-tests
version: 0.0.1-dev
groups:
- java
- automodel
- test
dependencies:
codeql/java-all: ${workspace}
codeql/java-automodel-queries: ${workspace}
extractor: java
tests: .
warnOnImplicitThis: true

0 comments on commit 3ef82c1

Please sign in to comment.