From 4f53b059ef6d91a5292e517342f6163c88a16a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=8B=9B=E7=89=8C=E7=96=AF=E5=AD=90?= Date: Mon, 22 Jun 2015 18:21:22 +0800 Subject: [PATCH] added wercker CI script --- README.md | 5 ++--- wercker.yml | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 3 deletions(-) create mode 100644 wercker.yml diff --git a/README.md b/README.md index bd68a0e..d913298 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -#zimg# +# zimg Project zimg is a lightweight image storage and processing system. It's written in C and it has high performance in image field. The zimg is designed for high concurrency image server. It supports many features for storing and processing images. @@ -7,8 +7,7 @@ Homepage: [zimg.buaa.us](http://zimg.buaa.us/) Author: [@招牌疯子](http://weibo.com/819880808) Contact me: zp@buaa.us -[![Build Status](https://travis-ci.org/buaazp/zimg.svg?branch=master)](https://travis-ci.org/buaazp/zimg) -[![Build Status](https://drone.io/github.com/buaazp/zimg/status.png)](https://drone.io/github.com/buaazp/zimg/latest) +[![Build Status](https://travis-ci.org/buaazp/zimg.svg?branch=master)](https://travis-ci.org/buaazp/zimg) [![wercker status](https://app.wercker.com/status/88aead2017ceb80b32fad3dc8997227a/s "wercker status")](https://app.wercker.com/project/bykey/88aead2017ceb80b32fad3dc8997227a) [![Build Status](https://drone.io/github.com/buaazp/zimg/status.png)](https://drone.io/github.com/buaazp/zimg/latest) ### Versions: - 09/09/2014 - zimg 3.1.0 Release. New generation. diff --git a/wercker.yml b/wercker.yml new file mode 100644 index 0000000..5f9d7de --- /dev/null +++ b/wercker.yml @@ -0,0 +1,56 @@ +# This references a standard debian container from the +# Docker Hub https://registry.hub.docker.com/_/debian/ +# Read more about containers on our dev center +# http://devcenter.wercker.com/docs/containers/index.html +box: ubuntu +# You can also use services such as databases. Read more on our dev center: +# http://devcenter.wercker.com/docs/services/index.html +# services: + # - postgres + # http://devcenter.wercker.com/docs/services/postgresql.html + + # - mongodb + # http://devcenter.wercker.com/docs/services/mongodb.html + +# This is the build pipeline. Pipelines are the core of wercker +# Read more about pipelines on our dev center +# http://devcenter.wercker.com/docs/pipelines/index.html +build: + # Steps make up the actions in your pipeline + # Read more about steps on our dev center: + # http://devcenter.wercker.com/docs/steps/index.html + steps: + # Update the apt-get + - script: + name: apt-get update + code: | + sudo apt-get update -qq + + # Get the dependencies + - script: + name: apt-get install + code: | + sudo apt-get install -y build-essential + sudo apt-get install -y openssl cmake libevent-dev libjpeg-dev libgif-dev libpng-dev libwebp-dev libmagickwand-dev libmemcached-dev + + # Build the program + - script: + name: make + code: | + make + + # Run the program + - script: + name: run + code: | + cd bin + ./zimg conf/zimg.lua + + # Check the program + - script: + name: check + code: | + cd bin + ls -l + ps aux|grep zimg +