Skip to content

Commit

Permalink
Additional Laminas-CI configuration to upload coverage to code-cov
Browse files Browse the repository at this point in the history
  • Loading branch information
gsteel committed Apr 19, 2021
1 parent a31af2c commit f00cf5d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .laminas-ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extensions": [
"apcu",
"pcov"
],
"ini": [
"apc.enabled=1",
"apc.enable_cli=1"
],
"additional_checks": [
{
"name": "Coverage",
"job": {
"command": "vendor/bin/phpunit --coverage-clover coverage.xml"
}
}
]
}
11 changes: 11 additions & 0 deletions .laminas-ci/post-run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

# $1 = Exit Status of Job
# $2 = User
# $3 = WorkDir
# $4 = The JOB Json String

#JOB=$4
#PHP_VERSION=$(echo "${JOB}" | jq -r '.php')

bash <(curl -s https://codecov.io/bash)

0 comments on commit f00cf5d

Please sign in to comment.