Skip to content

Commit b22a51e

Browse files
committed
Add Kotlin check to CI
1 parent c392147 commit b22a51e

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.taskcluster.yml

+33
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,39 @@ tasks:
292292
293293
source: ${repository}/raw/${head_rev}/.taskcluster.yml
294294

295+
- taskId: {$eval: as_slugid("check_tree_sitter_kotlin")}
296+
dependencies:
297+
- {$eval: as_slugid("lint_test_task")}
298+
- {$eval: as_slugid("windows_test_task")}
299+
created: {$fromNow: ''}
300+
deadline: {$fromNow: '1 hour'}
301+
provisionerId: proj-relman
302+
workerType: ci
303+
payload:
304+
maxRunTime: 3600
305+
image: "rust:buster"
306+
command:
307+
- "/bin/bash"
308+
- "-cx"
309+
- "git clone --quiet ${repository} &&
310+
cd rust-code-analysis &&
311+
git -c advice.detachedHead=false checkout ${head_rev} &&
312+
./check-grammars-crates.sh tree-sitter-kotlin"
313+
cache:
314+
rust-code-analysis-mozilla-central-repository: /cache
315+
artifacts:
316+
public/json-diffs-and-minimal-tests-kotlin.tar.gz:
317+
expires: {$fromNow: '2 weeks'}
318+
path: /tmp/json-diffs-and-minimal-tests-kotlin.tar.gz
319+
type: file
320+
scopes:
321+
- "docker-worker:cache:rust-code-analysis-mozilla-central-repository"
322+
metadata:
323+
name: rust-code-analysis check tree-sitter-kotlin
324+
description: rust-code-analysis check tree-sitter-kotlin grammar
325+
326+
source: ${repository}/raw/${head_rev}/.taskcluster.yml
327+
295328
- taskId: {$eval: as_slugid("check_tree_sitter_python")}
296329
dependencies:
297330
- {$eval: as_slugid("lint_test_task")}

check-grammar-crate.py

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"tree-sitter-tsx": ["*.tsx"],
4545
"tree-sitter-typescript": ["*.ts", "*.jsw", "*.jsmw"],
4646
"tree-sitter-java": ["*.java"],
47+
"tree-sitter-kotlin": ["*.kt", "*.kts"],
4748
"tree-sitter-rust": ["*.rs"],
4849
"tree-sitter-python": ["*.py"],
4950
"tree-sitter-mozjs": ["*.js", "*.js2", "*.jsm", "*.mjs", "*.jsx"],

0 commit comments

Comments
 (0)