Navigation Menu

Skip to content

Commit

Permalink
test on centos7 via docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Nov 7, 2017
1 parent 5a68886 commit 95cc167
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Expand Up @@ -2,3 +2,4 @@
.gitignore
.git
Dockerfile
Dockerfile.centos7
15 changes: 14 additions & 1 deletion .travis.yml
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -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 changes: 15 additions & 0 deletions Dockerfile.centos7
@@ -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

0 comments on commit 95cc167

Please sign in to comment.