Skip to content

Instantly share code, notes, and snippets.

@mugifly
Last active October 28, 2015 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mugifly/4c87b13f1f069f0be7f8 to your computer and use it in GitHub Desktop.
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.
# 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