Commit 57ac6ea9 authored by Reza Sahebgharan's avatar Reza Sahebgharan

feat test yaml

parent 347c3642
variables:
TAG_VERSION: ""
stages:
- build
- build_in_branch
- cleanup_build
- build_in_master
build_in_branch:
before_script:
- $env:TAG_VERSION=(git describe --tag --abbrev=0)
stage: build_in_branch
tags:
- shell
script:
- echo "starting build in branch"
- npm install
- npm run test-jest
- echo $env:TAG_VERSION
allow_failure: true
except:
- master
build:
stage: build
build_in_master:
before_script:
- $env:TAG_VERSION=(git describe --tag --abbrev=0)
stage: build_in_master
tags:
- shell
script:
- echo "starting build"
- echo "starting build in master"
- npm install
- npm run test-jest
- npm run release
- git push https://reza.s:qsqzcicpbVxwhGPFBdwx@git.marcopacs.com/Reza.s/karname-ui.git --tags
- docker-compose build --force-rm
allow_failure: true
only:
- master
on_test_failure:
stage: build
script: del /S /F /Q .
on_build_failure:
stage: cleanup_build
script: RD /S /Q "C:\GitLab-Runner\builds"
when: on_failure
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