-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tomas Peterka
committed
Feb 6, 2024
1 parent
98b7c1d
commit e039862
Showing
14 changed files
with
317 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ readme = "README.md" | |
license.text = "MIT" | ||
authors = [{name = "Tomas Peterka", email = "[email protected]"},] | ||
dependencies = [ | ||
"click", | ||
"pygit2", | ||
"tomli; python_version < '3.11'", | ||
"pyyaml", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# make sure the binaries are available | ||
which git | ||
which envsubst | ||
which gira | ||
|
||
cd tests | ||
. run.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Tests | ||
|
||
Here are tests that deal with git repositories. The "remote" is TARed in remote/ | ||
folder and extracted at the begging of the test. Since file:// remotes must be | ||
specified with absolute path then we have the local-template repository where | ||
$GIRA_TEST_ROOT is being replaced (with pretty much just value of $PWD). | ||
|
||
|
||
## Modify remote | ||
|
||
We kept conveniently whole dep1 repository so you can just unTAR it, make commits | ||
and then TAR it again. All of this just to avoid having sub-repositories in gira | ||
repository. | ||
|
||
|
||
## Test workings | ||
|
||
Tests do `git init` and then make commits/changes so the .git repository does not | ||
need to be part of gira repository. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.poetry] | ||
name = "gira-test" | ||
version = "0.0.0" | ||
repository = "https://github.com/dronetag/gira" | ||
authors = [ | ||
"Tomas Peterka <[email protected]>", | ||
] | ||
description = "Dummy pytoml" | ||
readme = "README.md" | ||
license = "MIT" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
dep1 = "1.0.0" | ||
wheel = "*" | ||
pytest = {version="*", optional=true} | ||
|
||
[tool.poetry.extras] | ||
dev = ["wheel", "pytest"] | ||
|
||
[tool.gira.observe] | ||
dep1 = "file://${GIRA_TEST_ROOT}/remote/dep1/.git" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: gira_test_app | ||
description: >- | ||
Test of pubspec.yaml changes | ||
version: 0.0.0 | ||
homepage: https://www.dronetag.cz | ||
repository: https://github.com/dronetag/gira | ||
|
||
publish_to: none | ||
|
||
environment: | ||
sdk: ">=3.2.4 <4.0.0" | ||
flutter: ">=3.16.7" | ||
|
||
dependencies: | ||
analyzer: ^5.13.0 | ||
dep1: | ||
git: | ||
url: file:///${GIRA_TEST_ROOT}/remote/dep1/.git | ||
ref: v1.0.0 | ||
non-internal-dep2: ^0.9.3+5 | ||
|
||
gira: | ||
observe: | ||
dep1: "file:///${GIRA_TEST_ROOT}/remote/dep1/.git" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[build-system] | ||
requires = ["setuptools >= 61.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "gira-test" | ||
version = "0.0.0" | ||
requires-python = ">=3.8" | ||
description = "GIRA places JIRA tickets from your dependencies into your commit message" | ||
readme = "README.md" | ||
license.text = "MIT" | ||
authors = [{name = "Tomas Peterka", email = "[email protected]"},] | ||
dependencies = [ | ||
"click", | ||
"pygit2", | ||
"tomli; python_version < '3.11'", | ||
"pyyaml", | ||
"jira", | ||
"dep1==1.0.0", | ||
] | ||
|
||
[tool.gira.observe] | ||
dep1 = "file://${GIRA_TEST_ROOT}/remote/dep1/.git" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
manifest: | ||
version: 0.7 | ||
|
||
remotes: | ||
- name: local | ||
url-base: file://${GIRA_TEST_ROOT}/remote | ||
|
||
defaults: | ||
remote: local | ||
|
||
projects: | ||
- name: dep1 | ||
repo-path: libs/dep1 | ||
revision: v1.0.0 | ||
import: true | ||
|
||
gira: | ||
observe: | ||
dep1: "file://${GIRA_TEST_ROOT}/remote/dep1/.git" |
Binary file not shown.
Oops, something went wrong.