Commit bf8562c4 authored by Mehmet Kozan's avatar Mehmet Kozan

ci test commit.

parent 6627ff89
Pipeline #14826119 passed with stages
in 1 minute and 49 seconds
......@@ -10,6 +10,7 @@ package_install:
script:
- pwd
- npm install --save --save-dev --save-exact
- echo "end of package_install script"
mocha_test:
stage: test
......@@ -17,6 +18,7 @@ mocha_test:
- pwd
- npm install --save --save-dev --save-exact
- npm run test
- echo "end of mocha_test script"
npm_package:
stage: deploy
......@@ -24,6 +26,8 @@ npm_package:
- pwd
- cd ..
- pwd
- git config --global user.email $GIT_EMAIL
- git config --global user.name $GIT_USER
- rm -rf npm_package_install
- mkdir npm_package_install
- cd npm_package_install
......@@ -32,6 +36,15 @@ npm_package:
- cd crawler-url-parser
- npm install --save --save-dev --save-exact
- npm run test
- echo $CI_PROJECT_NAME
- REPO_VERSION=$(npm view $CI_PROJECT_NAME version)
- CURRENT_VERSION=$(node -p "require('./package.json').version")
- |
if [ "${REPO_VERSION}" -ne "${CURRENT_VERSION}" ]; then
echo "repo version not equalto current version"
git tag "${CURRENT_VERSION}"
fi
- echo "end of npm_package script"
except:
- tags
......@@ -42,11 +55,12 @@ npm_publish:
- tags
script:
- pwd
- git config --global user.email "[email protected]"
- git config --global user.name "mehmet.kozan"
- npm version ${CI_BUILD_TAG}
- echo //registry.npmjs.org/:_authToken=${NPM_TOKEN}
- echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > ~/.npmrc
- echo "before npm publish"
- git config --global user.email $GIT_EMAIL
- git config --global user.name $GIT_USER
- echo $CI_COMMIT_TAG
- echo $CI_BUILD_TAG
#- npm version $CI_BUILD_TAG
- echo //registry.npmjs.org/:_authToken=$NPM_TOKEN
- echo //registry.npmjs.org/:_authToken=$NPM_TOKEN > ~/.npmrc
- npm publish
- echo "after npm publish"
\ No newline at end of file
- echo "end of npm_publish script"
\ No newline at end of file
......@@ -6,8 +6,6 @@
[![version](https://img.shields.io/npm/v/crawler-url-parser.svg)](https://www.npmjs.org/package/crawler-url-parser)
[![downloads](https://img.shields.io/npm/dt/crawler-url-parser.svg)](https://www.npmjs.org/package/crawler-url-parser)
[![node](https://img.shields.io/node/v/crawler-url-parser.svg)](https://nodejs.org/)
[![dependencies](https://david-dm.org/mehmet.kozan/crawler-url-parser.svg)](https://david-dm.org/mehmet.kozan/crawler-url-parser)
[![devDependencies](https://david-dm.org/mehmet.kozan/crawler-url-parser/dev-status.svg)](https://david-dm.org/mehmet.kozan/crawler-url-parser#info=devDependencies)
[![status](https://gitlab.com/mehmet.kozan/crawler-url-parser/badges/master/pipeline.svg)](https://gitlab.com/mehmet.kozan/crawler-url-parser/commits/master)
## Installation
......
{
"name": "crawler-url-parser",
"version": "1.3.1",
"version": "1.3.5",
"description": "An `URL` parser for crawling purpose.",
"main": "crawler-url-parser.js",
"keywords": [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment