-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1c840dd
Showing
18 changed files
with
16,258 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
APP_ENV=test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/etc/build/* | ||
!/etc/build/.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
language: php | ||
|
||
dist: trusty | ||
|
||
php: | ||
- '7.2' | ||
|
||
cache: | ||
yarn: true | ||
directories: | ||
- ~/.composer/cache/files | ||
- $MONOFONY_CACHE_DIR | ||
|
||
env: | ||
global: | ||
- APP_ENV=test | ||
- DATABASE_URL=mysql://[email protected]:3306/monofony_%kernel.environment%?serverVersion=5.7 | ||
- MONOFONY_CACHE_DIR=$HOME/.monofony-cache | ||
- MONOFONY_BUILD_DIR=etc/build | ||
- SYMFONY_ENDPOINT=https://flex.symfony.com/r/github.com/symfony/recipes-contrib/871 | ||
|
||
before_install: | ||
- phpenv config-rm xdebug.ini | ||
- echo "memory_limit=4096M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini | ||
- mkdir -p "${MONOFONY_CACHE_DIR}" | ||
|
||
install: | ||
- composer install --no-interaction --prefer-dist | ||
- composer dump-env test | ||
- yarn install | ||
|
||
before_script: | ||
- bin/console doctrine:database:create -vvv | ||
- APP_DEBUG=1 APP_ENV=dev bin/console cache:warmup -vvv # For PHPStan | ||
- bin/console doctrine:migration:migrate -n -vv | ||
- bin/console assets:install public -vvv | ||
- bin/console cache:warmup -vvv | ||
- yarn build | ||
|
||
# Configure display | ||
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1680x1050x16 | ||
- export DISPLAY=:99 | ||
|
||
# Download Symfony CLI | ||
- | | ||
if [ ! -f $MONOFONY_CACHE_DIR/symfony ]; then | ||
wget https://get.symfony.com/cli/installer -O - | bash | ||
mv ~/.symfony/bin/symfony $MONOFONY_CACHE_DIR | ||
fi | ||
# Download and configure ChromeDriver | ||
- | | ||
if [ ! -f $MONOFONY_CACHE_DIR/chromedriver ] || [ "$($MONOFONY_CACHE_DIR/chromedriver --version | grep -c 2.34)" = "0" ]; then | ||
curl http://chromedriver.storage.googleapis.com/2.34/chromedriver_linux64.zip > chromedriver.zip | ||
unzip chromedriver.zip | ||
chmod +x chromedriver | ||
mv chromedriver $MONOFONY_CACHE_DIR | ||
fi | ||
# Run ChromeDriver | ||
- $MONOFONY_CACHE_DIR/chromedriver > /dev/null 2>&1 & | ||
|
||
# Download and configure Selenium | ||
- | | ||
if [ ! -f $MONOFONY_CACHE_DIR/selenium.jar ] || [ "$(java -jar $MONOFONY_CACHE_DIR/selenium.jar --version | grep -c 3.4.0)" = "0" ]; then | ||
curl http://selenium-release.storage.googleapis.com/3.4/selenium-server-standalone-3.4.0.jar > selenium.jar | ||
mv selenium.jar $MONOFONY_CACHE_DIR | ||
fi | ||
# Run Selenium | ||
- java -Dwebdriver.chrome.driver=$MONOFONY_CACHE_DIR/chromedriver -jar $MONOFONY_CACHE_DIR/selenium.jar > /dev/null 2>&1 & | ||
|
||
# Run webserver | ||
- $MONOFONY_CACHE_DIR/symfony server:ca:install | ||
- $MONOFONY_CACHE_DIR/symfony server:start --port=8080 --dir=public --force-php-discovery --daemon | ||
|
||
script: | ||
- composer validate --strict | ||
- vendor/bin/security-checker security:check | ||
- bin/console doctrine:schema:validate -vvv | ||
- bin/console lint:twig templates | ||
- bin/console lint:yaml config --parse-tags | ||
- phpdbg -qrr vendor/bin/phpspec run --no-interaction -f dot | ||
- vendor/bin/phpstan analyse -c phpstan.neon -l 1 src | ||
- vendor/bin/psalm --show-info=false | ||
- vendor/bin/phpunit | ||
- bin/console app:install --no-interaction -vvv | ||
- bin/console sylius:fixtures:load default --no-interaction | ||
- vendor/bin/behat --strict -vvv --no-interaction -f progress || vendor/bin/behat --strict -vvv --no-interaction -f progress --rerun | ||
- (bin/console doctrine:migrations:migrate first --no-interaction && bin/console doctrine:migrations:migrate latest --no-interaction) | ||
|
||
after_failure: | ||
- vendor/lakion/mink-debug-extension/travis/tools/upload-textfiles "${MONOFONY_BUILD_DIR}/*.log" | ||
|
||
notifications: | ||
email: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) Monofony | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is furnished | ||
to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
imports: | ||
- config/suites.yaml | ||
|
||
default: | ||
formatters: | ||
pretty: | ||
verbose: true | ||
paths: false | ||
snippets: false | ||
|
||
extensions: | ||
Lakion\Behat\MinkDebugExtension: | ||
directory: etc/build | ||
clean_start: false | ||
screenshot: true | ||
|
||
Behat\MinkExtension: | ||
files_path: "%paths.base%/tests/Resources/" | ||
base_url: "https://localhost:8080/" | ||
default_session: symfony | ||
javascript_session: chrome | ||
sessions: | ||
symfony: | ||
symfony: ~ | ||
chrome: | ||
selenium2: | ||
browser: chrome | ||
capabilities: | ||
browserName: chrome | ||
browser: chrome | ||
version: "" | ||
chrome: | ||
switches: | ||
- "start-fullscreen" | ||
- "start-maximized" | ||
- "no-sandbox" | ||
extra_capabilities: | ||
unexpectedAlertBehaviour: accept | ||
|
||
FriendsOfBehat\SymfonyExtension: ~ | ||
|
||
FriendsOfBehat\VariadicExtension: ~ | ||
|
||
gherkin: | ||
filters: | ||
tags: "~@todo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"name": "monofony/skeleton", | ||
"type": "project", | ||
"description": "A Minimal Monofony project to create applications.", | ||
"license": "MIT", | ||
"require": { | ||
"php": "^7.1", | ||
"monofony/admin-bundle": "^0.1", | ||
"monofony/core-bundle": "^0.1", | ||
"monofony/fixtures-plugin": "^0.1", | ||
"monofony/front-bundle": "^0.1", | ||
"symfony/flex": "^1.6" | ||
}, | ||
"require-dev": { | ||
"monofony/test-pack": "^0.1" | ||
}, | ||
"config": { | ||
"optimize-autoloader": true, | ||
"preferred-install": { | ||
"*": "dist" | ||
}, | ||
"sort-packages": true | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"App\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"App\\Tests\\": "tests/" | ||
} | ||
}, | ||
"scripts": { | ||
"auto-scripts": { | ||
"cache:clear": "symfony-cmd", | ||
"assets:install %PUBLIC_DIR%": "symfony-cmd", | ||
"security-checker security:check": "script" | ||
}, | ||
"post-install-cmd": [ | ||
"@auto-scripts" | ||
], | ||
"post-update-cmd": [ | ||
"@auto-scripts" | ||
] | ||
}, | ||
"conflict": { | ||
"symfony/symfony": "*" | ||
}, | ||
"extra": { | ||
"symfony": { | ||
"allow-contrib": true, | ||
"require": "4.4.*" | ||
} | ||
} | ||
} |
Oops, something went wrong.