Commit Graph

71 Commits

Author SHA1 Message Date
Daniel Rudolf 1d250a2f7c
Travis CI: Switch to PHP 5.3 for branch deployment (just like release deployment) 2019-12-02 19:28:16 +01:00
Daniel Rudolf 86f82b930d
Travis CI: Update to Ubuntu Bionic, add HHVM 3.24 LTS 2019-12-02 19:22:57 +01:00
Daniel Rudolf ae1225f725
Travis CI: Add PHP 7.4 2019-11-30 16:43:00 +01:00
Daniel Rudolf a5ff37e380
Travis CI: Remove 'sudo' requirement for branch deployment 2019-11-25 00:41:08 +01:00
Daniel Rudolf db1c6301e6
Build system: Fix release package deployment 2019-11-04 01:49:03 +01:00
Daniel Rudolf dec44817a5
Build system: Add $PROJECT_REPO_TAG param to release.sh call 2019-11-03 21:18:28 +01:00
Daniel Rudolf 58f615403e
Refactor Build system
- Separate Travis branch deployment and release deployment stages (also makes `deploy.sh` obsolete)
- Add `clean.sh` and `release.sh` scripts to allow users to create "release" packages locally
- Use `setup/*.sh` scripts to check and install build dependencies (like PHP_CodeSniffer, phpDocumentor and cloc)
- Use `create-release.sh` of `picocms/ci-tools` to create release archives
- Streamline script usage

Use the following to test Pico and to create a "release" package locally:

