Skip to content

Instantly share code, notes, and snippets.

@HynesIP
Forked from krunal86/bitbucket-pipelines.yml
Created September 22, 2021 23:23
Show Gist options
  • Save HynesIP/ef1032ad2e54712061d00be47d58e093 to your computer and use it in GitHub Desktop.
Save HynesIP/ef1032ad2e54712061d00be47d58e093 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