Skip to content

Commit 8edb29f

Browse files
authored
Add Circle CI config (#17)
* Add CircleCI config * Remove Travis CI config * Replace CircleCI status badge in README * Fix missing build param
1 parent cee0c0e commit 8edb29f

File tree

3 files changed

+87
-59
lines changed

3 files changed

+87
-59
lines changed

.circleci/config.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
defaults: &defaults
2+
machine:
3+
services:
4+
- docker
5+
steps:
6+
- checkout
7+
- run:
8+
name: "Setup required directories"
9+
command: |
10+
mkdir -p /tmp/apache-cloudstack
11+
mkdir -p /tmp/.m2
12+
- restore_cache:
13+
key: repo-{{ .Environment.CIRCLE_PROJECT_REPONAME }}-m2
14+
- run:
15+
name: "Build Docker image"
16+
command: make ${TAG}
17+
- run:
18+
name: "Test Docker image"
19+
command: |
20+
docker run \
21+
--volume /tmp/apache-cloudstack:/mnt/build \
22+
--volume /tmp/.m2:/root/.m2 \
23+
--rm \
24+
${IMAGE}:${TAG} \
25+
--git-remote https://github.com/apache/cloudstack.git \
26+
--git-ref refs/heads/master \
27+
--remove-first \
28+
${PARAMS}
29+
- save_cache:
30+
key: repo-{{ .Environment.CIRCLE_PROJECT_REPONAME }}-m2
31+
paths:
32+
- /tmp/.m2
33+
34+
version: 2
35+
jobs:
36+
ubuntu1404:
37+
<<: *defaults
38+
environment:
39+
IMAGE: khos2ow/cloudstack-deb-builder
40+
TAG: ubuntu1404
41+
PARAMS: ""
42+
43+
ubuntu1604:
44+
<<: *defaults
45+
environment:
46+
IMAGE: khos2ow/cloudstack-deb-builder
47+
TAG: ubuntu1604
48+
PARAMS: ""
49+
50+
ubuntu1804:
51+
<<: *defaults
52+
environment:
53+
IMAGE: khos2ow/cloudstack-deb-builder
54+
TAG: ubuntu1804
55+
PARAMS: ""
56+
57+
latest:
58+
<<: *defaults
59+
environment:
60+
IMAGE: khos2ow/cloudstack-deb-builder
61+
TAG: latest
62+
PARAMS: ""
63+
64+
workflows:
65+
version: 2
66+
build:
67+
jobs:
68+
- ubuntu1404:
69+
filters:
70+
tags:
71+
only: /v.*/
72+
73+
- ubuntu1604:
74+
filters:
75+
tags:
76+
only: /v.*/
77+
78+
- ubuntu1804:
79+
filters:
80+
tags:
81+
only: /v.*/
82+
83+
- latest:
84+
filters:
85+
tags:
86+
only: /v.*/

.travis.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CloudStack DEB Package builder using Docker
22

3-
[![Build Status](https://travis-ci.com/khos2ow/cloudstack-deb-builder.svg?branch=master)](https://travis-ci.com/khos2ow/cloudstack-deb-builder)
3+
[![CircleCI Build Status](https://circleci.com/gh/khos2ow/cloudstack-deb-builder.svg?style=svg)](https://circleci.com/gh/khos2ow/cloudstack-deb-builder)
44
[![Docker Automated build](https://img.shields.io/docker/automated/khos2ow/cloudstack-deb-builder.svg)](https://hub.docker.com/r/khos2ow/cloudstack-deb-builder/)
55
[![Docker Build Status](https://img.shields.io/docker/build/khos2ow/cloudstack-deb-builder.svg)](https://hub.docker.com/r/khos2ow/cloudstack-deb-builder/builds/)
66
[![license](https://img.shields.io/github/license/khos2ow/cloudstack-deb-builder.svg)](https://github.com/khos2ow/cloudstack-deb-builder/blob/master/LICENSE)

0 commit comments

Comments
 (0)