Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multijobs travis builds #47

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 20 additions & 3 deletions .travis.yml
@@ -1,9 +1,26 @@
language: ruby

sudo: required

dist: buster

rvm:
- 2.4.6

services:
- docker

cache:
directories:
- 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
12 changes: 11 additions & 1 deletion Dockerfile
Expand Up @@ -4,7 +4,17 @@ FROM debian:buster
MAINTAINER Sebastian Silva <sebastian@fuentelibre.org>

# Install the application.
RUN apt-get update -qq && apt-get install -y gdal-bin ruby imagemagick ruby-sinatra ruby-kramdown ruby-nokogiri bundler git python-gdal
RUN apt-get update -qq && \
alaxalves marked this conversation as resolved.
Show resolved Hide resolved
apt-get install -y \
gdal-bin \
ruby \
zlib1g-dev \
alaxalves marked this conversation as resolved.
Show resolved Hide resolved
imagemagick \
ruby-sinatra \
ruby-kramdown \
ruby-nokogiri \
bundler \
python-gdal

# Configure ImageMagick
COPY ./nolimit.xml /etc/ImageMagick-6/policy.xml
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.


gem "sinatra"
gem "sinatra", "2.0.8.1"
alaxalves marked this conversation as resolved.
Show resolved Hide resolved
gem "sinatra-cors"
gem "nokogiri"

Expand Down
14 changes: 8 additions & 6 deletions Gemfile.lock
Expand Up @@ -54,13 +54,14 @@ GEM
mini_portile2 (2.4.0)
multi_json (1.13.1)
multipart-post (2.0.0)
mustermann (1.0.3)
mustermann (1.1.1)
ruby2_keywords (~> 0.0.1)
nokogiri (1.10.0)
mini_portile2 (~> 2.4.0)
os (1.0.1)
public_suffix (3.0.3)
rack (2.0.7)
rack-protection (2.0.5)
rack-protection (2.0.8.1)
rack
rack-test (1.1.0)
rack (>= 1.0, < 3)
Expand All @@ -82,18 +83,19 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-support (3.8.0)
ruby2_keywords (0.0.2)
signet (0.11.0)
addressable (~> 2.3)
faraday (~> 0.9)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
sinatra (2.0.5)
sinatra (2.0.8.1)
mustermann (~> 1.0)
rack (~> 2.0)
rack-protection (= 2.0.5)
rack-protection (= 2.0.8.1)
tilt (~> 2.0)
sinatra-cors (1.1.0)
tilt (2.0.9)
tilt (2.0.10)
uber (0.1.0)

PLATFORMS
Expand All @@ -106,7 +108,7 @@ DEPENDENCIES
nokogiri
rack-test
rspec
sinatra
sinatra (= 2.0.8.1)
sinatra-cors

BUNDLED WITH
Expand Down
9 changes: 9 additions & 0 deletions scripts/install-deps.sh
@@ -0,0 +1,9 @@
#!/bin/bash

apt-get update -qq && \
apt-get install -y \
gdal-bin \
python-gdal \
ruby-kramdown \
ruby-nokogiri \
imagemagick