Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

Commit

Permalink
Auto-building PHAR file (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis authored Apr 22, 2021
1 parent 1b00f49 commit 375a4bc
Show file tree
Hide file tree
Showing 8 changed files with 6,576 additions and 9 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@
build
vendor
phpunit.xml
composer.lock
*.cache
18 changes: 12 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,23 @@ jobs:
- php: 8.0
- php: nightly

env:
matrix:
- JBZOO_COMPOSER_UPDATE_FLAGS="--prefer-lowest --prefer-stable"
- JBZOO_COMPOSER_UPDATE_FLAGS=""

before_script:
- composer self-update

script:
- make update --no-print-directory
- make build --no-print-directory
- make test-all --no-print-directory

after_script:
- make report-coveralls

deploy:
provider: releases
token:
secure: rhU9LVWAlMfJgpW87Mptx4GBSPZn7/I/wAEqmsIFez2XXthfR3KrMrAydlovwn0fQvbwYsipSW7Bi0mwxhUPlK7BvoMG7LhnsPGEwOWQ6vHNWPhwd1tb36pbgvT+V2IUXQ00Yo6H86oQHL732F0d1yRyMvkoJiPm+k3zyU/7czlVvcuPuW6RND0ViUlDbfDXj72Re8dYikBUZ0laqjaR6SaJmK4pvdeYqcz5+dN3zqa4AWd1KeAxptLNMechT6m2Wc+vYpFLvkWgdtWVQfnFksw8ZXxIaYe5kwCVVcu58YytyalMJHpXpC0d2ksjDHL4SFxVwH+xWXPw3iVnT4enuG2P+tAslcKelY8gdYNlmke3+8y98r/HL6e6V5l0qg+YqnmSuPeX30/jeUVrEvAo6xcZ24DBAy83HhS9X75NSTDfTngoZ0rZcX+VrzF/nnNnq3nWdLmbVKYuIGHd3zcNHSa2IZovnyK0Xvc5mY9vwKvJjtqkfXXpUbRkgnOwjzajU/6p8K/RuThY8/vRze36GtMs0BNu8qarH5RCcPmh7d/oCh3ExF581Offut8lSykDGA41iPOUaCP56i7Ev2iX4A0vSbkCcxuXV+zg/1Xo0WQ9VmLrXcHn/rnq39/oR9sz4rOfMRNR+I9MccyEsQtWvMuiMOB2EhyMSdzEm5h6Q5Q=
file: "./build/toolbox-ci.phar"
skip_cleanup: true
on:
tags: true
branch: master
php: 7.2
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@
# @link https://github.com/JBZoo/Toolbox-CI
#

.PHONY: build

ifneq (, $(wildcard ./vendor/jbzoo/codestyle/src/init.Makefile))
include ./vendor/jbzoo/codestyle/src/init.Makefile
endif

build: ##@Project Install all 3rd party dependencies
$(call title,"Install/Update all 3rd party dependencies")
@composer install --optimize-autoloader --no-progress
@make build-phar


update: ##@Project Install/Update all 3rd party dependencies
$(call title,"Install/Update all 3rd party dependencies")
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

```sh
composer require jbzoo/toolbox-ci

# OR use phar file.
# Replace <VERSION> to the latest version. See releases page or badge above
wget https://github.com/JBZoo/Toolbox-CI/releases/download/<VERSION>/toolbox-ci.phar
```


Expand Down Expand Up @@ -63,7 +67,7 @@ php ./vendor/bin/toolbox-ci convert:map
### Unit tests and check code style

```sh
make update
make build
make test-all
```

Expand Down
28 changes: 28 additions & 0 deletions box.json.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"banner" : [
"JBZoo Toolbox - Toolbox-CI",
"",
"This file is part of the JBZoo Toolbox project.",
"For the full copyright and license information, please view the LICENSE",
"file that was distributed with this source code.",
"",
"@package Toolbox-CI",
"@license MIT",
"@copyright Copyright (C) JBZoo.com, All rights reserved.",
"@link https://github.com/JBZoo/Toolbox-CI"
],

"output" : "build/toolbox-ci.phar",

"directories" : ["src"],
"files" : ["toolbox-ci.php"],
"git-version" : "git-version",

"finder" : [
{
"in" : "vendor",
"name" : "*.php",
"exclude" : ["Tests", "tests", "test"]
}
]
}
Loading

0 comments on commit 375a4bc

Please sign in to comment.