Skip to content

Commit 5e4b0c1

Browse files
author
Jan-Marten de Boer
committed
Initial package
0 parents  commit 5e4b0c1

6 files changed

+98
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/vendor/
2+
composer.lock

bitbucket-pipelines.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
image: composer/composer:latest
2+
pipelines:
3+
default:
4+
- step:
5+
script:
6+
# Show software versions.
7+
- composer self-update
8+
- composer --version
9+
- php -v
10+
11+
# Install SSH keys.
12+
- mkdir -p /root/.ssh
13+
- chmod 700 /root/.ssh
14+
15+
- echo "$PIPELINES_PRIVATE_KEY" | sed 's/\\n/\n/g' | cat > /root/.ssh/id_rsa
16+
- chmod 600 /root/.ssh/id_rsa
17+
18+
- echo "$BITBUCKET_KNOWN_HOSTS" >> /root/.ssh/known_hosts
19+
20+
# Composer installation.
21+
- echo "$COMPOSER_AUTHENTICATION" > $COMPOSER_HOME/auth.json
22+
- composer validate --strict --no-interaction
23+
- composer install --dev --prefer-dist --no-scripts --ignore-platform-reqs --no-progress --optimize-autoloader --no-interaction
24+
25+
# Execute tests from MediaCT testing suite.
26+
- composer exec -v mediact-testing-suite

composer.json

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "mediact/composer-dependency-installer",
3+
"description": "Install Composer dependencies.",
4+
"type": "library",
5+
"license": "proprietary",
6+
"authors": [
7+
{
8+
"name": "MediaCT",
9+
"email": "[email protected]"
10+
},
11+
{
12+
"name": "Klaas Sangers",
13+
"role": "developer"
14+
},
15+
{
16+
"name": "Jan-Marten de Boer",
17+
"role": "developer"
18+
}
19+
],
20+
"repositories": [
21+
{
22+
"type": "composer",
23+
"url": "https://composer.mediact.nl"
24+
}
25+
],
26+
"minimum-stability": "stable",
27+
"prefer-stable": true,
28+
"require": {
29+
"php": "^7.0",
30+
"composer/composer": "@stable"
31+
},
32+
"require-dev": {
33+
"phpunit/phpunit": "@stable",
34+
"mediact/testing-suite": "@stable",
35+
"kint-php/kint": "@stable"
36+
},
37+
"autoload": {
38+
"psr-4": {
39+
"Mediact\\Composer\\DependencyInstaller\\": "src"
40+
}
41+
},
42+
"autoload-dev": {
43+
"psr-4": {
44+
"Mediact\\Composer\\DependencyInstaller\\Tests\\": "tests"
45+
}
46+
}
47+
}

phpcs.xml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0"?>
2+
<ruleset>
3+
<rule ref="./vendor/mediact/coding-standard/src/MediaCT"/>
4+
</ruleset>

phpmd.xml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0"?>
2+
<ruleset>
3+
<rule ref="./vendor/mediact/coding-standard/src/MediaCT/phpmd.xml" />
4+
</ruleset>

phpunit.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<phpunit
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
4+
bootstrap="vendor/autoload.php">
5+
<testsuites>
6+
<testsuite name="default">
7+
<directory>tests</directory>
8+
</testsuite>
9+
</testsuites>
10+
<filter>
11+
<whitelist processUncoveredFilesFromWhitelist="true">
12+
<directory suffix=".php">src</directory>
13+
</whitelist>
14+
</filter>
15+
</phpunit>

0 commit comments

Comments
 (0)