Skip to content

Commit

Permalink
Local jobs for Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
alaxalves committed Apr 14, 2020
1 parent 60af4ea commit f167829
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .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
- ./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
9 changes: 9 additions & 0 deletions 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

0 comments on commit f167829

Please sign in to comment.