mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
CI settings (#524)
* add test with coverage to travis * update circle-ci settings
This commit is contained in:
@@ -14,7 +14,7 @@ jobs:
|
||||
key: alfresco-content-app-{{ .Branch }}-{{ checksum "package.json" }}
|
||||
paths:
|
||||
- "node_modules"
|
||||
- run: xvfb-run -a npm run test:ci
|
||||
- run: xvfb-run -a npm run test:pr
|
||||
lint:
|
||||
working_directory: ~/alfresco-content-app
|
||||
docker:
|
||||
|
||||
+8
-1
@@ -15,10 +15,17 @@ before_script:
|
||||
# Disable services enabled by default
|
||||
- sudo /etc/init.d/postgresql stop
|
||||
|
||||
before_install:
|
||||
- export DISPLAY=:99.0
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
- sleep 3 # give xvfb some time to start
|
||||
|
||||
install:
|
||||
- npm install -g npm@latest
|
||||
- npm ci
|
||||
|
||||
script:
|
||||
# - docker-compose stop
|
||||
- npm run build && npm run e2e:docker
|
||||
- npm run build
|
||||
- npm run test:ci
|
||||
- npm run e2e:docker
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
"build:tomcat": "npm run server-versions && ng build --base-href ./",
|
||||
"build:electron": "npm run server-versions && ng build --output-path www --base-href ./",
|
||||
"test": "ng test --code-coverage",
|
||||
"test:pr": "ng test --single-run --no-progress",
|
||||
"test:ci": "ng test --code-coverage --single-run --no-progress && cat ./coverage/lcov.info | ./node_modules/.bin/codacy-coverage && rm -rf ./coverage",
|
||||
"lint": "ng lint",
|
||||
"server-versions": "rimraf ./src/versions.json && npm list --depth=0 --json=true --prod=true > ./src/versions.json || exit 0",
|
||||
|
||||
Reference in New Issue
Block a user