예제 #1
0
 def test_find_all_php_versions(self):
     ctx = {'BP_DIR': '.'}
     manifest = load_manifest(ctx)
     dependencies = manifest['dependencies']
     versions = find_all_php_versions(dependencies)
     eq_(2, len([v for v in versions if v.startswith('5.5.')]))
     eq_(2, len([v for v in versions if v.startswith('5.6.')]))
예제 #2
0
 def test_find_all_php_versions(self):
     ctx = {'BP_DIR': '.'}
     manifest = load_manifest(ctx)
     dependencies = manifest['dependencies']
     versions = find_all_php_versions(dependencies)
     eq_(2, len([v for v in versions if v.startswith('7.1.')]))
     eq_(2, len([v for v in versions if v.startswith('7.2.')]))
 def test_find_all_php_versions(self):
     ctx = {'BP_DIR': '.', 'STACK': 'lucid'}
     json = load_binary_index(ctx)
     versions = find_all_php_versions(json)
     eq_(6, len(versions))
     eq_(3, len([v for v in versions if v.startswith('5.4.')]))
     eq_(3, len([v for v in versions if v.startswith('5.5.')]))
예제 #4
0
 def test_find_all_php_versions(self):
     ctx = {'BP_DIR': '.', 'STACK': 'lucid'}
     json = load_binary_index(ctx)
     versions = find_all_php_versions(json)
     eq_(9, len(versions))
     eq_(3, len([v for v in versions if v.startswith('5.4.')]))
     eq_(3, len([v for v in versions if v.startswith('5.5.')]))
예제 #5
0
 def test_find_all_php_versions(self):
     ctx = {"BP_DIR": ".", "STACK": "lucid"}
     json = load_binary_index(ctx)
     versions = find_all_php_versions(json)
     eq_(7, len(versions))
     eq_(3, len([v for v in versions if v.startswith("5.4.")]))
     eq_(3, len([v for v in versions if v.startswith("5.5.")]))
예제 #6
0
def configure(ctx):
    json = load_binary_index(ctx)
    ctx['ALL_PHP_VERSIONS'] = find_all_php_versions(json)
    ctx['ALL_PHP_EXTENSIONS'] = find_all_php_extensions(json)
예제 #7
0
 def _configure(self):
     manifest = load_manifest(self._ctx)
     dependencies = manifest['dependencies']
     self._ctx['ALL_PHP_VERSIONS'] = find_all_php_versions(dependencies)
예제 #8
0
def configure(ctx):
    json = load_binary_index(ctx)
    ctx['ALL_PHP_VERSIONS'] = find_all_php_versions(json)
    ctx['ALL_PHP_EXTENSIONS'] = find_all_php_extensions(json)
예제 #9
0
 def _configure(self):
     manifest = load_manifest(self._ctx)
     dependencies = manifest['dependencies']
     self._ctx['ALL_PHP_VERSIONS'] = find_all_php_versions(dependencies)
예제 #10
0
 def _configure(self):
     json = load_binary_index(self._ctx)
     self._ctx['ALL_PHP_VERSIONS'] = find_all_php_versions(json)
     self._ctx['ALL_PHP_EXTENSIONS'] = find_all_php_extensions(json)
예제 #11
0
 def _configure(self):
     manifest = load_manifest(self._ctx)
     dependencies = manifest["dependencies"]
     self._ctx["ALL_PHP_VERSIONS"] = find_all_php_versions(dependencies)
     self._ctx["ALL_PHP_EXTENSIONS"] = find_all_php_extensions(dependencies)