summaryrefslogtreecommitdiff
path: root/spec/env/Dockerfile.powerpc
blob: d5390a1d02a17868ba75d89e3419340fee8e3a0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# See .travis.yml how this docker image can be used.
FROM multiarch/ubuntu-debootstrap:powerpc-xenial

RUN uname -a
RUN apt-get update -qq && \
  apt-get install -yq \
    autoconf \
    automake \
    file \
    gcc \
    git \
    libtool \
    make \
    ruby-dev
RUN ruby --version

WORKDIR /ffi
COPY . .

ENV MAKE "make -j`nproc`"
RUN gem install bundler --no-doc && \
    bundle install

CMD bundle install && \
    bundle exec rake libffi compile && \
    bundle exec rake test && \
    bundle exec rake types_conf && git --no-pager diff