Skip to content

Latest commit

 

History

History
113 lines (83 loc) · 6.77 KB

README.md

File metadata and controls

113 lines (83 loc) · 6.77 KB

incy.io Kiosk Frontend

Build Status Quality Gate Lines Percentage of comments Complexity to function Test errors Test failures Test success density Unti Test Coverage Duplicated Lines Density Blocker Violations Critical Violations Code Smells Bugs Vulnerabilities Technical Debt Ratio New Maintainability Rating New Reliability Rating New Security Rating

This repository holds the open source code for incy.io Kiosk frontend component.

How do I get set up?

These steps primarily apply to a non-Windows platform, but it is absolutely possible developing on Windows too.

git clone https://github.com/BitSaber/incy-io-kiosk-frontend.git
  • cd into the cloned folder i.e.
cd incy-io-kiosk-frontend
  • Install project dependencies i.e.
yarn install
  • Start the appliaction, defaults to 0.0.0.0:3000 which can be accessed by visiting localhost:3000 i.e.
yarn start

CI/CD

When making pull requests and branches, Jenkins will run an automated CI/CD pipeline, using technologies such as SonarQube, Robot Framework and Selenium, to name a few. This assures a baseline for code quality. Jenkins delivers the CI/CD Pipeline results to GitHub, and this will assist in preventing the merging of suboptimal code into protected branches.

Jenkins Pipeline

An image of the current CI/CD pipeline is presented below

Jenkins CI Pipeline

Running Robot Tests Outside Jenkins

These commands are assumed to be run from the root directory of this repository.

outside docker Start the docker container:

docker run \
    --name jenkins-docker-robot-chrome \
    -v $(pwd):/home/jenkins/incy-io-kiosk-frontend \
    --rm \
    -d \
    --privileged \
    docker.bitsaber.net/devops/jenkins-chrome-71:latest

outside docker Attach to it:

docker exec -it jenkins-docker-robot-chrome su - jenkins

inside docker Configure PATH and start dev server:

PATH="/opt/tools/yarn/yarn-v1.12.3/bin:/opt/tools/nodejs/node-v11.4.0-linux-x64/bin:$PATH"
cd incy-io-kiosk-frontend
yarn start &>/dev/null &

inside docker Run robot:

robot -d robot_reports __tests__/robot

outside docker Stop the docker image:

docker stop jenkins-docker-robot-chrome

Authors

BitSaber