1
0
Fork 0

Add build-test docker and drone config

drone
Sandro Santilli 2016-07-19 17:56:50 +02:00
parent eb2341878f
commit 146b6df6a0
4 changed files with 45 additions and 0 deletions

9
.drone.yml Normal file
View File

@ -0,0 +1,9 @@
# See http://readme.drone.io/usage/overview
pipeline:
build:
image: docker.kbt.io/php-geos/build-test:alpine
commands:
- ./autogen.sh
- ./configure
- make
- make check

1
.gitignore vendored
View File

@ -69,3 +69,4 @@ tests/*/*/*.php
tests/*/*/*.exp
tests/*/*/*.sh
tmp-php.ini
!/docker/**/Makefile

View File

@ -0,0 +1,22 @@
FROM index.docker.io/alpine:latest
RUN apk add --update make && rm -rf /var/cache/apk/*
RUN apk add --update gcc && rm -rf /var/cache/apk/*
# Splitting install of php5-dev in steps to reduce memory requirements
RUN apk add --update ncurses-terminfo-base && rm -rf /var/cache/apk/*
RUN apk add --update ncurses-terminfo && rm -rf /var/cache/apk/*
RUN apk add --update pcre && rm -rf /var/cache/apk/*
RUN apk add --update php5-common && rm -rf /var/cache/apk/*
RUN apk add --update readline && rm -rf /var/cache/apk/*
RUN apk add --update libxml2 && rm -rf /var/cache/apk/*
RUN apk add --update libpcre16 && rm -rf /var/cache/apk/*
RUN apk add --update libpcre32 && rm -rf /var/cache/apk/*
RUN apk add --update pcre-dev && rm -rf /var/cache/apk/*
RUN apk add --update php5-cli && rm -rf /var/cache/apk/*
RUN apk add --update php5-dev && rm -rf /var/cache/apk/*
# Autoconf brings in perl
RUN apk add --update autoconf && rm -rf /var/cache/apk/*
#RUN apk add --update autoconf && rm -rf /var/cache/apk/*
#RUN apk add --update git

View File

@ -0,0 +1,13 @@
DOCKER=docker
REGISTRY=docker.kbt.io
NAME=$(REGISTRY)/php-geos/build-test
all: alpine
push: alpine-push
alpine:
$(DOCKER) build -t $(NAME):alpine - < Dockerfile.alpine
alpine-push:
$(DOCKER) push $(NAME):alpine