2017-05-19 03:34:45 +08:00
|
|
|
# Dockerfile for local Travis build test
|
|
|
|
|
2016-03-18 12:32:35 +08:00
|
|
|
FROM ubuntu
|
2018-10-31 23:38:32 +08:00
|
|
|
LABEL maintainer="Ian Blenke <ian@blenke.com>"
|
2016-03-18 12:32:35 +08:00
|
|
|
|
|
|
|
RUN apt-get update
|
2018-10-31 23:42:04 +08:00
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y cmake curl git ruby bundler wget unzip \
|
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2017-05-19 03:34:45 +08:00
|
|
|
RUN gem install bundler travis --no-ri --no-rdoc
|
|
|
|
RUN git clone --depth 1 https://github.com/travis-ci/travis-build ~/.travis/travis-build
|
2016-03-18 12:32:35 +08:00
|
|
|
RUN bundle install --gemfile ~/.travis/travis-build/Gemfile
|
|
|
|
|
|
|
|
ADD . /tesseract
|
|
|
|
WORKDIR /tesseract
|
|
|
|
|
|
|
|
RUN travis compile | sed -e "s/--branch\\\=\\\'\\\'/--branch=master/g" | bash
|