test inside docker on travis

This commit is contained in:
Dane Springmeyer 2017-11-01 13:42:42 -07:00
parent dc42c7ccc2
commit d551231f6c
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