From f4a5fb7c4889417e45fb0c878c0f33f64c7e8d34 Mon Sep 17 00:00:00 2001 From: Niels de Blaauw Date: Mon, 21 Jan 2019 20:33:10 +0100 Subject: [PATCH] Fixes #2, adds phar to build process and releases (#10) --- .gitignore | 4 ++++ .travis.yml | 46 +++++++++++++++++++++++++++------------- .travis/.gitkeep | 0 .travis/secrets.tar.enc | Bin 0 -> 5136 bytes box.json.dist | 15 +++++++++++++ composer.json | 3 ++- 6 files changed, 52 insertions(+), 16 deletions(-) create mode 100644 .travis/.gitkeep create mode 100644 .travis/secrets.tar.enc create mode 100644 box.json.dist diff --git a/.gitignore b/.gitignore index c55784d..d3a3245 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ composer.lock /vendor/ +/bin/php-doc-check.phar +/bin/php-doc-check.phar.pubkey +/.travis/php-doc-check-phar-private.pem +/.travis/secrets.tar \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 252fd5f..42959d9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,37 @@ language: php - -php: - - 7.0 - - 7.1 - - 7.2 - - 7.3 - - nightly - matrix: fast_finish: true + include: + - php: '7.0' + - php: '7.1' + - php: '7.2' + env: + - EXECUTE_DEPLOYMENT=true + - php: '7.3' + - php: nightly allow_failures: - - php: nightly - + - php: nightly install: - - composer install --prefer-dist - +- composer install --prefer-dist --no-interaction --no-progress --no-suggest script: - - composer validate - - vendor/bin/phpcs - - ./bin/php-doc-check -d ./ --exclude vendor/ \ No newline at end of file +- composer validate +- vendor/bin/phpcs +- "./bin/php-doc-check -d ./ --exclude vendor/" +- ls .travis/ +- vendor/bin/box build +- "php ./bin/php-doc-check.phar -d ./ --exclude vendor/" +before_install: + - openssl aes-256-cbc -K $encrypted_58878b370333_key -iv $encrypted_58878b370333_iv -in .travis/secrets.tar.enc -out .travis/secrets.tar -d + - tar xvf .travis/secrets.tar -C .travis +deploy: + provider: releases + skip_cleanup: true + api_key: + secure: ojBG9y3UL202hOM8Pzs8sNidw6wFWe0u+3dO6hIbCbbAE2QZ/PsQtNURC4xT2BgBri8/dkYiUh4nlrB/+9ai/S/rSp3SlHaInfT77uwomnlMDYxi4Cic2PJ1t75NnDlTD06BSttCLzN6WwrUE6E2CVWe3jVaduNuutee3IzODFXZOJQSs34KWOdpXKlTIoaBjREQsJyM2G3hhSFVT6pUtb4jLaVJ/vWT7158iyjwMr9x8Xn9t4Nh6iOuK5wkkKuV+N2QQMZD4whMfyLU2IwszgeWZ2ZK19TGS69vuESkwwDkZof0PuNuCFIWOTN/20QyuKCSllBxUX0AoOHlU0TY1ipi+TRl4DGVDnYFXHDrG1P/KfF9FscttmkP63hS7XTkEtxzidPqHeg5prh00zeMdhoRJINiM6sPsy4Vf8rS8GYD+IUbUIHEbmSYvYOrs7WFeULn328E9OAa8RCvL0DycvZNsEGqabnInr5Jvp8VnEfpoDkkxB9enci+JSYoCAKHKxheLdbBLNb2B5X5Rhhs7lleV1vNe1Ir/30PlVeWg5GRNpkzVhAlTupnkS1sKKmt8MpP4s3OEBvGcy7POMmIJZ9tMXk7YkfpeQBM0OXhBhZPGj1FGtodaTlyABvGRtuILNoSpQALkzS1eIkwDbBQd/X4VDIsvKauKJ/tCku9fq0= + file: + - bin/php-doc-check.phar + - bin/php-doc-check.phar.pubkey + on: + tags: true + condition: "$EXECUTE_DEPLOYMENT" + repo: NielsdeBlaauw/php-doc-check diff --git a/.travis/.gitkeep b/.travis/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/.travis/secrets.tar.enc b/.travis/secrets.tar.enc new file mode 100644 index 0000000000000000000000000000000000000000..886da6bc948cfcf38147893608bcdc66a29b75b6 GIT binary patch literal 5136 zcmV+r6z}UnN!L_u5dp<*MUsLui&+;W#C-&%NPNJ7HStLu(X*W)2{ugM0r@bUEY(m8 zI{>cfq91V|O*}UV;KFi*Q@cY7yc3P%caF6!vqf>3lU@t$^z4U@qIKX&F94ckPaSK- z%L7m=zYFJ}c<`Cze|=lW2#-(Vz!1qpY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y_)dx57$bS<>WtgJmWq}TWt_odCWlt5YZS996@GJF% zEJ!XV#a0gV7ILTa`0Or@Y+jO`Stji?{`z_CX&iDaXJ1H}n-j?0wh}oAyIswbZR-F? z%@1zGp)ujb8J=Q3c#;VH<7#y$s7TEE;KHUxY?~h=lm+1`Uu$u+EU@&{CbxUEKGXFL zk`UzxtIeinmNmv^`>7K=zp&nR!n7i6_%m&l!rbQLYLJ5L5A8bNn7($5f+9ra3<5`< zw)V&ypwxro_jWJIc*ri;JZvLU0Zf=wH@V&SpF~5pAJO}MuambeG!9Jlg&pZW^q>{6 zZy}Sf2oV|6#bHz`v5!l241QOTTI}0acPrYBpjax9ho%+bqdzzfNE3a)M4>Cd%h!L} znCzV*x2@4DO|bxx%V?Hj+~pUI?9tQex}L(gN{qAD^cm$c#*8MO0hWg36yAm@ptf%|Trvi`2F@;S2QO-CJOMlI_o1^T%>3`LF~+13gS-#82a2y&^%4_WT*@uJUY)R{ zjYjj#!@IWz7G^ko<=>~!%2}B{>)OsBS}Q|*_LT~>C!V6--@vhA z#0uBHGAh@Ukwb;G*4dB;;IF@!#=VU9x~orO)o9V^NncNVPTW~D(K}Okm6$&;Ee@r3 zwd|HQd~0XNlJ>4X0xq*yFj>t7Z6IL&zLZZwX}&pD=lb7~v$RGJCb{KWHd>-`bji|D zY?@EO^W|>mbi#ykZo%TG34fG?> zFDyU$pUE2>YXn9+>6Oi16Q2Ms&N5aI8vS*oGr{UGSt7#$vaHVIrPq9jFmvA;j=d%SS2n`LK4G5ra`=ZiO|8)?f(?8C literal 0 HcmV?d00001 diff --git a/box.json.dist b/box.json.dist new file mode 100644 index 0000000..0eb327e --- /dev/null +++ b/box.json.dist @@ -0,0 +1,15 @@ +{ + "chmod": "0755", + "main": "bin/php-doc-check", + "output": "bin/php-doc-check.phar", + "directories": ["src"], + "finder": [ + { + "name": "*.php", + "in": "vendor" + } + ], + "stub": true, + "algorithm": "OPENSSL", + "key": ".travis/php-doc-check-phar-private.pem" +} \ No newline at end of file diff --git a/composer.json b/composer.json index 49a472f..0c33cc7 100644 --- a/composer.json +++ b/composer.json @@ -23,6 +23,7 @@ } }, "require-dev": { - "squizlabs/php_codesniffer": "^3.4" + "squizlabs/php_codesniffer": "^3.4", + "kherge/box": "~2.0" } }