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
2 changed files with 14 additions and 6 deletions
+13
View File
@@ -6,6 +6,19 @@ sudo: false
matrix: matrix:
include: 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 # debug+integer-santizer build
- os: linux - os: linux
compiler: clang compiler: clang
+1 -6
View File
@@ -15,10 +15,5 @@ COPY . /tmp/tippecanoe-src
RUN make \ RUN make \
&& make install && 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 # Run the default command to show usage
CMD tippecanoe --help CMD make test