Skip to content

Commit

Permalink
CO-5154 Github to GitLab source code migration
Browse files Browse the repository at this point in the history
  • Loading branch information
pkandhari authored Dec 27, 2022
1 parent 0bf28db commit b9c388c
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
stages:
- install
- build
- test
- coverage
- deploy

image: node:8

install-job:
stage: install
script:
- npm ci
artifacts:
paths:
- node_modules
tags:
- Tenfold
variables:
JOBS: 8
only:
- branches
- merge_requests
- tags

build-job:
stage: build
script:
- npm build
tags:
- Tenfold
only:
- branches
- merge_requests
- tags

test-job:
stage: test
script:
- npm test -- --coverage
tags:
- Tenfold
variables:
codecov_token: $codecov_token
only:
- branches
- merge_requests
- tags

upload-coverage-job:
stage: coverage
script:
- "bash -c 'bash <(curl -s https://codecov.io/bash)'"
variables:
codecov_token: $codecov_token
tags:
- Tenfold
only:
- branches
- merge_requests
- tags

publish-to-git-job:
stage: deploy
script:
- git config --global user.email "admin@gitlab"
- git config --global user.name "GitLab CI"
- npx publish-to-git --remote https://oauth2:[email protected]/$CI_PROJECT_PATH.git --force
variables:
GITLAB_ACCESS_TOKEN: $GITLAB_ACCESS_TOKEN
tags:
- Tenfold
only:
- tags

0 comments on commit b9c388c

Please sign in to comment.