diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ded50cf9ada2c24122c3d3964a16a394dcd5d973..6c7147e7bbada1b2fa4b51c348e67ebe316bd1b3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,44 +1,10 @@ -stages: - - prepare - - test - - build - -default: - image: node:15.14.0-stretch - before_script: - - npm set cache .npm - - npm install --prefer-offline --no-audit - cache: - key: ${CI_COMMIT_REF_SLUG} - paths: - - .npm/ - - node_modules/ - -install-node-deps: - stage: prepare - before_script: - - node --version - - npm --version - script: - - npm ci --cache .npm --prefer-offline - only: - changes: - - package*.json - -lint: - stage: test - script: - - npm run lint - - npm run stylelint - -build-frontend: - stage: build - script: - - npm run build - - mkdir -p dist/email-recovery - - rm dist/js/*.map - - cp -a appinfo css l10n lib templates recovery-email-setting.png dist/js dist/email-recovery - - cd dist/ && tar -czf email-recovery.tar.gz email-recovery - artifacts: - paths: - - dist/email-recovery.tar.gz +variables: + TO_PACKAGE: 'appinfo css l10n lib templates dist/js' + +include: + - project: 'e/infra/ecloud/nextcloud-apps/ci-templates' + ref: dev/frontend-build + file: 'nc-apps-lint-build-frontend.yml' + - project: 'e/infra/ecloud/nextcloud-apps/ci-templates' + ref: dev/frontend-build + file: 'nc-apps-deploy.yml'