Skip to content

Commit

Permalink
Updating Sinatra to support pandoc
Browse files Browse the repository at this point in the history
  • Loading branch information
alaxalves committed Apr 14, 2020
1 parent 1ed55b4 commit 7b8174f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Expand Up @@ -12,16 +12,12 @@ services:

cache:
directories:
- /usr/share
- /usr/bin
- vendor/.bundle

install:
- sudo ./scripts/install-deps.sh
- bundle install --path vendor/.bundle

script:
docker run mapknitter-exporter bundle exec rspec
jobs:
include:
- name: "Exporter Tests"
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -16,6 +16,7 @@
gem "sinatra"
gem "sinatra-cors"
gem "nokogiri"
gem "pandoc-ruby"

gem "fog-google"
gem "fog-local"
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Expand Up @@ -93,7 +93,7 @@ GEM
rack-protection (= 2.0.5)
tilt (~> 2.0)
sinatra-cors (1.1.0)
tilt (2.0.9)
tilt (2.0.10)
uber (0.1.0)

PLATFORMS
Expand Down
9 changes: 8 additions & 1 deletion scripts/install-deps.sh
@@ -1,9 +1,16 @@
#!/bin/bash

apt-get update -qq && \
apt-get install -y --no-install-recommends \
apt-get install -y \
gdal-bin \
python-gdal \
build-essential \
git \
imagemagick

cp ./nolimit.xml /etc/ImageMagick-6/policy.xml
wget https://github.com/jgm/pandoc/releases/download/2.9.2.1/pandoc-2.9.2.1-1-amd64.deb

dpkg -i pandoc-2.9.2.1-1-amd64.deb

rm pandoc-2.9.2.1-1-amd64.deb

0 comments on commit 7b8174f

Please sign in to comment.