mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
[ACA-1283] CircleCI settings (#287)
This commit is contained in:
parent
a73d3597a4
commit
8f3ccc7b38
16
.circleci/config.yml
Normal file
16
.circleci/config.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
version: 2
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
working_directory: ~/alfresco-content-app
|
||||||
|
docker:
|
||||||
|
- image: circleci/node:8-browsers
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
key: alfresco-content-app-{{ .Branch }}-{{ checksum "package.json" }}
|
||||||
|
- run: npm install
|
||||||
|
- save_cache:
|
||||||
|
key: alfresco-content-app-{{ .Branch }}-{{ checksum "package.json" }}
|
||||||
|
paths:
|
||||||
|
- "node_modules"
|
||||||
|
- run: xvfb-run -a npm run test:ci
|
@ -11,6 +11,7 @@
|
|||||||
"build:dev": "npm run server-versions && ng build && node postbuild-dev.js",
|
"build:dev": "npm run server-versions && ng build && node postbuild-dev.js",
|
||||||
"build:tomcat": "npm run server-versions && ng build --base-href ./",
|
"build:tomcat": "npm run server-versions && ng build --base-href ./",
|
||||||
"test": "ng test --code-coverage",
|
"test": "ng test --code-coverage",
|
||||||
|
"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",
|
"lint": "ng lint",
|
||||||
"e2e": "ng e2e",
|
"e2e": "ng e2e",
|
||||||
"server-versions": "rimraf ./src/versions.json && npm list --depth=0 --json=true --prod=true > ./src/versions.json || exit 0"
|
"server-versions": "rimraf ./src/versions.json && npm list --depth=0 --json=true --prod=true > ./src/versions.json || exit 0"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user