Skip to content

Instantly share code, notes, and snippets.

@worldofprasanna
Created April 26, 2019 01:47
Show Gist options
  • Select an option

  • Save worldofprasanna/7a2f147ad70b956582006208ee54d1ac to your computer and use it in GitHub Desktop.

Select an option

Save worldofprasanna/7a2f147ad70b956582006208ee54d1ac to your computer and use it in GitHub Desktop.
Complete Pipeline setup in CircleCI
version: 2
jobs:
unit_test:
docker:
- image: busybox:latest
steps:
- run:
name: Unit Test
command: echo "Going to run Unit Test"
linting:
docker:
- image: busybox:latest
steps:
- run:
name: Lint Test
command: echo "Going to run Lint Test"
build_artifact:
docker:
- image: busybox:latest
steps:
- run:
name: Build Artifact
command: echo "Going to run the build artifact"
deploy_to_dev:
docker:
- image: busybox:latest
steps:
- run:
name: Deploy to Dev
command: echo "Going to deploy to dev"
deploy_to_qa:
docker:
- image: busybox:latest
steps:
- run:
name: Deploy to QA
command: echo "Going to deploy to QA"
- run:
name: Step no 2
command: echo "Going to deploy to QA again"
workflows:
version: 2
sample_pipeline:
jobs:
- linting
- unit_test
- build_artifact:
requires:
- unit_test
- linting
- deploy_to_dev:
requires:
- build_artifact
- deploy_to_qa:
requires:
- deploy_to_dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment