Skip to content

Commit 078d380

Browse files
authored
Merge pull request #446: move deployment to Composer, update SwiftMailer/markdown libs
2 parents 201710b + f8fbaec commit 078d380

File tree

1,007 files changed

+2398
-213935
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,007 files changed

+2398
-213935
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ src/database.php
99
vendor/.git
1010
.idea
1111
node_modules
12+
vendor
1213
diff.txt

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ cache:
77
matrix:
88
include:
99
- php: 5.6
10+
- php: 7.3
1011
fast_finish: true
1112
before_script:
12-
- composer global require squizlabs/php_codesniffer
13-
- composer global require phpunit/phpunit
14-
- composer global require jakub-onderka/php-parallel-lint
1513
- composer install
1614
- cp src/config.php.dist src/config.php
1715
script:
18-
- PATH=$HOME/.composer/vendor/bin:$PATH ./build.sh
16+
- ./build.sh

build.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
#!/bin/bash
22
set -e
33

4-
parallel-lint --exclude vendor .
4+
vendor/bin/parallel-lint --exclude vendor .
55
git diff origin/master... > diff.txt
66

7-
phpcs \
7+
vendor/bin/phpcs \
88
--standard=tools/codesniffer/JoindInPSR2/ruleset.xml \
99
--ignore=**/config.php,**/database.php,vendor,tools,tests/bootstrap.php \
1010
--extensions=php \
1111
--runtime-set ignore_warnings_on_exit true \
1212
-p \
1313
.
1414

15-
cd tests
16-
phpunit
17-
./diffFilter.phar --phpunit ../diff.txt build/logs/clover.xml 80
15+
16+
php vendor/bin/security-checker security:check composer.lock
17+
18+
vendor/bin/phpunit
19+
vendor/bin/diffFilter --phpunit diff.txt build/logs/clover.xml 80

composer.json

Lines changed: 56 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,62 @@
11
{
2-
"preferred-install": "dist",
2+
"name" : "joindin/joindin-api",
3+
"description" : "The API-backend that powers joind.in",
4+
"keywords" : ["joind.in", "events", "talks", "speaking", "feedback"],
5+
"homepage" : "https://api.joind.in",
6+
"license" : "BSD-3-Clause",
7+
"support" : {
8+
"issues" : "https://github.com/joindin/joindin-api/issues",
9+
"irc" : "irc://freenet/#joindin",
10+
"source" : "https://github.com/joindin/joindin-api"
11+
},
312
"require" : {
4-
"swiftmailer/swiftmailer": "v5.0.3",
5-
"michelf/php-markdown": "1.4.0",
13+
"ext-pdo": "*",
14+
"ext-json": "*",
15+
"swiftmailer/swiftmailer": "^v5.4.9",
16+
"michelf/php-markdown": "^1.8",
617
"guzzlehttp/guzzle": "^4.2.4",
718
"guzzlehttp/oauth-subscriber": "0.1.*"
19+
},
20+
"require-dev": {
21+
"exussum12/coverage-checker": "^0.11.0",
22+
"jakub-onderka/php-parallel-lint": "^1.0",
23+
"phpunit/dbunit": "^2.0",
24+
"phpunit/phpunit": "^5.7",
25+
"roave/security-advisories": "dev-master",
26+
"squizlabs/php_codesniffer": "^3.4",
27+
"sensiolabs/security-checker": "^5.0"
28+
},
29+
"autoload" : {
30+
"psr-4" : {
31+
"Joindin\\Modifier\\" : "src/Modifier/"
32+
},
33+
"classmap" : [
34+
"src/controllers",
35+
"src/inc",
36+
"src/models",
37+
"src/routers",
38+
"src/services",
39+
"src/views"
40+
]
41+
},
42+
"autoload-dev" : {
43+
"psr-4" : {
44+
"JoindinTest\\" : "tests/"
45+
},
46+
"classmap" : [
47+
"tests/controllers",
48+
"tests/inc",
49+
"tests/models",
50+
"tests/routers",
51+
"tests/views"
52+
]
53+
},
54+
"config" : {
55+
"preferred-install": "dist",
56+
"platform" : {
57+
"php": "5.6.6"
58+
},
59+
"sort-packages" : true,
60+
"optimize-autoloader" : true
861
}
962
}

0 commit comments

Comments
 (0)