CI settings (#524)

* add test with coverage to travis

* update circle-ci settings
This commit is contained in:
Denys Vuika
2018-07-20 19:57:16 +01:00
committed by GitHub
parent 97db087c4d
commit d9e59cfd73
3 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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
+1
View File
@@ -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",