summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.drone.yml71
-rw-r--r--composer.json3
-rw-r--r--composer.lock55
3 files changed, 125 insertions, 4 deletions
diff --git a/.drone.yml b/.drone.yml
index 334b38f2..8675760d 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -4,6 +4,71 @@ clone:
depth: 1
pipeline:
+ check-app-compatbility:
+ image: nextcloudci/php7.0:php7.0-17
+ environment:
+ - APP_NAME=social
+ - CORE_BRANCH=stable15
+ - DB=sqlite
+ commands:
+ # Pre-setup steps
+ - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
+ - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
+ - cd ../server
+ # Code checker
+ - ./occ app:check-code $APP_NAME -c strong-comparison
+ - ./occ app:check-code $APP_NAME -c deprecation
+ when:
+ matrix:
+ TESTS: check-app-compatbility
+ syntax-php7.0:
+ image: nextcloudci/php7.0:php7.0-17
+ environment:
+ - APP_NAME=social
+ - CORE_BRANCH=stable15
+ - DB=sqlite
+ commands:
+ - composer install
+ - ./vendor/bin/parallel-lint --exclude ./vendor/ .
+ when:
+ matrix:
+ TESTS: syntax-php7.0
+ syntax-php7.1:
+ image: nextcloudci/php7.1:php7.1-15
+ environment:
+ - APP_NAME=social
+ - CORE_BRANCH=stable15
+ - DB=sqlite
+ commands:
+ - composer install
+ - ./vendor/bin/parallel-lint --exclude ./vendor/ .
+ when:
+ matrix:
+ TESTS: syntax-php7.1
+ syntax-php7.2:
+ image: nextcloudci/php7.2:php7.2-9
+ environment:
+ - APP_NAME=social
+ - CORE_BRANCH=stable15
+ - DB=sqlite
+ commands:
+ - composer install
+ - ./vendor/bin/parallel-lint --exclude ./vendor/ .
+ when:
+ matrix:
+ TESTS: syntax-php7.2
+ syntax-php7.3:
+ image: nextcloudci/php7.3:php7.3-2
+ environment:
+ - APP_NAME=social
+ - CORE_BRANCH=stable15
+ - DB=sqlite
+ commands:
+ - composer install
+ - ./vendor/bin/parallel-lint --exclude ./vendor/ .
+ when:
+ matrix:
+ TESTS: syntax-php7.3
eslint:
image: nextcloudci/jsunit:jsunit-5
commands:
@@ -12,7 +77,6 @@ pipeline:
when:
matrix:
TESTS: eslint
-
vue-build:
image: nextcloudci/jsunit:jsunit-5
commands:
@@ -24,6 +88,11 @@ pipeline:
matrix:
include:
+ - TESTS: check-app-compatbility
+ - TESTS: syntax-php7.0
+ - TESTS: syntax-php7.1
+ - TESTS: syntax-php7.2
+ - TESTS: syntax-php7.3
- TESTS: eslint
- TESTS: vue-build
diff --git a/composer.json b/composer.json
index 3bf0a3c8..d83a222f 100644
--- a/composer.json
+++ b/composer.json
@@ -11,5 +11,8 @@
],
"require": {
"daita/my-small-php-tools": "dev-master"
+ },
+ "require-dev": {
+ "jakub-onderka/php-parallel-lint": "^1.0"
}
}
diff --git a/composer.lock b/composer.lock
index 9b755307..c7fe3756 100644
--- a/composer.lock
+++ b/composer.lock
@@ -1,10 +1,10 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "02220c2a6087d409a5e53060ee20c47e",
+ "content-hash": "17d7e7fc4c9cdd0ddc5d6166607fce8f",
"packages": [
{
"name": "daita/my-small-php-tools",
@@ -43,7 +43,56 @@
"time": "2018-12-04T10:09:31+00:00"
}
],
- "packages-dev": [],
+ "packages-dev": [
+ {
+ "name": "jakub-onderka/php-parallel-lint",
+ "version": "v1.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/JakubOnderka/PHP-Parallel-Lint.git",
+ "reference": "04fbd3f5fb1c83f08724aa58a23db90bd9086ee8"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/JakubOnderka/PHP-Parallel-Lint/zipball/04fbd3f5fb1c83f08724aa58a23db90bd9086ee8",
+ "reference": "04fbd3f5fb1c83f08724aa58a23db90bd9086ee8",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3"
+ },
+ "require-dev": {
+ "jakub-onderka/php-console-highlighter": "~0.3",
+ "nette/tester": "~1.3",
+ "squizlabs/php_codesniffer": "~2.7"
+ },
+ "suggest": {
+ "jakub-onderka/php-console-highlighter": "Highlight syntax in code snippet"
+ },
+ "bin": [
+ "parallel-lint"
+ ],
+ "type": "library",
+ "autoload": {
+ "classmap": [
+ "./"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-2-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Jakub Onderka",
+ "email": "ahoj@jakubonderka.cz"
+ }
+ ],
+ "description": "This tool check syntax of PHP files about 20x faster than serial check.",
+ "homepage": "https://github.com/JakubOnderka/PHP-Parallel-Lint",
+ "time": "2018-02-24T15:31:20+00:00"
+ }
+ ],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": {