-
-
Save HynesIP/ef1032ad2e54712061d00be47d58e093 to your computer and use it in GitHub Desktop.
Angular + Bitbucket Pipeline + Continuous Integration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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