diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 393ecfe..3b2c9f8 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -2,9 +2,9 @@ name: PHP Composer on: push: - branches: [ "master" ] + branches: ["master"] pull_request: - branches: [ "master" ] + branches: ["master"] permissions: contents: read @@ -19,12 +19,7 @@ jobs: fail-fast: false matrix: php-version: - - "7.2" - - "7.3" - "7.4" - - "8.0" - - "8.1" - - "8.2" - "8.3" operating-system: [ubuntu-latest] steps: diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6aed2dc..0000000 --- a/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -language: php - -sudo: false - -dist: trusty - -cache: - directories: - - $HOME/.composer/cache - -addons: - apt: - packages: - - parallel - -php: - - 7.1 - - 7.2 - - 7.4 - -before_script: - - composer install - -script: - - ./vendor/bin/phpunit tests - -git: - depth: 5 diff --git a/README.md b/README.md index 8f36685..0cc6509 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ -[![Build Status Travis](https://travis-ci.org/madflow/cheesecake.png?branch=master)](https://travis-ci.org/madflow/cheesecake) - -# Cheesecake - the best! +# Cheesecake - the best! Cheesecake is a project/directory skeleton generator thingy for PHP. It is inspired by https://github.com/audreyr/cookiecutter. @@ -40,6 +38,7 @@ composer install # Examples ##### Create a Silex starter project + ``` # Create output directory mkdir /tmp/silex @@ -50,12 +49,12 @@ mkdir /tmp/silex # Hooks -Put your hooks in ```hooks``` and name them ```pre_gen.php``` or ```post_gen.php```. +Put your hooks in `hooks` and name them `pre_gen.php` or `post_gen.php`. # Hacks -+ When processing Twig templates the Mustache engine tries to interpret expressions like ```{{ okay | upper }}``` and will fail with ```Mustache_Exception_UnknownFilterException: Unknown filter: upper``` -+ In order to circumvent this, it is possible to define a magic ```filters_ignore``` parameter in your ```cheesecake.json``` file. +- When processing Twig templates the Mustache engine tries to interpret expressions like `{{ okay | upper }}` and will fail with `Mustache_Exception_UnknownFilterException: Unknown filter: upper` +- In order to circumvent this, it is possible to define a magic `filters_ignore` parameter in your `cheesecake.json` file. ``` { @@ -63,10 +62,10 @@ Put your hooks in ```hooks``` and name them ```pre_gen.php``` or ```post_gen.php "filters_ignore": ["upper"] } ``` -+ ```filters_ignore``` excepts an array of strings which will be translated to dummy filters. ----- +- `filters_ignore` excepts an array of strings which will be translated to dummy filters. -+ You can always try to change the delimiter like documented here: https://github.com/bobthecow/mustache.php/wiki/Mustache-Tags#set-delimiter -+ This way it should be possible to circumvent problems with other template engines. +--- +- You can always try to change the delimiter like documented here: https://github.com/bobthecow/mustache.php/wiki/Mustache-Tags#set-delimiter +- This way it should be possible to circumvent problems with other template engines.