mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
Replace phantomjs with capybara-webkit for headless testing
This commit is contained in:
parent
0890251eff
commit
42a6267fc0
4 changed files with 14 additions and 17 deletions
|
@ -1,8 +1,8 @@
|
|||
FROM ruby:2.2
|
||||
RUN apt-get update && apt-get install -y build-essential zlib1g-dev libsqlite3-dev nodejs nodejs-legacy npm
|
||||
|
||||
RUN npm install phantomjs-prebuilt
|
||||
RUN ln -sf /node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs /usr/local/bin/
|
||||
RUN apt-get update && \
|
||||
apt-get install -y build-essential zlib1g-dev libsqlite3-dev nodejs nodejs-legacy npm \
|
||||
libxml2-dev libxslt1-dev pkg-config \
|
||||
libqt4-webkit libqt4-dev xvfb
|
||||
|
||||
RUN mkdir -p /app
|
||||
|
||||
|
@ -10,6 +10,7 @@ WORKDIR /tmp
|
|||
|
||||
COPY Gemfile Gemfile
|
||||
COPY Gemfile.lock Gemfile.lock
|
||||
RUN bundle config build.nokogiri --use-system-libraries
|
||||
RUN bundle install
|
||||
|
||||
ADD . /app
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue