Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit 8dd4169

Browse files
authored
add docker (#4)
* add docker * add travis configuration
1 parent 957f671 commit 8dd4169

File tree

15 files changed

+671
-312
lines changed

15 files changed

+671
-312
lines changed

.gitattributes

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
# uncomment next lines to get clean project
1+
?# uncomment next lines to get clean project
22

33
## development files
4-
#/.editorconfig export-ignore
5-
#/.gitattributes export-ignore
6-
#/.gitignore export-ignore
7-
#/.standards export-ignore
8-
#/.php_cs export-ignore
9-
#/.scrutinizer.yml export-ignore
10-
#/phpunit.xml.dist export-ignore
4+
#/.editorconfig export-ignore
5+
#/.gitattributes export-ignore
6+
#/.gitignore export-ignore
7+
#/.standards export-ignore
8+
#/.php_cs export-ignore
9+
#/.scrutinizer.yml export-ignore
10+
#/phpunit.xml.dist export-ignore
11+
#/docker export-ignore
12+
#/docker-compose.yml export-ignore
1113

1214
## md files
13-
#/LICENSE.md export-ignore
15+
#/LICENSE export-ignore
1416
#/README.md export-ignore

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@ web/bundles/*
3030

3131
# phpunit
3232
phpunit.xml
33+
34+
#docker
35+
/docker/data

.travis.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
language: php
2+
3+
# faster builds on docker-container setup
4+
sudo: false
5+
6+
# cache vendor dirs
7+
cache:
8+
apt: true
9+
directories:
10+
- vendor
11+
- $HOME/.composer/cache
12+
13+
php:
14+
- 7.0
15+
- 7.1
16+
17+
matrix:
18+
fast_finish: true
19+
include:
20+
- php: 7.0
21+
env: CS_FIXER=run
22+
allow_failures:
23+
- php: nightly
24+
25+
before_script:
26+
- PHP=$TRAVIS_PHP_VERSION
27+
- if [[ ! $PHP = hhvm* ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
28+
# xdebug isn't enable for PHP 7.1
29+
- if [[ ! $PHP = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi;
30+
- composer self-update --no-progress
31+
32+
script:
33+
- travis_wait bash composer install --ansi --no-interaction --optimize-autoloader --no-suggest --no-progress
34+
- if [[ $CS_FIXER = run ]]; then php ./bin/php-cs-fixer fix --verbose --dry-run ; fi;
35+
- if [[ ! $PHP = 5* ]]; then ./bin/phpunit; fi;

LICENSE.md renamed to LICENSE

File renamed without changes.

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ That's it ! you have full working project with :
2929
- PHPCSFixer configuration file
3030
- and much more
3131

32+
**Docker** is ready to be used with *nginx*, *PHP-FPM*, *MariaDB*, *Postgres*, *MongoDB* and *CouchDB*. all you have to
33+
do is to configure `docker-compose.yml`. We use [fnayou/oh-my-docker][link-oh-my-docker], so check the project for more
34+
information.
35+
3236
Don't waste time configuring, start coding !
3337

3438
## Included packages ?
@@ -58,14 +62,13 @@ If you want to clean up your project, don't forget to uncomment content of `.git
5862
## Credits
5963

6064
- [Symfony][link-symfony]
61-
- [Aymen FNAYOU][link-author] - [GitLab][link-author-gitlab] - [GitHub][link-author-github]
65+
- [Aymen FNAYOU][link-author]
6266

6367
## License
6468

65-
![license](https://img.shields.io/badge/license-MIT-lightgrey.svg) Please see [License File](LICENSE.md) for more information.
69+
![license](https://img.shields.io/badge/license-MIT-lightgrey.svg) Please see [License File](LICENSE) for more information.
6670

6771
[link-author]: https://aymen-fnayou.com
68-
[link-author-gitlab]: https://gitlab.com/fnayou
69-
[link-author-github]: https://github.com/fnayou
72+
[link-oh-my-docker]: https://github.com/fnayou/oh-my-docker
7073
[link-micro-kernel]: https://symfony.com/doc/2.8/configuration/micro_kernel_trait.html
7174
[link-symfony]: https://github.com/symfony/symfony

bin/symfony_requirements

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env php
22
<?php
33

4-
require_once dirname(__FILE__).'/../var/SymfonyRequirements.php';
4+
require_once dirname(__FILE__).'/./SymfonyRequirements.php';
55

66
$lineSize = 70;
77
$symfonyRequirements = new SymfonyRequirements();

0 commit comments

Comments
 (0)