Skip to content

Commit

Permalink
Add GitLab CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
oldnomad committed Oct 10, 2023
1 parent 08f0fa1 commit 24bae6e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
image: debian:bookworm-slim

stages:
- test
- deploy

before_script:
- apt-get update -yqq
- apt-get install -yqq git make composer librsvg2-bin netpbm php-xdebug php-sqlite3 php-curl php-xml php-mbstring php-json php-zip php-intl

test-job:
stage: test
script:
- composer update
- composer tests
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: .coverage/cobertura.xml
untracked: false
when: on_success
expire_in: 30 days

deploy-job:
stage: deploy
only:
- tags
script:
- composer update --no-dev
- ./generate-icon.sh
- make appstore
artifacts:
paths:
- build/artifacts/appstore/calibre_opds.tar.gz
untracked: false
when: on_success
expire_in: 30 days
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<coverage pathCoverage="false">
<report>
<html outputDirectory=".coverage/html"/>
<xml outputDirectory=".coverage/xml"/>
<cobertura outputFile=".coverage/cobertura.xml"/>
</report>
</coverage>
<source>
Expand Down

0 comments on commit 24bae6e

Please sign in to comment.