diff --git a/.travis.yml b/.travis.yml index e38afa9..3694bd0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,30 @@ +language: ruby + sudo: required + +dist: buster + +rvm: + - 2.4.6 + services: - docker +cache: + directories: + - /usr/share + - /usr/bin + - vendor/.bundle + install: - docker build . -t mapknitter-exporter:latest + - sudo ./scripts/install-deps.sh + - bundle install --path vendor/.bundle script: docker run mapknitter-exporter bundle exec rspec +jobs: + include: + - name: "Exporter Tests" + script: bundle exec rspec + - name: "Docker Build" + script: docker build . -t lib-mapknitter-exporter:latest \ No newline at end of file diff --git a/scripts/install-deps.sh b/scripts/install-deps.sh new file mode 100755 index 0000000..638a245 --- /dev/null +++ b/scripts/install-deps.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +apt-get update -qq && \ +apt-get install -y --no-install-recommends \ + gdal-bin \ + python-gdal + build-essential \ + git \ + imagemagick