Skip to content

Commit

Permalink
Merge branch 'release/3.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
EmanueleDessi committed Oct 25, 2019
2 parents 511c145 + cf642c7 commit d60b2dd
Show file tree
Hide file tree
Showing 8 changed files with 4,496 additions and 32 deletions.
73 changes: 69 additions & 4 deletions .circleci/config.yml
Expand Up @@ -53,11 +53,67 @@ jobs:
command: |
npm run test-chrome
# Push Coverage Data
coveralls:
docker:
# specify the version you desire here
- image: circleci/node:11.8.0-stretch-browsers

working_directory: ~/repo

steps:
# Checkout project
- checkout

# Checkout project
- run:
name: Checkout master
command: git checkout master

# TODO controll comment
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

# Using to create folder for the selenium installation
- run: mkdir test-reports

- run:
name: Download Selenium
command:
curl -O http://selenium-release.storage.googleapis.com/3.5/selenium-server-standalone-3.5.3.jar

- run:
name: Start Selenium
command:
java -jar selenium-server-standalone-3.5.3.jar -log test-reports/selenium.log
background: true

# Install npm
- run: npm install

# TODO
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

# Run test
# TODO integrate other browser
- run:
name: Testing a component on Browsers
command:
npm run test-chrome

# Push Coveralls data in their server
- run:
name: Push coverage data
command: |
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
rm -rf ./coverage
deploy:
docker:
# specify the version you desire here
Expand Down Expand Up @@ -89,12 +145,21 @@ workflows:
ignore: /.*/
tags:
only: /.*/
- deploy:
context: deploy
- coveralls:
requires:
- test
filters:
branches:
ignore: /.*/
tags:
only: /.*/
- deploy:
context: deploy
requires:
- test
- coveralls
filters:
branches:
ignore: /.*/
tags:
only: /.*/

0 comments on commit d60b2dd

Please sign in to comment.