Merge pull request #483 from mapbox/docker-test

Test inside docker on travis
This commit is contained in:
Eric Fischer 2017-11-03 15:22:04 -07:00 committed by GitHub
commit 8ae9a8b665
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 6 deletions

View File

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

View File

@ -15,10 +15,5 @@ COPY . /tmp/tippecanoe-src
RUN make \
&& make install
# Remove the temp directory and unneeded packages
WORKDIR /
RUN rm -rf /tmp/tippecanoe-src \
&& apt-get -y remove --purge build-essential && apt-get -y autoremove
# Run the default command to show usage
CMD tippecanoe --help
CMD make test