diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-07-05 11:34:35 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-07-16 08:39:16 +0300 |
commit | 47327c5dd5601a9efb690aa10f67799a405e3d21 (patch) | |
tree | ef22b886dd1a51991cd64f4e59841b5c63613ac1 /.drone.yml | |
parent | 8432acb740b2ccd69adb96720c8ee7d164b52427 (diff) |
Add drone for frontend
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 00000000..0ff5df96 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,91 @@ +kind: pipeline +name: compatibility +steps: + - name: compatibility + image: nextcloudci/php7.0:php7.0-19 + environment: + APP_NAME: richdocuments + CORE_BRANCH: stable15 + DB: sqlite + commands: + - composer install + - bash ./tests/drone-server-setup.sh $APP_NAME $CORE_BRANCH $DB + - cd ../server + - ./occ app:check-code $APP_NAME -c strong-comparison + - ./occ app:check-code $APP_NAME -c deprecation +trigger: + branch: + - master + event: + - pull_request + - push +--- +kind: pipeline +name: syntax +steps: + - name: syntax-php7.0 + image: nextcloudci/php7.0:php7.0-19 + commands: + - composer install + - ./vendor/bin/parallel-lint --exclude ./vendor/ . + - name: syntax-php7.1 + image: nextcloudci/php7.1:php7.1-15 + commands: + - composer install + - ./vendor/bin/parallel-lint --exclude ./vendor/ . + - name: syntax-php7.2 + image: nextcloudci/php7.2:php7.2-9 + commands: + - composer install + - ./vendor/bin/parallel-lint --exclude ./vendor/ . + - name: syntax-php7.3 + image: nextcloudci/php7.3:php7.3-2 + commands: + - composer install + - ./vendor/bin/parallel-lint --exclude ./vendor/ . +trigger: + branch: + - master + event: + - pull_request + - push +--- +kind: pipeline +name: frontend +steps: + - name: eslint + image: node:lts-alpine + commands: + - npm install + - npm run lint + - name: stylelint + image: node:lts-alpine + commands: + - npm install + - npm run stylelint + - name: build + image: node:lts-alpine + commands: + - npm install + - npm run build +trigger: + branch: + - master + event: + - pull_request + - push +--- +kind: pipeline +name: jest +steps: + - name: jest + image: node:lts-alpine + commands: + - npm install + - npm run test +trigger: + branch: + - master + event: + - pull_request + - push |