This repository has been archived by the owner on Sep 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from PHPSP/develop
Primeira versão super beta
- Loading branch information
Showing
627 changed files
with
73,423 additions
and
1 deletion.
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,15 @@ | ||
# General files | ||
|
||
.buildpath | ||
.project | ||
.settings/ | ||
.DS_Store | ||
*~ | ||
/vendor/* | ||
/.vagrant/* | ||
|
||
# Project Files | ||
|
||
config/config.ini | ||
public/uploads/* | ||
tests/_reports/* |
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,25 @@ | ||
filter: | ||
excluded_paths: [config/*, public/*, vagrant/*, vendor/*] | ||
paths: [src/*, tests/*] | ||
|
||
before_commands: | ||
- "composer install --prefer-source --verbose" | ||
- "cp config/config.ini.dist config/config.ini" | ||
|
||
tools: | ||
php_cpd: | ||
excluded_dirs: [config/*, public/*, vagrant/*, vendor/*] | ||
names: | ||
- bootstrap.php | ||
- src/* | ||
- tests/* | ||
php_code_coverage: true | ||
php_pdepend: | ||
excluded_dirs: [config/*, public/*, vagrant/*, vendor/*] | ||
php_code_sniffer: | ||
config: | ||
standard: PSR2 | ||
php_loc: | ||
enabled: false | ||
excluded_dirs: [config/*, public/*, vagrant/*, vendor/*] | ||
php_analyzer: true |
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,18 @@ | ||
language: php | ||
|
||
php: | ||
- 5.5 | ||
- 5.4 | ||
- 5.3 | ||
|
||
env: | ||
- RUN=phpunit | ||
- RUN=vendor/bin/phpunit | ||
|
||
script: ${RUN} | ||
|
||
before_script: | ||
- "composer selfupdate" | ||
- "composer install --prefer-dist --verbose" | ||
- "cp config/config.ini.dist config/config.ini" | ||
|
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 |
---|---|---|
@@ -1,11 +1,33 @@ | ||
Projeto de Storage para a Liga Solidária | ||
========================================= | ||
| Branch | Status | | ||
|--------|--------| | ||
| master | [![Build Status](https://travis-ci.org/PHPSP/liga-solidaria-storage.png?branch=master)](https://travis-ci.org/PHPSP/liga-solidaria-storage) | | ||
| develop| [![Build Status](https://travis-ci.org/PHPSP/liga-solidaria-storage.png?branch=develop)](https://travis-ci.org/PHPSP/liga-solidaria-storage) | | ||
|
||
### Requisitos | ||
| Code quality | Board | | ||
|--------------|-------| | ||
| [![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/PHPSP/liga-solidaria-storage/badges/quality-score.png?s=f5ab0022f6c90df4cdfe06f9d6545389ecd773ed)](https://scrutinizer-ci.com/g/PHPSP/liga-solidaria-storage/) | [![Stories in Ready](https://badge.waffle.io/PHPSP/liga-solidaria-storage.png)](http://waffle.io/PHPSP/liga-solidaria-storage) | | ||
| [![Code Coverage](https://scrutinizer-ci.com/g/PHPSP/liga-solidaria-storage/badges/coverage.png?s=fc23860696f27656d7dc970df8481a86aa974155)](https://scrutinizer-ci.com/g/PHPSP/liga-solidaria-storage/) | | ||
|
||
|
||
## Requisitos | ||
|
||
* Upload de Arquivos | ||
* Lista de Arquivos | ||
* Form de contato | ||
* Separado por projetos/diretorios | ||
* Calendario/Mural | ||
* Flags de Atraso/andamento | ||
|
||
## Sistema de versionamento | ||
|
||
Neste projeto, estamos utilizando o [__*Semantic Versioning 2.0.0*__](http://semver.org/) | ||
|
||
## Best Practices | ||
|
||
* Sempre que um desenvolvedor assumir uma *história/issue*, favor assinar para que ninguém trabalhe dobrado. | ||
* O fluxo de trabalho é baseado no [__*Git flow*__](http://nvie.com/posts/a-successful-git-branching-model/) | ||
|
||
|
||
Para informações mais completas visite a [__*wiki*__](https://github.com/PHPSP/liga-solidaria-storage/wiki) |
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,47 @@ | ||
# I'm using https://github.com/fgrehm/bindler | ||
# It's for 'Dead easy Vagrant plugins management' | ||
# If you have not it installed in your system, | ||
# visit https://github.com/fgrehm/bindler#installation for more information | ||
|
||
# https://github.com/fgrehm/bindler/issues/22 | ||
# Vagrant.has_plugin? 'bindler' | ||
|
||
$vagrant_path = "vagrant/" | ||
|
||
Vagrant.configure("2") do |config| | ||
config.cache.auto_detect = true | ||
|
||
config.hostmanager.enabled = true | ||
config.hostmanager.manage_host = true | ||
|
||
config.vm.box = "precise32" | ||
config.vm.box_url = "http://files.vagrantup.com/precise32.box" | ||
|
||
config.vm.hostname = "liga-solidaria-storage.localhost" | ||
|
||
config.vm.network :private_network, ip: "192.168.56.201" | ||
config.vm.network :forwarded_port, guest: 80, host: 8080 | ||
config.ssh.forward_agent = true | ||
|
||
config.vm.provider :virtualbox do |v| | ||
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | ||
v.customize ["modifyvm", :id, "--memory", 1024] | ||
v.customize ["modifyvm", :id, "--name", "liga-solidaria-storage"] | ||
end | ||
|
||
nfs_setting = RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/ | ||
config.vm.synced_folder "./", "/var/www/liga-solidaria-storage", id: "vagrant-root" , :nfs => nfs_setting | ||
config.vm.provision :shell, :inline => | ||
"if [[ ! -f /apt-get-run ]]; then sudo apt-get update && sudo touch /apt-get-run; fi" | ||
|
||
config.vm.provision :puppet do |puppet| | ||
puppet.manifests_path = $vagrant_path + "manifests" | ||
puppet.module_path = $vagrant_path + "modules" | ||
puppet.options = ['--verbose'] | ||
puppet.facter = { | ||
"vagrant_path" => $vagrant_path | ||
} | ||
end | ||
|
||
config.vm.provision :shell, :inline => 'sudo a2dissite 000-default && sudo service apache2 reload' | ||
end |
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,26 @@ | ||
<?php | ||
ini_set('display_errors', 0); | ||
use Respect\Config\Container; | ||
|
||
$autoload = __DIR__ . '/vendor/autoload.php'; | ||
|
||
require $autoload; | ||
|
||
// Project Constants | ||
define('PROJECT_ROOT', __DIR__); | ||
define('CONFIG_DIR', __DIR__ . '/config'); | ||
define('WEB_DIR', __DIR__ . '/public'); | ||
define('UPLOAD_DIR', WEB_DIR . '/uploads'); | ||
|
||
// Configuration file | ||
$c = new Container(CONFIG_DIR . '/config.ini'); | ||
|
||
// Set enviroment | ||
$isDevMode = ($c->env !== 'dev') ? false : true; | ||
|
||
if ($isDevMode) { | ||
ini_set('display_errors', 1); | ||
error_reporting(-1); | ||
} | ||
|
||
date_default_timezone_set($c->timezone); |
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,20 @@ | ||
{ | ||
"name": "phpsp/liga-solidaria-storage", | ||
"description": "Liga Solidária Storage is a file Storage Project made by PHPSP User Group to Liga Solidária", | ||
"require": { | ||
"respect/config": "dev-master", | ||
"respect/relational": "dev-master", | ||
"respect/rest": "dev-master", | ||
"respect/validation": "dev-master", | ||
"twig/twig": "1.*" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "3.7.*@dev", | ||
"squizlabs/php_codesniffer": "1.*" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"LigaSolidariaStorage": "src\/" | ||
} | ||
} | ||
} |
Oops, something went wrong.