Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save josefglatz/3a918b0fe259db7ad9c0ec37b56920ed to your computer and use it in GitHub Desktop.
Save josefglatz/3a918b0fe259db7ad9c0ec37b56920ed to your computer and use it in GitHub Desktop.
GitLab CI TYPO3 Deprecations Check with latest version usage of Tuurlijk/typo3scan
checkDeprecations:
stage: test
image: edbizarro/gitlab-ci-pipeline-php:7.2
before_script:
- 'which wget || ( sudo apt-get update -y && sudo apt-get install wget -y )'
- cd $CI_PROJECT_DIR/
- mkdir -p Build/Report/Deprecations
- cd $CI_PROJECT_DIR/app
- curl -s https://api.github.com/repos/Tuurlijk/typo3scan/releases/latest | grep "browser_download_url.*phar" | cut '-d' ':' '-f' '2,3' | tr '-d' '\"' | wget -qi -
- chmod +x typo3scan.phar
- php ./typo3scan.phar -v
script:
- cd $CI_PROJECT_DIR/app
- for d in ext/*/ ; do (php ./typo3scan.phar scan --target 7 --format markdown $d > $CI_PROJECT_DIR/Build/Report/Deprecations/v7-$(basename $d).md); done
- for d in ext/*/ ; do (php ./typo3scan.phar scan --target 8 --format markdown $d > $CI_PROJECT_DIR/Build/Report/Deprecations/v8-$(basename $d).md); done
- for d in ext/*/ ; do (php ./typo3scan.phar scan --target 9 --format markdown $d > $CI_PROJECT_DIR/Build/Report/Deprecations/v9-$(basename $d).md); done
- for d in ext/*/ ; do (php ./typo3scan.phar scan --target 7 --format html $d > $CI_PROJECT_DIR/Build/Report/Deprecations/v7-$(basename $d).html); done
- for d in ext/*/ ; do (php ./typo3scan.phar scan --target 8 --format html $d > $CI_PROJECT_DIR/Build/Report/Deprecations/v8-$(basename $d).html); done
- for d in ext/*/ ; do (php ./typo3scan.phar scan --target 9 --format html $d > $CI_PROJECT_DIR/Build/Report/Deprecations/v9-$(basename $d).html); done
artifacts:
when: on_success
expire_in: 7 days
paths:
- Build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment