Implement Rollback job

This commit is contained in:
Nawaz Dhandala
2019-08-02 22:21:24 +05:30
parent 8b5986ff56
commit 504191240b
9 changed files with 2686 additions and 3343 deletions

View File

@@ -11,7 +11,6 @@ stages:
- Deploy_Staging
- Deploy_Production
- Smoke_Test
- Rollback_If_Failed
##BACKEND
lint_n_audit_backend:
@@ -171,6 +170,9 @@ smoke_test_production:
stage: Smoke_Test
script:
- echo "No test implemented"
after_script:
when: on_failure
- echo "Rollback not implemented"
only:
refs:
- release
@@ -181,26 +183,9 @@ smoke_test_staging:
stage: Smoke_Test
script:
- echo "No test implemented"
only:
refs:
- master
environment:
name: production
production_rollback:
stage: Rollback_If_Failed
script:
- echo "No rollback implemented"
only:
refs:
- release
environment:
name: production
staging_rollback:
stage: Rollback_If_Failed
script:
- echo "No rollback implemented"
after_script:
when: on_failure
- echo "Rollback not implemented"
only:
refs:
- master

4163
accounts/package-lock.json generated Executable file → Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -47,7 +47,7 @@
"dev": "NODE_ENV=development nodemon server.js",
"test": "NODE_ENV=development mocha --exit",
"audit": "npm-audit-ci-wrapper --threshold=high",
"lint": "eslint --ignore-path .gitignore ."
"lint": "eslint ."
},
"devDependencies": {
"chai": "^4.1.2",

4
home/.eslintignore Executable file
View File

@@ -0,0 +1,4 @@
/node_modules
/build
/coverage
*.test.js

76
home/.eslintrc.json Executable file
View File

@@ -0,0 +1,76 @@
{
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true,
"spread": true
},
"sourceType": "module"
},
"env": {
"browser": true,
"node": true,
"jquery": true,
"es6": true
},
"plugins": [
"react"
],
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parser": "babel-eslint",
"rules": {
"no-fallthrough": "error",
"no-unreachable": "error",
"no-cond-assign": "error",
"valid-typeof": "error",
"no-func-assign": "error",
"no-extra-semi": "error",
"no-unused-vars": [
"error",
{
"varsIgnorePattern": "[iI]gnored",
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true,
"argsIgnorePattern": "[iI]gnored"
}
],
"no-undef": "error",
"no-empty": "error",
"no-case-declarations": "error",
"no-mixed-spaces-and-tabs": "error",
"no-useless-escape": "error",
"react/jsx-no-undef": "error",
"quotes": ["error", "single"],
"react/jsx-no-bind": ["error", {
"allowArrowFunctions": true,
"allowBind": false,
"ignoreRefs": false
}],
"react/no-children-prop": "error",
"react/no-deprecated": "error",
"react/no-array-index-key": "off",
"react/boolean-prop-naming": "error",
"react/no-is-mounted": "error",
"react/no-find-dom-node": "error",
"react/no-did-update-set-state": "error",
"react/no-unknown-property": "error",
"react/no-unused-prop-types": "error",
"react/jsx-no-duplicate-props": "error",
"react/no-unused-state": "error",
"react/jsx-uses-vars": "error",
"react/prop-types": "error",
"react/react-in-jsx-scope": "error",
"react/no-string-refs": "warn",
"jsx-a11y/href-no-hash": [0],
"react/no-unescaped-entities": "error",
"react/display-name": ["error", {
"ignoreTranspilerName": true
}]
}
}

View File

@@ -4,6 +4,7 @@
"scripts": {
"start": "node server.js",
"test": "echo 'no tests'",
"lint": "eslint .",
"lighthouse-test": "jest lighthouse-tests/test/index.test.js --env=node --detectOpenHandles",
"lighthouse": "start-server-and-test http://localhost:1444",
"smoketest": "jest smoketest/index.test.js --env=node --detectOpenHandles",
@@ -27,6 +28,7 @@
"faker": "^4.1.0",
"jest": "^24.8.0",
"lighthouse": "^2.9.4",
"eslint": "5.16.0",
"npm-audit-ci-wrapper": "^2.2.1",
"puppeteer": "^1.18.0",
"start-server-and-test": "^1.7.0"

View File

@@ -4,6 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"lint": "eslint .",
"pretest": "eslint --fix --ignore-path .gitignore .",
"start": "node index.js",
"dev": "nodemon index.js",

1752
status-page/package-lock.json generated Executable file → Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -56,7 +56,7 @@
"test": "cross-env CI=true react-scripts test --env=jsdom --coverage --coverage",
"e2e": "mocha ./src/test/statusPage.test.js",
"pretest": "npm run lint",
"lint": "eslint --fix --ignore-path .gitignore .",
"lint": "eslint .",
"eject": "react-scripts eject",
"snapshots": "cross-env CI=true react-scripts test --env=jsdom --coverage --coverage",
"snapshots:watch": "react-scripts test --env=jsdom --watchAll",