mirror of
https://github.com/ivabus/pantry
synced 2024-11-30 04:05:06 +03:00
daa83d1214
forgot arch needs which. sadly, my port to bkpyvenv didn't work cleanly, so shortest path for now
42 lines
1 KiB
YAML
42 lines
1 KiB
YAML
distributable:
|
|
url: https://opendev.org/opendev/git-review/archive/{{version}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
url: https://opendev.org/api/v1/repos/opendev/git-review/tags
|
|
match: /"name":"\d+\.\d+\.\d+"/
|
|
strip:
|
|
- /^"name":"/
|
|
- /"$/
|
|
|
|
dependencies:
|
|
python.org: ^3
|
|
linux:
|
|
gnu.org/which: '*'
|
|
|
|
build:
|
|
script: |
|
|
python-venv.py {{prefix}}/bin/git-review
|
|
|
|
{{prefix}}/venv/bin/pip install setuptools
|
|
|
|
provides:
|
|
- bin/git-review
|
|
|
|
test:
|
|
dependencies:
|
|
git-scm.org: '*'
|
|
working-directory: test
|
|
script:
|
|
# broken in 2.4.0
|
|
- run: git-review --version | tee /dev/stderr | grep -q -w '{{version}}'
|
|
if: <2.4.0 || >=2.4.1
|
|
|
|
- git init --initial-branch main
|
|
- git config user.name PkgxTestBot
|
|
- git config user.email PkgxTestBot@test.com
|
|
- git remote add gerrit https://github.com/pkgxdev/pkgx
|
|
- touch .git/hooks/commit-msg
|
|
- chmod +x .git/hooks/commit-msg
|
|
- git commit --message "Test commit" --allow-empty
|
|
- git-review --dry-run main | tee /dev/stderr | grep -q -w 'git push'
|