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

feat test yaml

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