899 Commits

Author SHA1 Message Date
Daniel Rudolf
f97cd83cc8 Merge pull request #286 from dmelo/composer-compat
change Pico's default `index.php` to be compatible with `composer require picocms/pico`
2015-11-27 19:43:10 +01:00
Daniel Rudolf
31acaffa67 Add PHP_CodeSniffer 2015-11-27 19:40:26 +01:00
Daniel Rudolf
e14c007789 Default theme: Replace tabs with 4-space-indentation 2015-11-27 19:32:12 +01:00
Daniel Rudolf
913cf3816f Plugins: Improve onPagesLoaded() code styling 2015-11-27 19:31:22 +01:00
Daniel Rudolf
364b9066d9 PicoDeprecated: Use $GLOBALS superglobal instead of global keyword 2015-11-27 19:30:25 +01:00
Daniel Rudolf
81821e7811 Improve Pico::getBaseUrl() code styling 2015-11-27 19:28:48 +01:00
theshka
1fae7ab3df * [New] added PHP_VERSION check to Pico::run() 2015-11-27 12:27:45 -06:00
theshka
917cd6caf3 Consolidate Issue Template 2015-11-27 10:36:44 -06:00
theshka
0dcb49d8ac Consolidate Build & Release section. 2015-11-27 10:31:17 -06:00
Diogo Oliveira de Melo
70d813eafe change the way to call autoload.php.
- As suggested by @theshka, this code first verify if Pico is being used
as local composer install, then verify if it is being used as a composer
library.
2015-11-27 02:16:06 -02:00
Daniel Rudolf
54305c4d33 phpDocs auto deployment: Remove pull requests support
We can deploy phpDocs in safe environments only, but "safe environment" is equivalent to "pull a local branch", therefore we can simply use that local branch to deploy the phpDocs. There's no need for a explicit pull request support.
2015-11-26 04:06:34 +01:00
Daniel Rudolf
8005efdbbb phpDocs auto deployment: Remove latest commit check for pull requests
See https://developer.github.com/v3/pulls/#get-a-single-pull-request
> Each time the pull request receives new commits, GitHub creates a merge
> commit to *test* whether the pull request can be automatically merged into
> the base branch. (This *test* commit is not added to the base branch or the
> head branch.) The  attribute holds the SHA of the *test*
> merge commit; however, this attribute is deprecated and is scheduled for
> removal in the next version of the API.

 holds the SHA of the  merge commit and not of the
latest commit of the head branch, therefore the comparison fails. We could
theoretically compare it against this attribute, but as of its deprecation,
this is a pretty bad idea. Thus we remove the latest commit check for pull
requests.
2015-11-26 02:38:29 +01:00
Daniel Rudolf
45dcf32fa7 phpDocs auto deployment: Support pull requests in a safe environment 2015-11-26 02:15:34 +01:00
Daniel Rudolf
6e0b2aab34 phpDocs auto deployment: Disable for pull requests with a safe environment
Pull requests with a safe environment are primarly local branches
2015-11-26 01:35:35 +01:00
Daniel Rudolf
5af160c31d phpDocs auto deployment: Use $GITHUB_OAUTH_TOKEN to determine latest commit 2015-11-26 01:13:37 +01:00
Daniel Rudolf
869a697977 Merge branch 'master' into enhancement/build-release
Conflicts:
	.travis.yml
