A first step is to introduce file base chunking to run-multiple. Technically we will do
a dynamic expansion of configuration to generate (n) run groups base one the chunks configured.
Context Files:
- codecept.json
- features/example1_test.js
| Download Composer | |
| root@do:/var/www/codecept$ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
| root@do:/var/www/codecept$ php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | |
| root@do:/var/www/codecept$ php composer-setup.php | |
| root@do:/var/www/codecept$ php -r "unlink('composer-setup.php');" | |
| Install & configure codecept | |
| # Download codecept and install using composer | |
| root@do:/var/www/codecept$ php composer.phar require "codeception/codeception" --dev |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| var settings = { | |
| max_width: 600, | |
| max_height: 200 | |
| } | |
| resize_image = function(img){ | |
| var ctx = canvas.getContext("2d") | |
| var canvasCopy = document.createElement("canvas") | |
| var copyContext = canvasCopy.getContext("2d") |
| import {Injectable} from '@angular/core'; | |
| import { | |
| ActivatedRoute, | |
| Router, | |
| NavigationEnd, | |
| ParamMap, | |
| PRIMARY_OUTLET, | |
| RouterEvent | |
| } from '@angular/router'; | |
| import {Observable} from 'rxjs/Observable'; |
| <?php | |
| /** | |
| * User: matteo.orefice | |
| * Date: 16/02/2018 | |
| * Time: 16:57 | |
| */ | |
| namespace MatteoOrefice\Illuminate\Database\Eloquent\Concerns; |
| <?php | |
| /** | |
| * Simple excel writer class with no external dependencies, drop it in and have fun | |
| * @author Matt Nowack | |
| * @link https://gist.github.com/ihumanable/929039/edit | |
| * @license Unlicensed | |
| * @version 1.0 | |
| */ | |
| class Excel { |
| # To enable JSON functions in SQLite run in irb | |
| require 'sqlite3' | |
| c = SQLite3::Database.new('database') | |
| c.enable_load_extension(1) | |
| c.load_extension('/usr/local/Cellar/sqlite/3.14.2/lib/libsqlitefunctions.dylib') |
| SELECT json_object('ex','[52,3.14159]'), | |
| json_array(1,2,'3',4), | |
| json_array_length('[1,2,3,4]'), | |
| json_extract('{"a":2,"c":[4,5,{"f":7}]}', '$'), | |
| json_insert('{"a":2,"c":4}', '$.a', 99), | |
| json_replace('{"a":2,"c":4}', '$.a', 99), | |
| json_object('a',2,'c',json_object('e',5)), | |
| json_remove('[0,1,2,3,4]','$[2]'), | |
| json_type('{"a":[2,3.5,true,false,null,"x"]}'), | |
| json_valid('{"x":35}') |