Commit 7f66ac49 authored by Tino Goratsch's avatar Tino Goratsch

remove the manual notification of packagist

parent c415ab4a
Pipeline #41700024 passed with stages
in 3 minutes and 11 seconds
...@@ -8,9 +8,9 @@ stages: ...@@ -8,9 +8,9 @@ stages:
- test - test
- static-analysis - static-analysis
- deploy - deploy
- post-deploy # - post-deploy
.php-base: &php-base .php-base:
cache: cache:
key: $CI_COMMIT_REF_NAME key: $CI_COMMIT_REF_NAME
paths: paths:
...@@ -20,8 +20,8 @@ stages: ...@@ -20,8 +20,8 @@ stages:
before_script: before_script:
- bash ./build/gitlab/before_script.sh > /dev/null - bash ./build/gitlab/before_script.sh > /dev/null
test:php71-unit: &php-unit-base test:php71-unit:
<<: *php-base extends: .php-base
stage: test stage: test
script: script:
- composer install -n - composer install -n
...@@ -29,19 +29,19 @@ test:php71-unit: &php-unit-base ...@@ -29,19 +29,19 @@ test:php71-unit: &php-unit-base
coverage: '/^\s*Lines:\s*\d+.\d+\%/' coverage: '/^\s*Lines:\s*\d+.\d+\%/'
test:php72-unit: test:php72-unit:
<<: *php-unit-base extends: test:php71-unit
image: registry.gitlab.com/acp3/php-docker:7.2 image: registry.gitlab.com/acp3/php-docker:7.2
coverage: ~ coverage: ~
static-analysis:phpcs: static-analysis:phpcs:
<<: *php-base extends: .php-base
stage: static-analysis stage: static-analysis
script: script:
- composer install -n - composer install -n
- composer run-script lint - composer run-script lint
static-analysis:phpstan: static-analysis:phpstan:
<<: *php-base extends: .php-base
stage: static-analysis stage: static-analysis
script: script:
- composer install -n - composer install -n
...@@ -83,7 +83,7 @@ deploy:subtree-split: ...@@ -83,7 +83,7 @@ deploy:subtree-split:
- gitsplit --ref "${CI_COMMIT_REF_NAME}" - gitsplit --ref "${CI_COMMIT_REF_NAME}"
deploy:generate-artifact: deploy:generate-artifact:
<<: *php-base extends: .php-base
stage: deploy stage: deploy
cache: cache:
key: $CI_COMMIT_REF_NAME key: $CI_COMMIT_REF_NAME
...@@ -119,16 +119,6 @@ deploy:generate-artifact: ...@@ -119,16 +119,6 @@ deploy:generate-artifact:
only: only:
- tags - tags
post-deploy:notify-packagist: &post-deploy-base
stage: post-deploy
before_script:
- bash ./build/gitlab/before_script.sh > /dev/null
script:
- bash ./build/gitlab/notify_packagist.sh
only:
- tags
- schedules
#post-deploy:update-version-check: #post-deploy:update-version-check:
# <<: *post-deploy-base # <<: *post-deploy-base
# script: # script:
......
#!/usr/bin/env bash
which curl || (apt-get install curl -y)
declare -a repositories
repositories+=('https://gitlab.com/ACP3/core.git')
repositories+=('https://gitlab.com/ACP3/module-acp.git')
repositories+=('https://gitlab.com/ACP3/module-articles.git')
repositories+=('https://gitlab.com/ACP3/module-audit-log.git')
repositories+=('https://gitlab.com/ACP3/module-captcha.git')
repositories+=('https://gitlab.com/ACP3/module-categories.git')
repositories+=('https://gitlab.com/ACP3/module-comments.git')
repositories+=('https://gitlab.com/ACP3/module-contact.git')
repositories+=('https://gitlab.com/ACP3/module-emoticons.git')
repositories+=('https://gitlab.com/ACP3/module-errors.git')
repositories+=('https://gitlab.com/ACP3/module-feeds.git')
repositories+=('https://gitlab.com/ACP3/module-filemanager.git')
repositories+=('https://gitlab.com/ACP3/module-files.git')
repositories+=('https://gitlab.com/ACP3/module-gallery.git')
repositories+=('https://gitlab.com/ACP3/module-guestbook.git')
repositories+=('https://gitlab.com/ACP3/module-menus.git')
repositories+=('https://gitlab.com/ACP3/module-news.git')
repositories+=('https://gitlab.com/ACP3/module-newsletter.git')
repositories+=('https://gitlab.com/ACP3/module-permissions.git')
repositories+=('https://gitlab.com/ACP3/module-polls.git')
repositories+=('https://gitlab.com/ACP3/module-search.git')
repositories+=('https://gitlab.com/ACP3/module-seo.git')
repositories+=('https://gitlab.com/ACP3/module-social-sharing.git')
repositories+=('https://gitlab.com/ACP3/module-system.git')
repositories+=('https://gitlab.com/ACP3/module-users.git')
repositories+=('https://gitlab.com/ACP3/module-wysiwyg-ckeditor.git')
repositories+=('https://gitlab.com/ACP3/module-wysiwyg-tinymce.git')
repositories+=('https://gitlab.com/ACP3/setup.git')
repositories+=('https://gitlab.com/ACP3/test.git')
repositories+=('https://gitlab.com/ACP3/theme-default.git')
for i in "${!repositories[@]}"
do
echo ${repositories[$i]}
curl -s -XPOST -H'content-type:application/json' "https://packagist.org/api/update-package?username=${PACKAGIST_USER_NAME}&apiToken=${PACKAGIST_API_TOKEN}" -d"{\"repository\":{\"url\":\"${repositories[$i]}\"}}"
echo "\n"
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment