[Groonga-commit] groonga/groonga at 616e1b0 [master] travis: add Ubuntu 18.04

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 10 17:13:49 JST 2018


Kouhei Sutou	2018-04-10 17:13:49 +0900 (Tue, 10 Apr 2018)

  New Revision: 616e1b0f47f803ed8655fbfc6ecabcd07a39b324
  https://github.com/groonga/groonga/commit/616e1b0f47f803ed8655fbfc6ecabcd07a39b324

  Message:
    travis: add Ubuntu 18.04

  Added files:
    travis/Dockerfile.ubuntu-18.04
  Modified files:
    .travis.yml

  Modified: .travis.yml (+2 -0)
===================================================================
--- .travis.yml    2018-04-10 16:42:36 +0900 (1df5dcc60)
+++ .travis.yml    2018-04-10 17:13:49 +0900 (d6cad2c95)
@@ -49,6 +49,8 @@ matrix:
       env: DOCKER=ubuntu-14.04
     - os: linux
       env: DOCKER=ubuntu-16.04
+    - os: linux
+      env: DOCKER=ubuntu-18.04
   allow_failures:
     - os: linux
       compiler: clang

  Added: travis/Dockerfile.ubuntu-18.04 (+102 -0) 100644
===================================================================
--- /dev/null
+++ travis/Dockerfile.ubuntu-18.04    2018-04-10 17:13:49 +0900 (0040846e0)
@@ -0,0 +1,102 @@
+FROM ubuntu:18.04
+
+ENV DEBIAN_FRONTEND=noninteractive
+
+RUN \
+  apt update -qq && \
+  apt install -qq -y \
+    bison \
+    g++ \
+    gcc \
+    gdb \
+    git \
+    libevent-dev \
+    liblz4-dev \
+    libmecab-dev \
+    libmsgpack-dev \
+    libssl-dev \
+    libstemmer-dev \
+    libzmq3-dev \
+    libzstd-dev \
+    make \
+    mecab-naist-jdic \
+    pkg-config \
+    rsync \
+    ruby \
+    ruby-dev \
+    sudo \
+    tzdata \
+    zlib1g-dev
+
+# RUN \
+#   apt update -qq && \
+#   apt install -qq -y software-properties-common && \
+#   add-apt-repository -y ppa:cutter-testing-framework/ppa && \
+#   apt update -qq && \
+#   apt install -qq -y cutter-testing-framework
+
+RUN \
+  gem install \
+    bundler \
+    groonga-client \
+    pkg-config \
+    test-unit
+
+RUN \
+  useradd --user-group --create-home groonga
+
+RUN \
+  echo "groonga ALL=(ALL:ALL) NOPASSWD:ALL" | \
+    EDITOR=tee visudo -f /etc/sudoers.d/groonga
+
+COPY . /home/groonga/source
+
+USER groonga
+
+WORKDIR /home/groonga
+RUN mkdir -p build
+WORKDIR /home/groonga/build
+
+RUN ../source/configure \
+  --prefix=/tmp/local \
+  --enable-debug \
+  --with-ruby \
+  --enable-mruby
+
+RUN make -j$(nproc) > /dev/null
+
+RUN \
+  mkdir -p /tmp/local/var/log/groonga/httpd/
+
+RUN \
+  rsync -a --include "*.rb" --include "*/" --exclude "*" \
+    ../source/plugins/ \
+    plugins/
+
+RUN \
+  mkdir -p test/command && \
+  rsync -a --delete \
+    ../source/test/command/suite/ \
+    test/command/suite/
+
+CMD \
+  # BUILD_DIR=test/unit \
+  #   ../source/test/unit/run-test.sh && \
+  BUILD_DIR=test/mruby \
+    ../source/test/mruby/run-test.rb && \
+  BUILD_DIR=test/command_line \
+    ../source/test/command_line/run-test.rb && \
+  BUILD_DIR=test/command \
+    ../source/test/command/run-test.sh \
+    test/command/suite \
+    --reporter mark && \
+  BUILD_DIR=test/command \
+    ../source/test/command/run-test.sh \
+    test/command/suite \
+    --reporter mark \
+    --interface http && \
+  BUILD_DIR=test/command \
+    ../source/test/command/run-test.sh \
+    test/command/suite \
+    --reporter mark \
+    --testee groonga-httpd
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180410/10708e94/attachment-0001.htm 



More information about the Groonga-commit mailing list
Back to archive index