Skip to content

Instantly share code, notes, and snippets.

@domingoladron
Last active February 26, 2020 04:45
Show Gist options
  • Save domingoladron/c9cd922c9b79b1bda44dbc4a23957b8f to your computer and use it in GitHub Desktop.
Save domingoladron/c9cd922c9b79b1bda44dbc4a23957b8f to your computer and use it in GitHub Desktop.
Bitbucket-pipeline-mysql-service.yml
definitions:
steps:
- step: &run-postman-tests
name: Run postman tests collections
image: node:13.1.0-alpine3.10
services:
- docker
- mysql
caches:
- dotnetcore
- node
- pip
script:
- source ci-cd/run-postman-tests/install-dependencies.sh
- source ci-cd/run-postman-tests/run-postman-tests.sh
services:
mysql:
image: mysql:5.7
variables:
MYSQL_DATABASE: 'MyDB'
MYSQL_ROOT_PASSWORD: 'admin-password'
MYSQL_USER: 'mydb_api_user'
MYSQL_PASSWORD: 'mydb-api-user-password'
pipelines:
branches:
'{hotfix/*,feature/*,bugfix/*}':
- step: *run-postman-tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment