Do you wish to register an account?
API client for Kitsu.io, with optional Anime collection, and optional Anilist syncing.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 line
930B

  1. pipeline {
  2. agent none
  3. stages {
  4. stage('setup') {
  5. agent any
  6. steps {
  7. sh 'curl -sS https://getcomposer.org/installer | php'
  8. sh 'rm -rf ./vendor'
  9. sh 'rm -f composer.lock'
  10. sh 'php composer.phar install --ignore-platform-reqs'
  11. }
  12. }
  13. stage('PHP 7.4') {
  14. agent {
  15. docker {
  16. image 'php:7.4-alpine'
  17. args '-u root --privileged'
  18. }
  19. }
  20. steps {
  21. sh 'apk add --no-cache git'
  22. sh 'php ./vendor/bin/phpunit --colors=never'
  23. }
  24. }
  25. stage('Latest PHP') {
  26. agent {
  27. docker {
  28. image 'php:alpine'
  29. args '-u root --privileged'
  30. }
  31. }
  32. steps {
  33. sh 'apk add --no-cache git'
  34. sh 'php ./vendor/bin/phpunit --colors=never'
  35. }
  36. }
  37. stage('Coverage') {
  38. agent any
  39. steps {
  40. sh 'php composer.phar run-script coverage'
  41. step([
  42. $class: 'CloverPublisher',
  43. cloverReportDir: '',
  44. cloverReportFileName: 'build/logs/clover.xml',
  45. ])
  46. }
  47. }
  48. }
  49. }