Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jsevedge committed Mar 21, 2019
1 parent 3e7ad2e commit 409c47f
Show file tree
Hide file tree
Showing 12 changed files with 4,752 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .eslintrc.json
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
}]
}
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/* text eol=lf
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.vscode/
.nyc_output/
node_modules/
rpmbuild/
_build/
dist/
**/.DS_Store
44 changes: 44 additions & 0 deletions .gitlab-ci.yml
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
4 changes: 2 additions & 2 deletions README.md
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
Loading

0 comments on commit 409c47f

Please sign in to comment.