test on centos7 via docker

This commit is contained in:
Dane Springmeyer 2017-11-07 09:44:25 -08:00
parent 5a68886b4d
commit 95cc1672b9
4 changed files with 31 additions and 2 deletions

View File

@ -2,3 +2,4 @@
.gitignore
.git
Dockerfile
Dockerfile.centos7

View File

@ -6,7 +6,20 @@ sudo: false
matrix:
include:
# test on docker
# test on docker+centos7
- os: linux
compiler: clang
services:
- docker
sudo: true
dist: trusty
env: DOCKERFILE=Dockerfile.centos7
before_install: []
install:
- docker build -t tippecanoe-image -f ${DOCKERFILE} .
script:
- docker run -it tippecanoe-image
# test on docker+ubuntu
- os: linux
compiler: clang
services:

View File

@ -15,5 +15,5 @@ COPY . /tmp/tippecanoe-src
RUN make \
&& make install
# Run the default command to show usage
# Run the tests
CMD make test

15
Dockerfile.centos7 Normal file
View File

@ -0,0 +1,15 @@
FROM centos:7
RUN yum install -y make sqlite-devel zlib-devel bash git gcc-c++
# Create a directory and copy in all files
RUN mkdir -p /tmp/tippecanoe-src
WORKDIR /tmp/tippecanoe-src
COPY . /tmp/tippecanoe-src
# Build tippecanoe
RUN make \
&& make install
# Run the tests
CMD make test