mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
Feature/ACA-1633 travis dist cache (#1074)
* ACA-1633 add new test stage e2 * cache dist
This commit is contained in:
+32
-25
@@ -8,46 +8,53 @@ language: node_js
|
|||||||
node_js:
|
node_js:
|
||||||
- '10'
|
- '10'
|
||||||
|
|
||||||
env:
|
cache:
|
||||||
matrix:
|
directories:
|
||||||
- DEPLOYMENT=Nginx SUITES=authentication
|
- node_modules
|
||||||
- DEPLOYMENT=Nginx SUITES=listViews
|
- dist
|
||||||
- DEPLOYMENT=Nginx SUITES=application
|
|
||||||
- DEPLOYMENT=Nginx SUITES=navigation
|
|
||||||
- DEPLOYMENT=Nginx SUITES=pagination
|
|
||||||
- DEPLOYMENT=Nginx SUITES=search
|
|
||||||
- DEPLOYMENT=Nginx SUITES=actionsAvailable
|
|
||||||
- DEPLOYMENT=Nginx SUITES=actions
|
|
||||||
- DEPLOYMENT=Nginx SUITES=viewer
|
|
||||||
- DEPLOYMENT=Nginx SUITES=infoDrawer
|
|
||||||
- DEPLOYMENT=Nginx SUITES=extensions
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- sudo /etc/init.d/postgresql stop
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
|
- sudo /etc/init.d/postgresql stop
|
||||||
- npm install -g npm@latest
|
- npm install -g npm@latest
|
||||||
- export DISPLAY=:99.0
|
- export DISPLAY=:99.0
|
||||||
- sh -e /etc/init.d/xvfb start
|
- sh -e /etc/init.d/xvfb start
|
||||||
- sleep 3
|
- sleep 3
|
||||||
|
|
||||||
script: |
|
|
||||||
if [ "$DEPLOYMENT" == "Nginx" ]; then
|
|
||||||
npm run build.e2e && SUITE="--suite $SUITES" npm run e2e:docker
|
|
||||||
else
|
|
||||||
npm run build.tomcat.e2e && SUITE="--suite $SUITES" npm run docker.tomcat.e2e
|
|
||||||
fi
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- name: Quality and Unit tests
|
- name: Quality and Unit tests
|
||||||
|
- name: e2e
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: Quality and Unit tests
|
- stage: Quality and Unit tests
|
||||||
name: 'Code quality checks'
|
name: 'Code quality checks'
|
||||||
script:
|
script: npm run lint
|
||||||
- npm run lint
|
|
||||||
- name: 'Unit tests'
|
- name: 'Unit tests'
|
||||||
script:
|
script:
|
||||||
- npm run test:ci
|
- npm run test:ci
|
||||||
- bash <(curl -s https://codecov.io/bash) -X gcov
|
- bash <(curl -s https://codecov.io/bash) -X gcov
|
||||||
|
- name: 'Prepare dist cache'
|
||||||
|
script: npm run build.e2e
|
||||||
|
- stage: e2e
|
||||||
|
name: Test Suite authentication
|
||||||
|
script: SUITE="--suite authentication" npm run e2e:docker
|
||||||
|
- name: Test Suite listViews
|
||||||
|
script: SUITE="--suite listViews" npm run e2e:docker
|
||||||
|
- name: Test Suite application
|
||||||
|
script: SUITE="--suite application" npm run e2e:docker
|
||||||
|
- name: Test Suite navigation
|
||||||
|
script: SUITE="--suite navigation" npm run e2e:docker
|
||||||
|
- name: Test Suite pagination
|
||||||
|
script: SUITE="--suite pagination" npm run e2e:docker
|
||||||
|
- name: Test Suite search
|
||||||
|
script: SUITE="--suite search" npm run e2e:docker
|
||||||
|
- name: Test Suite actionsAvailable
|
||||||
|
script: SUITE="--suite actionsAvailable" npm run e2e:docker
|
||||||
|
- name: Test Suite actions
|
||||||
|
script: SUITE="--suite actions" npm run e2e:docker
|
||||||
|
- name: Test Suite viewer
|
||||||
|
script: SUITE="--suite viewer" npm run e2e:docker
|
||||||
|
- name: Test Suite infoDrawer
|
||||||
|
script: SUITE="--suite infoDrawer" npm run e2e:docker
|
||||||
|
- name: Test Suite extensions
|
||||||
|
script: SUITE="--suite extensions" npm run e2e:docker
|
||||||
|
|||||||
Reference in New Issue
Block a user