Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drone deploy #12

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
15 changes: 15 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
pipeline:
composer-install:
image: fpfis/php56-build
commands:
- composer install

test:
image: fpfis/php56-build
commands:
- php -l index.php

run-code:
image: fpfis/php56-build
commands:
- php index.php
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"require": {
"symfony/yaml" : "*",
"symfony/yaml" : "*"
}
}
18 changes: 18 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: '2'
services:

# Define a PHP webserver
php-webserver:
# Use a PHP image with apache
image: fpfis/php56-dev
# Define settings
environment:
- XDEBUG=true
- DOCUMENT_ROOT=/var/www/html/
# Mount a local volume in the container
volumes:
- ./:/var/www/html/
# Share the container port with the host
ports:
- 8080:8080

7 changes: 3 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@


use Symfony\Component\Yaml\Yaml;

$array = array(
'foo' => 'bar',
'bar' => array('foo' => 'bar', 'bar' => 'baz' => 'test'),
'bar' => array('foo' => 'bar', 'bar' => 'baz'),
);

echo Yaml::dump($array);
echo Yaml::
dump($array);