Skip to content

Instantly share code, notes, and snippets.

@krunal86
Created August 27, 2018 21:54
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save krunal86/5ceae23f52ea23f5a00ef8c824669bbd to your computer and use it in GitHub Desktop.
Save krunal86/5ceae23f52ea23f5a00ef8c824669bbd to your computer and use it in GitHub Desktop.
Angular + Bitbucket Pipeline + Continuous Integration
# This is a sample build configuration for JavaScript.
# Check our guides at https://confluence.atlassian.com/x/14UWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: node:8.10
pipelines:
default:
- step:
name: Install dependencies
caches:
- node
script: # Modify the commands below to build your repository.
- npm install
artifacts:
- node_modules/** # copy these files to later steps
- parallel:
- step:
name: Check coding and scss standards
script:
- npm run lint
- npm run lint:sass
- step:
name: Check Build
script:
- npm run build:prod
- npm run build:prodaot
- step:
name: Check vulnerability
script:
- npm run nsp
- step:
name: Execute unit test cases
script:
- npm run test
branches:
development:
- step:
name: Install dependencies
caches:
- node
script: # Modify the commands below to build your repository.
- npm install
artifacts:
- node_modules/** # copy these files to later steps
- parallel:
- step:
name: Check coding and scss standards
script:
- npm run lint
- npm run lint:sass
- step:
name: Check Build
script:
- npm run build:prod
- npm run build:prodaot
- step:
name: Check vulnerability
script:
- npm run nsp
- step:
name: Execute unit test cases
script:
- npm run test
qa:
- step:
name: Install dependencies
caches:
- node
script: # Modify the commands below to build your repository.
- npm install
artifacts:
- node_modules/** # copy these files to later steps
- parallel:
- step:
name: Check coding and scss standards
script:
- npm run lint
- npm run lint:sass
- step:
name: Check Build
script:
- npm run build:prod
- npm run build:prodaot
- step:
name: Check vulnerability
script:
- npm run nsp
- step:
name: Execute unit test cases
script:
- npm run test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment