Skip to content

BitPrepared/dreamland-portal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

| Tests | Releases | Downloads | Dependencies | | ----- | -------- | ------- | ------------- | --------- | ------------ | | Build Status Code Climate Coverage Status | B | C | Dependency Status |

Portale iscrizioni

Installazione

bower install
composer install
sh compile.sh

Usando la basic auth su json-rest-api, bisogna mettere nel .htaccess:

# basic auth
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

Mailcatcher dependency

bundle o gem install mailcatcher

la parte web: http://127.0.0.1:1080/, nei test vengono cancellate automaticamente le email!

Da provare come alternativa: https://github.com/mailhog/MailHog forse funziona meglio con travis (sample: https://gist.github.com/varghesejacob/68caf7aeee53305a1ffa#file-mailhog-bash-script) oppure https://github.com/alexandresalome/mailcatcher alcuni stanno integrando mailcatcher con behat

Come lanciare i test unitari

Caso test specifico

phpunit --filter testStep1

Caso gruppo di test

phpunit --group remoteTasks

Lunk Utili

Php.ini

php -i | grep 'Configuration File'

result:

Configuration File (php.ini) Path => /usr/local/etc/php/5.4
Loaded Configuration File => /usr/local/etc/php/5.4/php.ini

nel file /usr/local/etc/php/5.4/php.ini assicurarsi che ci sia :

sendmail_path = /usr/bin/env catchmail -f [email protected]

Dipendenze

php vendor/clue/graph-composer/bin/graph-composer export . --format=png export.png

Php Enviroment

assicurarsi di usare curl,sqlite e le varie dipendenze di homebrew correttamente linkate da homebrew (brew link ??)

phpbrew -d install 5.3.29 +mbstring +imap +ctype +pdo +mysql +pcntl +posix +readline +json +intl +cgi +sqlite +openssl +zip +gd +ipc +bz2 +mcrypt +cli +dom +filter +pcre +inifile +fileinfo +mhash +zlib -- --with-curl=/usr/local/