Skip to content

Commit

Permalink
Merge pull request #17 from abbadon1334/add-phar
Browse files Browse the repository at this point in the history
Add phar
  • Loading branch information
abbadon1334 committed Jul 12, 2019
2 parents 77abcec + 7a67722 commit 2ce40c0
Show file tree
Hide file tree
Showing 194 changed files with 31,115 additions and 661 deletions.
1 change: 0 additions & 1 deletion .gitignore
@@ -1,7 +1,6 @@
/vendor
.idea/
composer.lock
docs/_build
composer.phar
/composer.lock
.DS_Store
Expand Down
31 changes: 30 additions & 1 deletion composer.json
Expand Up @@ -37,5 +37,34 @@
"JuliusHaertl\\PHPDocToRst\\Test\\": "tests/"
}
},
"bin": ["bin/phpdoc-to-rst"]
"bin": ["bin/phpdoc-to-rst"],
"scripts": {
"build-phar" : [
"# START BUILD",

"# STEP 1 - Clear OLD BUILD -----",
"rm -rf build",

"# STEP 2 - SETUP NEW ENV -----",
"mkdir -p build",

"# STEP 3 - DOWNLOAD GIT REPO FOR BUILD -----",
"wget -P build https://github.com/abbadon1334/phpdoc-to-rst/archive/master.zip",

"# STEP 4 - UNZIP REPO FOR BUILD -----",
"cd build && unzip master.zip",

"# STEP 5 - INSTALL COMPOSER WITHOUT DEV TO OPTIMIZE FINAL SIZE -----",
"cd build/phpdoc-to-rst-master && composer install --no-dev",

"# STEP 6 - DOWNLOAD PHAR-COMPOSER -----",
"wget -P build https://github.com/clue/phar-composer/releases/download/v1.0.0/phar-composer.phar",
"chmod +x build/phar-composer.phar",

"# STEP 7 - BUILD PHAR FOR REPO -----",
"cd build && php -d phar.readonly=off phar-composer.phar build phpdoc-to-rst-master ../master.phar",

"# END BUILD - ALL OK"
]
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/_build/doctrees/api/index.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/cli.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file added docs/_build/doctrees/extensions.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/index.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/usage.doctree
Binary file not shown.
4 changes: 4 additions & 0 deletions docs/_build/html/.buildinfo
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 56823d9e9b4fe70cae5a94013d61a4ed
tags: 645f666f9bcd5a90fca523b33c5a78b7
Empty file added docs/_build/html/.nojekyll
Empty file.

0 comments on commit 2ce40c0

Please sign in to comment.