Skip to content

Commit 3912266

Browse files
authored
chore: auto-publish gazelle module to BCR (#1247)
1 parent d573c60 commit 3912266

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed

.bcr/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@
1515
fixedReleaser:
1616
login: f0rmiga
1717
18+
moduleRoots: [".", "gazelle"]

.bcr/gazelle/metadata.template.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"homepage": "https://github.com/bazelbuild/rules_python",
3+
"maintainers": [
4+
{
5+
"name": "Richard Levasseur",
6+
"email": "[email protected]",
7+
"github": "rickeylev"
8+
},
9+
{
10+
"name": "Thulio Ferraz Assis",
11+
"email": "[email protected]",
12+
"github": "f0rmiga"
13+
}
14+
],
15+
"repository": [
16+
"github:bazelbuild/rules_python"
17+
],
18+
"versions": [],
19+
"yanked_versions": {}
20+
}

.bcr/gazelle/presubmit.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright 2023 The Bazel Authors. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
bcr_test_module:
16+
module_path: "../examples/build_file_generation"
17+
matrix:
18+
platform: ["debian11", "macos", "ubuntu2004", "windows"]
19+
tasks:
20+
run_tests:
21+
name: "Run test module"
22+
platform: ${{ platform }}
23+
build_targets:
24+
- "//..."
25+
- ":modules_map"
26+
test_targets:
27+
- "//..."

.bcr/gazelle/source.template.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"integrity": "",
3+
"strip_prefix": "{REPO}-{VERSION}/gazelle",
4+
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/rules_python-{TAG}.tar.gz"
5+
}

0 commit comments

Comments
 (0)