-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
4,752 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"env": { | ||
"es6": true, | ||
"node": true, | ||
"mocha": true | ||
}, | ||
"extends": "airbnb-base", | ||
"rules": { | ||
"no-control-regex": "off", | ||
"indent": ["error", 4], | ||
"no-param-reassign": "off", | ||
"prefer-destructuring": "off", | ||
"no-use-before-define": ["error", { "functions": false, "classes": true }], | ||
"comma-dangle": ["error", "never"], | ||
"no-bitwise": ["error", { "int32Hint": true }], | ||
"strict": "off", | ||
"no-buffer-constructor": "off", | ||
"no-underscore-dangle": "off", | ||
"class-methods-use-this": "off", | ||
"func-names": "off", | ||
"max-len": ["error", 120, 2, { | ||
"ignoreUrls": true, | ||
"ignoreComments": false, | ||
"ignoreRegExpLiterals": true, | ||
"ignoreStrings": true, | ||
"ignoreTemplateLiterals": true | ||
}] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/* text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.vscode/ | ||
.nyc_output/ | ||
node_modules/ | ||
rpmbuild/ | ||
_build/ | ||
dist/ | ||
**/.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
image: node:8 | ||
|
||
stages: | ||
- build | ||
- test | ||
|
||
build_package: | ||
stage: build | ||
script: | ||
- echo 'CI BUILD' | ||
# install packages first | ||
- npm run install | ||
- bash ./scripts/build_rpm.sh | ||
tags: | ||
- cm-official-docker-executor | ||
artifacts: | ||
name: build-package-$CI_BUILD_REF | ||
paths: | ||
- dist | ||
expire_in: 1 month | ||
|
||
test_package: | ||
stage: test | ||
script: | ||
# install jq | ||
- apt-get update | ||
- apt-get install -y jq | ||
# install node modules | ||
- npm run install | ||
# npm audit - install includes audit, but perform specific check and fail if needed | ||
- audit_report=$(npm audit --json) | ||
- echo $audit_report | ||
- actions=$(echo $audit_report | jq .actions | jq length) | ||
- if [ $actions -ne 0 ]; then echo 'ERROR! vulnerabilities exist'; exit 1; fi | ||
# linter | ||
- npm run lint | ||
# unit tests | ||
- npm run test && npm run report | ||
artifacts: | ||
name: ${CI_COMMIT_REF_NAME}_unittests_coverage | ||
paths: | ||
- coverage | ||
tags: | ||
- cm-official-docker-executor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# f5-failover | ||
# f5-cloud-failover | ||
|
||
F5 Failover Extension | ||
F5 Cloud Failover Extension |
Oops, something went wrong.