2015-11-26 00:38:30 +01:00
Daniel Rudolf
17dbc4cf18 phpDocs auto deployment: Cleanup 2015-11-26 00:29:14 +01:00
Daniel Rudolf
2306010ba7 phpDocs auto deployment: Fix phpDocs generation
phpDocumentor acts very strange when relative paths are involved...
2015-11-25 23:53:58 +01:00
Daniel Rudolf
3ac53d2b4c phpDocs auto deployment: Improve title of class docs for branches 2015-11-25 23:44:11 +01:00
Daniel Rudolf
38d2dd2e20 Travis: Remove .git dirs from vendor/ dir when deploying
See https://github.com/picocms/Pico/issues/289#issuecomment-159722672 - thanks to @joshas for spotting
2015-11-25 23:38:22 +01:00
Daniel Rudolf
137b2ba3a6 phpDocs auto deployment: Fix deployment of branches with slashes 2015-11-25 23:35:42 +01:00
Daniel Rudolf
236ae43dab phpDocs auto deployment: Fix deployment of branches 2015-11-25 23:09:15 +01:00
Daniel Rudolf
c198333de7 Improve phpDocs auto-generation 2015-11-25 22:55:21 +01:00
Daniel Rudolf
728873c5a4 build/deploy-phpdoc.sh: Fix credentials 2015-11-25 22:26:51 +01:00
Daniel Rudolf
3c68095075 Improve phpDocs auto-generation 2015-11-25 22:04:16 +01:00
Daniel Rudolf
3852585ba0 Improve phpDocs auto-generation 2015-11-25 21:55:28 +01:00
Daniel Rudolf
9a46033141 Improve phpDocs auto-generation 2015-11-25 21:36:56 +01:00
Daniel Rudolf
32120e5bbc Fix build/generate-phpdoc.sh permissions 2015-11-25 21:02:43 +01:00
Daniel Rudolf
e4165d35b1 Fix .travis.yml 2015-11-25 20:59:29 +01:00
Daniel Rudolf
5862825265 Travis: Deploy phpDocs on PHP 5.3 only and allow multiple branches 2015-11-25 20:56:13 +01:00
Daniel Rudolf
c9387610f3 Auto-generate phpDoc when committing to master 2015-11-25 20:39:49 +01:00
Daniel Rudolf
1f16be05e3 Merge branch 'master' into enhancement/build-release 2015-11-25 20:38:44 +01:00
Daniel Rudolf
4ddde6b9fb Travis: Deploy on every repo, forks usually don't setup Travis 2015-11-25 20:38:27 +01:00
Daniel Rudolf
d503cea954 Travis: Don't test vendor PHP files 2015-11-25 20:37:45 +01:00
Daniel Rudolf
b198ad48c6 Travis: Allow PHP nightly builds to fail 2015-11-25 20:04:46 +01:00
Daniel Rudolf
18fc928797 Merge branch 'master' into enhancement/build-release
Conflicts:
	.travis.yml
2015-11-25 18:03:03 +01:00
Daniel Rudolf
20387e0bf9 Make DummyPlugin class final
Plugin developers MUST NOT extend from DummyPlugin, they SHOULD extend from AbstractPicoPlugin
2015-11-25 04:10:22 +01:00
Daniel Rudolf
876a500ecf Improve .gitignore 2015-11-25 04:07:57 +01:00
Daniel Rudolf
840d41bca5 Improve type hinting 2015-11-25 04:07:46 +01:00
Daniel Rudolf
2982f5deb9 Optimize composer autoloader before deploying
This converts PSR-0/PSR-4 autoloading to classmap to get a faster autoloader (up to 20% performance increase)
2015-11-24 19:49:16 +01:00
Diogo Oliveira de Melo
85442266b5 update CHANGELOG 2015-11-23 20:29:33 -02:00
Diogo Oliveira de Melo
9e752c1d29 It works when Pico is installed as a dependency 2015-11-23 20:11:42 -02:00
theshka
80049ed966 update build & release section for auto-docs 2015-11-23 15:51:12 -06:00
Daniel Rudolf
9712ae2a97 Fix permissions of build/deploy-phpdoc.sh 2015-11-23 21:52:23 +01:00
Daniel Rudolf
7f4ad75245 Refactor phpDoc auto-deployment 2015-11-23 21:46:36 +01:00
Daniel Rudolf
bd24d518f2 Update .gitignore 2015-11-23 21:33:57 +01:00
theshka
e79388118c Merge branch 'feature/auto-docs' into enhancement/build-release 2015-11-23 13:35:23 -06:00
theshka
c3b908939f update deploy-phpdoc.sh for auto docs 2015-11-23 13:26:31 -06:00
theshka
04f7140347 update .travis.yml for auto-docs 2015-11-23 13:19:47 -06:00
theshka
edbf9f1747 Implement @PhrozenByte 's suggestions.
* [Changed] require phpDocumentor version ^2.8 constraint
2015-11-23 12:27:15 -06:00