File tree Expand file tree Collapse file tree 3 files changed +12
-16
lines changed Expand file tree Collapse file tree 3 files changed +12
-16
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# test for breaking changes on the different bundle projects
2+ # todo: verify this always works
23
34name : " Test dependancies"
45
Original file line number Diff line number Diff line change 11#!/bin/env php
22<?php
33
4- $ file = $ argv [1 ];
4+ $ composerBundlePath = $ argv [1 ];
55
6- $ composer = json_decode (file_get_contents ($ file ), true );
6+ //fetch the dev-master alias from the local graphqlite composer
7+ $ composerGraphqlite = json_decode (file_get_contents (__DIR__ .'/copy/composer.json ' ), true );
78
8- $ composer ['repositories ' ] = [
9+ $ masterAlias = $ composerGraphqlite ['extra ' ]['branch-alias ' ]['dev-master ' ];
10+
11+ //edit the bundle composer to use the local graphqlite
12+ $ composerBundle = json_decode (file_get_contents ($ composerBundlePath ), true );
13+
14+ $ composerBundle ['repositories ' ] = [
915 [
1016 'type ' => 'path ' ,
1117 'url ' => '../copy/ '
1218 ]
1319];
1420
15- $ composer ['require ' ]['thecodingmachine/graphqlite ' ] = ' 4.0.x-dev ' ;
21+ $ composerBundle ['require ' ]['thecodingmachine/graphqlite ' ] = $ masterAlias ;
1622
17- file_put_contents ($ file , json_encode ($ composer ));
23+ file_put_contents ($ composerBundlePath , json_encode ($ composerBundle ));
You can’t perform that action at this time.
0 commit comments