mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
+github.com/allure-framework/allure2 (#4907)
* new file: projects/github.com/allure-framework/allure2/package.yml * .
This commit is contained in:
parent
2f481f00f4
commit
893a5dfb5d
57
projects/github.com/allure-framework/allure2/package.yml
Normal file
57
projects/github.com/allure-framework/allure2/package.yml
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
distributable:
|
||||||
|
url: https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/{{version}}/allure-commandline-{{version}}.zip
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: allure-framework/allure2
|
||||||
|
|
||||||
|
warnings:
|
||||||
|
- vendored
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
openjdk.org: '*'
|
||||||
|
|
||||||
|
build:
|
||||||
|
working-directory: allure-{{version}}
|
||||||
|
script:
|
||||||
|
- rm -rf bin/*.bat
|
||||||
|
- run: mkdir -p bin libexec
|
||||||
|
working-directory: ${{prefix}}
|
||||||
|
- cp -r ./* {{prefix}}/libexec/
|
||||||
|
- run: ln -s ../libexec/bin/allure allure
|
||||||
|
working-directory: ${{prefix}}/bin
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/allure
|
||||||
|
|
||||||
|
test:
|
||||||
|
fixture: |
|
||||||
|
{
|
||||||
|
"uuid": "allure",
|
||||||
|
"name": "testReportGeneration",
|
||||||
|
"fullName": "org.pkgx.AllurePackage.testReportGeneration",
|
||||||
|
"status": "passed",
|
||||||
|
"stage": "finished",
|
||||||
|
"start": 1494857300486,
|
||||||
|
"stop": 1494857300492,
|
||||||
|
"labels": [
|
||||||
|
{
|
||||||
|
"name": "package",
|
||||||
|
"value": "org.pkgx"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "testClass",
|
||||||
|
"value": "AllurePackage"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "testMethod",
|
||||||
|
"value": "testReportGeneration"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
script:
|
||||||
|
- allure --version | grep {{version}}
|
||||||
|
- mkdir -p allure-results
|
||||||
|
- cp $FIXTURE allure-results/allure-result.json
|
||||||
|
- allure generate allure-results -o allure-report | grep 'Report successfully generated to allure-report'
|
||||||
|
- cat allure-report/widgets/summary.json | grep '"passed":1'
|
Loading…
Reference in a new issue