```sh
cd ~/My-Pico-Workspace/Components/pico

ln -rs ../ci-tools .build/ci-tools

. ./.build/ci-tools/init/local.sh.inc
. ./.build/init.sh.inc

phpcs --standard=.phpcs.xml "$PICO_PROJECT_DIR"

clean.sh
release.sh
```
2019-11-03 20:03:48 +01:00
Daniel Rudolf 3480a520d9
Build system: Use PHP 5.3 to create pre-built release packages
Otherwise Composer downloads a newer version of Twig which isn't compatible with PHP 5.3. Since we don't pin down specific versions of our dependencies, Composer-based installations might use newer versions of Twig which aren't compatible with PHP 5.3. Raising the PHP requirements requires a new major version, something that will definitly happen with Pico 3.0.
2019-10-26 14:00:45 +02:00
Daniel Rudolf 9c00ac4191
Travis CI: Remove not-yet-released PHP 7.4 2019-10-20 15:54:31 +02:00
Daniel Rudolf 92a8a299f8
Travis CI: Add PHP 7.4, improve deployment logging 2019-10-01 13:28:21 +02:00
Daniel Rudolf d0b637f686
Build system: Use PHP 5.6 for deployment due to broken phpDocumentor v2.9
phpDocumentor v3.0 (currently in alpha) is broken, too, generating class docs without a single working link
2019-09-12 13:46:22 +02:00
Daniel Rudolf 641cae849b
Travis CI: Additionally create .zip release archives 2019-08-29 16:42:18 +02:00
Daniel Rudolf 7c1e889717
Travis CI: Remove hhvm master and nightly, add HHVM 3.30 and 3.27
HHVM 4 no longer supports execution of PHP code. HHVM 3.30 and 3.27 are the only remaining still supported HHVM versions with PHP support. They will reach end-of-life in the course of 2019.
2019-02-21 10:35:11 +01:00
Daniel Rudolf 061a11636f
Travis CI: Add PHP 7.3 2018-12-23 23:43:13 +01:00
Daniel Rudolf 533ad99e57
Build system: Remove tag_name and target_commitish
Fixed in travis-ci/dpl#923 (ref travis-ci/dpl#914)
2018-12-03 12:33:38 +01:00
Daniel Rudolf df17baac18
Revert "Build system: Use conditional build stages for deploying"
This reverts commit c7862de924.
2018-12-03 12:19:46 +01:00
Daniel Rudolf c7862de924
Build system: Use conditional build stages for deploying
Thanks @BanzaiMan for this tip
2018-12-03 12:02:55 +01:00
Daniel Rudolf a7df4c2115
Build system: Fix GitHub release creation 2018-07-29 12:47:06 +02:00
Daniel Rudolf 6d6a39b744
Fix Travis build
See travis-ci/travis-ci#8248
2018-07-01 15:22:40 +02:00
Daniel Rudolf 822d58db60
Fix auto-publishing of pre-bundled releases 2018-04-07 22:14:14 +02:00
Daniel Rudolf 568166ad07
Check Pico::VERSION constant before deploying a new release 2018-03-29 22:48:24 +02:00
Daniel Rudolf 722de2a1e5
Build system: Refactor scripts to use picocms/ci-tools 2017-12-02 17:21:03 +01:00
Daniel Rudolf a192a42de5
Travis CI: Add PHP 7.2 2017-11-25 21:47:20 +01:00
Daniel Rudolf 66bb17a419
Build system: Make sure to create release archive in $TRAVIS_BUILD_DIR 2017-11-05 18:28:01 +01:00
Daniel Rudolf 4fb0b408e2
Build system: Improve and fix deployment 2017-11-05 02:36:50 +01:00
Daniel Rudolf 6e88e7ffbb
Build system: Disable Travis IRC notifications 2017-11-04 23:52:20 +01:00
Daniel Rudolf dfed9cc51f
Build system: Create GitHub releases as draft 2017-10-28 22:53:25 +02:00
Daniel Rudolf 1dee2c1cf6
Build system: Use 'picocms/pico-composer' to create release archives 2017-10-22 21:27:19 +02:00
Daniel Rudolf 81ebc4c33e
Build system: Move helper scripts to _build/tools dir 2017-10-22 21:15:29 +02:00
Daniel Rudolf df532e45bb
Travis CI: Use Build Stages
See https://docs.travis-ci.com/user/build-stages
2017-06-21 02:26:44 +02:00
Daniel Rudolf 66cc087b6e
Travis CI: Explicitly set root package version for branches
Due to the fact that Travis uses a shallow clone of Pico's Git repo, composer has no chance to detect on which branch it currently is. This was no big deal with Pico 1.0, however, Pico 2.0 depends on picocms/pico-deprecated and picocms/pico-theme. We use composer's `self.version` version constraint to sync the version numbers of these separate Git repos. Thus composer must know Pico's current version to resolve these dependencies. We try to guess the current version either using known branch aliases in Pico's `composer.json`, or using the `Pico::VERSION` constant (see `_build/install.sh`).
2017-06-14 02:11:32 +02:00
Daniel Rudolf 66916f62bc
Travis CI: Upgrade to Ubuntu Trusty for HHVM support
However, Ubuntu Trusty doesn't support PHP 5.3, so we'll have to continue using Ubuntu Precise for PHP 5.3
2017-06-12 20:11:04 +02:00
Daniel Rudolf 19bc3412ad
.travis.yml: Enable HHVM nightly builds 2016-10-11 18:21:14 +02:00
Daniel Rudolf da3d5a7e6f
.travis.yml: Enable Travis IRC notifications 2016-10-09 13:14:56 +02:00
Daniel Rudolf 6e891585ab
.travis.yml: Add PHP 7.1 to Travis CI 2016-10-09 02:52:36 +02:00
Daniel Rudolf 827be2cb9c
Build System: Refactor source code and release archive creation
Resolves #313
2016-07-24 23:35:10 +02:00
theshka fa4e095bdf Move LICENSE to LICENSE.md 2015-12-01 15:12:20 -06:00
theshka 1dc410425f Isolate build-related files from source
* [Changed] rename `phpcs.xml` -> `.phpcs.xml`
* [Changed] rename `build/` dir -> `_build/`
* [Changed] update paths in `.gitignore`
* [Changed] update paths in `.travis.yml`
* [Changed] update paths in `.sh` scripts
2015-11-29 14:55:55 -06:00
Daniel Rudolf 2535df7cfe Add index.php.dist
See https://github.com/picocms/Pico/issues/285#issuecomment-160130798
2015-11-27 20:24:29 +01:00
Daniel Rudolf 31acaffa67 Add PHP_CodeSniffer 2015-11-27 19:40:26 +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 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 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 e4165d35b1 Fix .travis.yml 2015-11-25 20:59:29 +01:00