diff --git a/.travis.yml b/.travis.yml index 879837d..0ea65b9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 8ac9ae5..9622e1e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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