forked from geos/php-geos
Add build-test docker and drone config
parent
eb2341878f
commit
146b6df6a0
|
@ -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
|
|
@ -69,3 +69,4 @@ tests/*/*/*.php
|
|||
tests/*/*/*.exp
|
||||
tests/*/*/*.sh
|
||||
tmp-php.ini
|
||||
!/docker/**/Makefile
|
||||
|
|
|
@ -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
|
||||
|
|
@ -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
|
Loading…
Reference in New Issue