From eec6c13bc487586f1a3b7951e844f5a33747dc5f Mon Sep 17 00:00:00 2001 From: vamsee Date: Fri, 12 Apr 2019 12:57:39 +0530 Subject: [PATCH] Deleting .gitlab-ci.yml --- .gitlab-ci.yml | 107 ------------------------------------------------- 1 file changed, 107 deletions(-) delete mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 944ae0b..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,107 +0,0 @@ -stages: - - pre-build - - pre-build-test - -image: $REGISTRY/evfoundation-executor-docker13:node8alpine36 -variables: - REGISTRY: registry.${DOMAIN_NAME} - -before_script: - - export project=${CI_PROJECT_NAME//[^[:alnum:]]/} - - export group=${CI_PROJECT_NAMESPACE//[^[:alnum:]]/} - - export branch=${CI_BUILD_REF_NAME//[^[:alnum:]]/} - - export pipelineId=${CI_PIPELINE_ID//[^[:alnum:]]/} - -npminstall: - stage: pre-build - script: - - echo "Performing code style check..." - - status_eslint=0 - - exit_status=0 - - npm set progress=false - - npm config set registry http://10.188.25.62:9002/ - - time npm install eslint babel-eslint --no-optional - - if npm run lint; then status_eslint=0; else status_eslint=1; fi - - if [ $status_eslint == 1 ]; then exit_status=1 && echo "esLint errors exist"; fi - - if [ $exit_status == 1 ]; then exit $exit_status; fi - - echo "Code style check done successfully" - - time npm install --no-optional - - echo "Node Modules Installed" - - npm config rm registry - - npm audit --json >vulnerabilities.json - - status_vulnerabilities='echo $?' - - npm audit - - if [ $status_vulnerabilities == 1 ]; then exit_status=1 && echo "Dependency vulnerabilities exist"; fi - - if [ $exit_status == 1 ]; then exit $exit_status; fi - artifacts: - untracked: true - expire_in: 2h - paths: - - node_modules/ - tags: - - CEP_RUNNER_EE - - -mongotest: - stage: pre-build-test - script: - - echo 'Performing MongoDB Test' - - export NODE_ENV=mongo - - export MONGO_HOST="10.73.53.144" - - export DB=mongo - - export DB_NAME=${CI_PIPELINE_ID}_mongo - - npm config set registry http://10.188.25.62:9002/ - - time npm install --no-optional - - npm run grunt-cover - artifacts: - untracked: true - expire_in: 2h - paths: - - coverage/ - when: on_failure - tags: - - CEP_RUNNER_EE - -postgrestest: - stage: pre-build-test - script: - - echo 'Performing PostgreSQL Test' - - export NODE_ENV=postgres - - export DB=postgres - - export POSTGRES_HOST="10.73.53.144" - - export DB_NAME=${CI_PIPELINE_ID}_pg - - export ENABLE_DS_AUTOUPDATE=true - - npm config set registry http://10.188.25.62:9002/ - - time npm install --no-optional - - npm run grunt-cover - tags: - - CEP_RUNNER_EE - -oracletest: - image: $REGISTRY/debian-node-oracle-docker - stage: pre-build-test - script: - - echo 'Performing Oracle Test' - - export APP_TAG=oracle - - export NODE_ENV=oracle - - export ORACLE_HOST=10.73.53.144 - - export ORACLE_SYSUSER=oeadmin - - export ORACLE_SYSPASSWORD=oeadmin - - export ORACLE_SID=ORCLCDB - - export DB_NAME=${CI_PIPELINE_ID}_pg - - export ENABLE_DS_AUTOUPDATE=true - - npm config set registry http://10.188.25.62:9002/ - - time npm install git+http://evgit/oecloud.io/oe-connector-oracle.git --no-optional - - time npm install --no-optional - - mv /oracledb node_modules/ - - export CI_PROJECT_NAMESPACE=${group} - - node test/oracle-utility.js - - export ORACLE_USERNAME=${CI_PROJECT_NAMESPACE}"-"${CI_PROJECT_NAME} - - export ORACLE_USERNAME=$(echo $ORACLE_USERNAME | tr '[:lower:]' '[:upper:]') - - export ORACLE_PASSWORD=$(echo $CI_PROJECT_NAMESPACE | tr '[:upper:]' '[:lower:]') - - echo "Oracle user details:"${ORACLE_USERNAME}"/"${ORACLE_PASSWORD} - - npm run grunt-cover - tags: - - CEP_RUNNER_EE - -