Last active
October 28, 2015 19:41
-
-
Save mugifly/4c87b13f1f069f0be7f8 to your computer and use it in GitHub Desktop.
An example of wercker.yml for test of app built with perl with carton and mysql.
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
# Docker container for whole process | |
box: ubuntu | |
# Additional services | |
services: | |
- id: mysql | |
env: | |
MYSQL_ROOT_PASSWORD: test | |
MYSQL_USER: test | |
MYSQL_PASSWORD: test | |
MYSQL_DATABASE: test_db | |
# Process of build | |
build: | |
steps: | |
# Install packages - http://devcenter.wercker.com/docs/steps/install-packages.html | |
- install-packages: | |
packages: build-essential make g++ libexpat1-dev libssl-dev libmysqlclient-dev | |
# Carton - https://github.com/moltar/wercker-step-carton-install | |
- moltar/carton-install: | |
cache_local: true | |
without: develop | |
# Run tests | |
- script: | |
name: Run test cases | |
code: | | |
export MOJO_MODE=test | |
carton exec -- prove -lvr t/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment