Switch to using CircleCI 2.0

We end up using Docker images for PHP 5.6 and MySQL, handle our own
Composer and NPM caches.
This commit is contained in:
Tautvidas Sipavičius
2017-07-04 16:02:22 +03:00
committed by pavel-mailpoet
parent b1425198b6
commit 1ac6dd8ccb
7 changed files with 119 additions and 84 deletions

17
.circleci/fake-sendmail.php Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/local/bin/php
<?php
$path = "/tmp/fake-mailer";
if(!file_exists($path)) {
mkdir($path);
}
$filename = $path . '/mailpoet-' . microtime(true) . '.txt';
$file_handle = fopen($filename, "w");
$call_arguments = print_r($argv, true) . "\n";
fwrite($file_handle, $call_arguments);
while($line = fgets(STDIN)) {
fwrite($file_handle, $line);
}
fclose($file_handle);