Skip to content

Commit

Permalink
Fixes #2, adds phar to build process and releases (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsdeBlaauw authored Jan 21, 2019
1 parent b9e36e4 commit f4a5fb7
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 16 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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
46 changes: 31 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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/
- 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
Empty file added .travis/.gitkeep
Empty file.
Binary file added .travis/secrets.tar.enc
Binary file not shown.
15 changes: 15 additions & 0 deletions box.json.dist
Original file line number Diff line number Diff line change
@@ -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"
}
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
}
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.4"
"squizlabs/php_codesniffer": "^3.4",
"kherge/box": "~2.0"
}
}

0 comments on commit f4a5fb7

Please sign in to comment.