Last active
February 26, 2020 04:45
-
-
Save domingoladron/c9cd922c9b79b1bda44dbc4a23957b8f to your computer and use it in GitHub Desktop.
Bitbucket-pipeline-mysql-service.yml
This file contains hidden or 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
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