Skip to content

Instantly share code, notes, and snippets.

@tonypiper
tonypiper / shippable.yml
Created March 26, 2015 09:03
shippable.yml
language: php
php:
- 5.4
before_script:
- echo "xdebug.max_nesting_level = 500" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
- mysql -e 'create database if not exists test_db;'
- composer config -g github-oauth.github.com $GITHUB_TOKEN
- composer self-update
@tonypiper
tonypiper / inventory.php
Last active February 3, 2016 14:24
PHP Version Inventory
<?php
$data=array();
$data['ipExternal']=file_get_contents("http://myip.dnsomatic.com/");
$data['hostname']=trim(`hostname`);
$data['ipInternal']=gethostbyname($data['hostname']);
$data['php_version']= PHP_VERSION;
$data['mysql_version']=trim(`mysql --version`);
$ch=curl_init('https://zapier.com/hooks/catch/o149u0/');