-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
32 lines (30 loc) · 970 Bytes
/
bitbucket-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# This is a sample build configuration for Java (Maven).
# Check our guides at https://confluence.atlassian.com/x/zd-5Mw 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: maven:3.3.9
pipelines:
default:
- step:
caches:
- maven
script: # Modify the commands below to build your repository.
- mvn -B verify # -B batch mode makes Maven less verbose
services:
- mysql
- step:
name: Deploy to test
deployment: test
# trigger: manual # Uncomment to make this a manual deployment.
script:
- echo "Deploying to test environment"
definitions:
services:
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: 'projetocursomc'
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_USER: 'aluno'
MYSQL_PASSWORD: 'aluno'