From aacb14b928d0f2663486f34b2b61e4aa181ee5c1 Mon Sep 17 00:00:00 2001 From: Hannes Papenberg Date: Tue, 15 Oct 2019 16:47:26 +0200 Subject: [PATCH 1/3] Signing drone.yml --- .drone.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.drone.yml b/.drone.yml index 02ff64d..1013915 100644 --- a/.drone.yml +++ b/.drone.yml @@ -25,3 +25,8 @@ steps: - echo $(date) - ./administrator/components/com_patchtester/vendor/bin/crowdin --upload - echo $(date) +--- +kind: signature +hmac: 2ee0c3d69f18776a37b86955aac82f5c9a37194dd03e9f8fa767d2a5339f9735 + +... From 642c3ec3a7f81521b9519cc3d6342b697e7a7076 Mon Sep 17 00:00:00 2001 From: Hannes Papenberg Date: Tue, 15 Oct 2019 16:50:19 +0200 Subject: [PATCH 2/3] Removing Travis implementation Fixing PHP requirement in composer.json --- .travis.yml | 25 ------------------------- composer.json | 3 +-- composer.lock | 8 +++----- 3 files changed, 4 insertions(+), 32 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f4ae49a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -# Forces new Travis-CI Infrastructure -sudo: false - -language: php - -env: - global: - - secure: DW+TBREK61G9CahBZ+3FoMD8GvsGyZHPNW0lTR0gpKmGvmjkJXWxgiB2ZlnBMIPTq3CTbV0vZa/XNHELlhjHLMUCz1aQJ+07JnNt+nVvhmpUgS1C2Nci8jpYP6hjDadOU+D4b90YclrrQDcYbeCHuoLW2kiqiuB+DXyoCWEJXls= - - RUN_PHPCS="no" - - UPDATE_CROWDIN="no" - -matrix: - include: - - php: 5.6 - env: RUN_PHPCS="yes" - - php: 7.0 - env: UPDATE_CROWDIN="yes" - -before_script: - # Make sure all dev dependencies are installed - - composer install - -script: - - if [[ $RUN_PHPCS == "yes" ]]; then administrator/components/com_patchtester/vendor/bin/phpcs --report=full --extensions=php -p --standard=build/phpcs/Joomla --ignore=./*tmpl/*,administrator/components/com_patchtester/vendor/* administrator/components/com_patchtester; fi - - if [[ $UPDATE_CROWDIN == "yes" && $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_BRANCH == "master" ]]; then administrator/components/com_patchtester/vendor/bin/crowdin --upload; fi diff --git a/composer.json b/composer.json index dbd505f..5210278 100644 --- a/composer.json +++ b/composer.json @@ -9,10 +9,9 @@ "vendor-dir": "administrator/components/com_patchtester/vendor" }, "require": { - "php": "^5.3.10|^7.0" + "php": "^7.2" }, "require-dev": { - "php": "^5.6|^7.0", "joomla/crowdin-sync": "dev-master", "joomla/cms-coding-standards": "~2.0.0-alpha2@dev", "joomla/coding-standards": "~3.0@dev", diff --git a/composer.lock b/composer.lock index dbf2f1f..863ec10 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "8d399762bedfc6b5beec9b2d9b469030", + "content-hash": "ea3333f86c6c0231db3f7c0611ade016", "packages": [], "packages-dev": [ { @@ -1147,9 +1147,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "^5.3.10|^7.0" + "php": "^7.2" }, - "platform-dev": { - "php": "^5.6|^7.0" - } + "platform-dev": [] } From 6e8efcd90c39637203238023da3cb12a72aeffe9 Mon Sep 17 00:00:00 2001 From: Hannes Papenberg Date: Wed, 16 Oct 2019 09:37:08 +0200 Subject: [PATCH 3/3] Adding conditions for crowdin --- .drone.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 1013915..166c83f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -21,12 +21,17 @@ steps: - name: crowdin image: joomlaprojects/docker-images:php7.2 + environment: + CROWDIN_API_KEY: + from_secret: CROWDIN_API_KEY commands: - echo $(date) - ./administrator/components/com_patchtester/vendor/bin/crowdin --upload - echo $(date) + when: + event: push --- kind: signature -hmac: 2ee0c3d69f18776a37b86955aac82f5c9a37194dd03e9f8fa767d2a5339f9735 +hmac: db121d6418e6f0702b311cce34d0a0dd12a4b88814138a4d1d02c1e6189e9d43 ...