wisemapping-frontend/bitbucket-pipelines.yml

30 lines
762 B
YAML
Raw Normal View History

# Template NodeJS build
# This template allows you to validate your NodeJS code.
# The workflow allows running tests and code linting on the default branch.
2021-02-17 05:01:33 +01:00
# Node LTS
2021-12-24 20:26:38 +01:00
image: cypress/included:8.4.1
pipelines:
default:
- parallel:
- step:
name: Build and test
caches:
- node
- npm
- cypress
script:
2021-12-24 20:26:38 +01:00
- export CYPRESS_imageSnaphots="true"
2021-02-16 00:50:52 +01:00
- yarn install
2021-12-24 20:26:38 +01:00
- yarn bootstrap
2021-02-03 19:13:12 +01:00
- yarn build
2021-02-17 05:03:06 +01:00
- yarn lint
- yarn test
2021-12-24 20:26:38 +01:00
artifacts:
- packages/**/cypress/snapshots/**/__diff_output__/*.diff.png
definitions:
caches:
npm: $HOME/.npm
cypress: $HOME/.cache/Cypress