Skip to content

Commit 44a83a7

Browse files
authored
Merge pull request github#13879 from github/starcke/automodel-pack
Create separate automodel pack
2 parents 62c2316 + 361ae17 commit 44a83a7

File tree

49 files changed

+61
-10
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+61
-10
lines changed

codeql-workspace.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ provide:
44
- "*/ql/test/qlpack.yml"
55
- "*/ql/examples/qlpack.yml"
66
- "*/ql/consistency-queries/qlpack.yml"
7+
- "*/ql/automodel/src/qlpack.yml"
8+
- "*/ql/automodel/test/qlpack.yml"
79
- "shared/*/qlpack.yml"
810
- "cpp/ql/test/query-tests/Security/CWE/CWE-190/semmle/tainted/qlpack.yml"
911
- "go/ql/config/legacy-support/qlpack.yml"

csharp/ql/campaigns/Solorigate/publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
set -e
33

4-
SOLORIGATE_ROOT="$(dirname $0)"
4+
SOLORIGATE_ROOT="$(readlink -f "$(dirname $0)")"
55
WORKSPACE_ROOT="$SOLORIGATE_ROOT/../../../.."
66
GRPS="solorigate,-test"
77

java/ql/automodel/publish.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/sh
2+
set -e
3+
4+
AUTOMODEL_ROOT="$(readlink -f "$(dirname $0)")"
5+
WORKSPACE_ROOT="$AUTOMODEL_ROOT/../../.."
6+
GRPS="automodel,-test"
7+
8+
if [ -z "$CODEQL_DIST" ]; then
9+
echo "CODEQL_DIST not set"
10+
exit -1
11+
fi
12+
13+
cd "$AUTOMODEL_ROOT"
14+
echo Testing automodel queries
15+
"${CODEQL_DIST}/codeql" test run test
16+
17+
cd "$WORKSPACE_ROOT"
18+
19+
echo Preparing release
20+
"${CODEQL_DIST}/codeql" pack release --groups $GRPS
21+
22+
echo Publishing automodel
23+
"${CODEQL_DIST}/codeql" pack publish --groups $GRPS
24+
25+
echo Bumping versions
26+
"${CODEQL_DIST}/codeql" pack post-release --groups $GRPS
27+
28+
echo Automodel packs successfully published. Please commit and push the version changes.

0 commit comments

Comments
 (0)