From 0c932b7ded9680a85cfadb82e74514aac431e38c Mon Sep 17 00:00:00 2001 From: Pedro Henrique Date: Sat, 5 May 2018 23:15:05 -0300 Subject: [PATCH 01/10] added script sonar to check github --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index eb34a25..133212d 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,6 @@ ![Github All Releases](https://img.shields.io/github/downloads/pedroarapua/coveralls-teste/total.svg) ![Travis branch](https://img.shields.io/travis/pedroarapua/coveralls-teste.svg) [![Coverage Status](https://coveralls.io/repos/pedroarapua/coveralls-teste/badge.svg?branch=master)](https://coveralls.io/r/pedroarapua/coveralls-teste?branch=master) -[![Quality Gate](https://sonarcloud.io/api/badges/gate?key=coveralls-teste)](https://sonarcloud.io/dashboard/index/coveralls-teste) \ No newline at end of file +[![Quality Gate](https://sonarcloud.io/api/badges/gate?key=coveralls-teste)](https://sonarcloud.io/dashboard/index/coveralls-teste) + +ola teste \ No newline at end of file From e6e9a77c93b1fcbfabf69077ab1e3171a64fc514 Mon Sep 17 00:00:00 2001 From: Pedro Henrique Date: Sat, 5 May 2018 23:55:04 -0300 Subject: [PATCH 02/10] added script sonar to check github --- .circleci/config.yml | 45 +++++++++++++++----------------------------- 1 file changed, 15 insertions(+), 30 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3b51bb4..1970c0d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,21 +3,24 @@ defaults: &defaults docker: - image: circleci/node:8.9 +steps_project: &steps_project + - checkout # special step to check out source code to working directory + - restore_cache: # special step to restore the dependency cache + key: dependency-cache-{{ checksum "package.json" }} + - run: + name: "setup project" + command: "scripts/setup" + - save_cache: # special step to save the dependency cache + key: dependency-cache-{{ checksum "package.json" }} + paths: + - ./node_modules + version: 2 jobs: test: <<: *defaults steps: # a collection of executable commands - - checkout # special step to check out source code to working directory - - restore_cache: # special step to restore the dependency cache - key: dependency-cache-{{ checksum "package.json" }} - - run: - name: "setup project" - command: "scripts/setup" - - save_cache: # special step to save the dependency cache - key: dependency-cache-{{ checksum "package.json" }} - paths: - - ./node_modules + - *steps_project - run: name: "pre test" command: "scripts/stages/pre-test" @@ -44,16 +47,7 @@ jobs: deploy-staging: <<: *defaults steps: # a collection of executable commands - - checkout # special step to check out source code to working directory - - restore_cache: # special step to restore the dependency cache - key: dependency-cache-{{ checksum "package.json" }} - - run: - name: "install npm depencencies" - command: npm install - - save_cache: # special step to save the dependency cache - key: dependency-cache-{{ checksum "package.json" }} - paths: - - ./node_modules + - *steps_project - run: name: "Pre Deploy" command: "scripts/stages/pre-deploy-staging" @@ -64,16 +58,7 @@ jobs: deploy-production: <<: *defaults steps: # a collection of executable commands - - checkout # special step to check out source code to working directory - - restore_cache: # special step to restore the dependency cache - key: dependency-cache-{{ checksum "package.json" }} - - run: - name: "install npm depencencies" - command: npm install - - save_cache: # special step to save the dependency cache - key: dependency-cache-{{ checksum "package.json" }} - paths: - - ./node_modules + - *steps_project - run: name: "Pre Deploy" command: "scripts/stages/pre-deploy" From 8a66d375edfd750d43c92cbb1e649ee727bdc323 Mon Sep 17 00:00:00 2001 From: Pedro Henrique Date: Sun, 6 May 2018 00:07:41 -0300 Subject: [PATCH 03/10] added script sonar to check github --- .circleci/config.yml | 66 +++++++++++++++++++++++++------------------- 1 file changed, 37 insertions(+), 29 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1970c0d..467672f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,24 +3,26 @@ defaults: &defaults docker: - image: circleci/node:8.9 -steps_project: &steps_project - - checkout # special step to check out source code to working directory - - restore_cache: # special step to restore the dependency cache - key: dependency-cache-{{ checksum "package.json" }} - - run: - name: "setup project" - command: "scripts/setup" - - save_cache: # special step to save the dependency cache - key: dependency-cache-{{ checksum "package.json" }} - paths: - - ./node_modules + +default_filters_tag: &default_filters_tag + tags: + only: /v.*/ version: 2 jobs: test: <<: *defaults steps: # a collection of executable commands - - *steps_project + - checkout # special step to check out source code to working directory + - restore_cache: # special step to restore the dependency cache + key: dependency-cache-{{ checksum "package.json" }} + - run: + name: "setup project" + command: "scripts/setup" + - save_cache: # special step to save the dependency cache + key: dependency-cache-{{ checksum "package.json" }} + paths: + - ./node_modules - run: name: "pre test" command: "scripts/stages/pre-test" @@ -47,7 +49,16 @@ jobs: deploy-staging: <<: *defaults steps: # a collection of executable commands - - *steps_project + - checkout # special step to check out source code to working directory + - restore_cache: # special step to restore the dependency cache + key: dependency-cache-{{ checksum "package.json" }} + - run: + name: "install npm depencencies" + command: npm install + - save_cache: # special step to save the dependency cache + key: dependency-cache-{{ checksum "package.json" }} + paths: + - ./node_modules - run: name: "Pre Deploy" command: "scripts/stages/pre-deploy-staging" @@ -58,7 +69,16 @@ jobs: deploy-production: <<: *defaults steps: # a collection of executable commands - - *steps_project + - checkout # special step to check out source code to working directory + - restore_cache: # special step to restore the dependency cache + key: dependency-cache-{{ checksum "package.json" }} + - run: + name: "install npm depencencies" + command: npm install + - save_cache: # special step to save the dependency cache + key: dependency-cache-{{ checksum "package.json" }} + paths: + - ./node_modules - run: name: "Pre Deploy" command: "scripts/stages/pre-deploy" @@ -79,11 +99,7 @@ workflows: - release: requires: - test - filters: - branches: - ignore: /.*/ - tags: - only: /v.*/ + filters: *default_filters_tag - "approval-stage": type: approval requires: @@ -95,16 +111,8 @@ workflows: type: approval requires: - release - filters: - branches: - ignore: /.*/ - tags: - only: /v.*/ + filters: *default_filters_tag - "deploy-production": requires: - "approval-production" - filters: - branches: - ignore: /.*/ - tags: - only: /v.*/ \ No newline at end of file + filters: *default_filters_tag \ No newline at end of file From 11782c813d5a0df7f0624ababa7c64fcd991b77c Mon Sep 17 00:00:00 2001 From: Pedro Henrique Date: Sun, 6 May 2018 00:09:27 -0300 Subject: [PATCH 04/10] added script sonar to check github --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 467672f..6de9d47 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,6 +5,8 @@ defaults: &defaults default_filters_tag: &default_filters_tag + branches: + ignore: /.*/ tags: only: /v.*/ From 95f24bdc5ba3f4cb4246c0b7f636334f32311fec Mon Sep 17 00:00:00 2001 From: Pedro Henrique Date: Sun, 6 May 2018 00:09:50 -0300 Subject: [PATCH 05/10] 1.0.13 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 26853c2..c27c93f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "coveralls-teste", - "version": "1.0.12", + "version": "1.0.13", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index c3fed3b..9ff5290 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coveralls-teste", - "version": "1.0.12", + "version": "1.0.13", "description": "", "main": "index.js", "scripts": { From 22ba44c8814059885d40bf737b546411691d56b6 Mon Sep 17 00:00:00 2001 From: Pedro Henrique Date: Sun, 6 May 2018 00:29:50 -0300 Subject: [PATCH 06/10] added script sonar to check github --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 133212d..8b2e224 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,4 @@ [![Coverage Status](https://coveralls.io/repos/pedroarapua/coveralls-teste/badge.svg?branch=master)](https://coveralls.io/r/pedroarapua/coveralls-teste?branch=master) [![Quality Gate](https://sonarcloud.io/api/badges/gate?key=coveralls-teste)](https://sonarcloud.io/dashboard/index/coveralls-teste) -ola teste \ No newline at end of file +ola teste1 \ No newline at end of file From 704fb6b585b8f458f41c120cb49b8c80c893f929 Mon Sep 17 00:00:00 2001 From: Pedro Henrique Date: Sun, 6 May 2018 00:40:33 -0300 Subject: [PATCH 07/10] added script sonar to check github --- .circleci/config.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6de9d47..487b7b7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,7 @@ defaults: &defaults default_filters_tag: &default_filters_tag branches: - ignore: /.*/ + ignore: /^pull\/.*/ tags: only: /v.*/ @@ -106,9 +106,15 @@ workflows: type: approval requires: - test + filters: + branches: + ignore: /^pull\/.*/ - "deploy-staging": requires: - "approval-stage" + filters: + branches: + ignore: /^pull\/.*/ - "approval-production": type: approval requires: From 45b145e744185aedd8a593aeeb044f9ea0a0aa1c Mon Sep 17 00:00:00 2001 From: Pedro Henrique Date: Sun, 6 May 2018 15:59:59 -0300 Subject: [PATCH 08/10] added script sonar to check github --- .circleci/config.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 487b7b7..467672f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,8 +5,6 @@ defaults: &defaults default_filters_tag: &default_filters_tag - branches: - ignore: /^pull\/.*/ tags: only: /v.*/ @@ -106,15 +104,9 @@ workflows: type: approval requires: - test - filters: - branches: - ignore: /^pull\/.*/ - "deploy-staging": requires: - "approval-stage" - filters: - branches: - ignore: /^pull\/.*/ - "approval-production": type: approval requires: From 5a704971e6638c50874439f0819810863c2f45f0 Mon Sep 17 00:00:00 2001 From: Pedro Henrique Date: Sun, 6 May 2018 16:03:35 -0300 Subject: [PATCH 09/10] added script sonar to check github --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 467672f..6de9d47 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,6 +5,8 @@ defaults: &defaults default_filters_tag: &default_filters_tag + branches: + ignore: /.*/ tags: only: /v.*/ From 16b6ede902f6472aaaf9d0571ed752bde523eb1d Mon Sep 17 00:00:00 2001 From: Pedro Henrique Date: Sun, 6 May 2018 16:04:03 -0300 Subject: [PATCH 10/10] 1.0.14 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index c27c93f..74a8235 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "coveralls-teste", - "version": "1.0.13", + "version": "1.0.14", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 9ff5290..9064b06 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coveralls-teste", - "version": "1.0.13", + "version": "1.0.14", "description": "", "main": "index.js", "scripts": {