[Groonga-commit] groonga/groonga at 4418439 [master] travis: enable tests on Ubuntu 16.04

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Apr 9 16:41:18 JST 2018


Kouhei Sutou	2018-04-09 16:41:18 +0900 (Mon, 09 Apr 2018)

  New Revision: 4418439c7702edca5a36a004df5e598664a8e37b
  https://github.com/groonga/groonga/commit/4418439c7702edca5a36a004df5e598664a8e37b

  Message:
    travis: enable tests on Ubuntu 16.04

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

  Modified: .travis.yml (+2 -0)
===================================================================
--- .travis.yml    2018-04-09 16:58:07 +0900 (c15e7e6ff)
+++ .travis.yml    2018-04-09 16:41:18 +0900 (ea447380d)
@@ -47,6 +47,8 @@ matrix:
       env: BUILD_TOOL=cmake ENABLE_MRUBY=yes
     - os: linux
       env: DOCKER=ubuntu-14.04
+    - os: linux
+      env: DOCKER=ubuntu-16.04
   # allow_failures:
   #   - os: osx
   #     compiler: clang

  Added: travis/Dockerfile.ubuntu-16.04 (+86 -0) 100644
===================================================================
--- /dev/null
+++ travis/Dockerfile.ubuntu-16.04    2018-04-09 16:41:18 +0900 (b62983e12)
@@ -0,0 +1,86 @@
+FROM ubuntu:16.04
+
+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 \
+    libzmq-dev \
+    libzstd-dev \
+    make \
+    mecab-naist-jdic \
+    pkg-config \
+    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
+
+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 \
+  mkdir -p test/command && \
+  cp -a \
+    ../source/test/command/suite \
+    test/command/suite
+
+CMD \
+  BUILD_DIR=test/unit \
+    ../source/test/unit/run-test.sh && \
+  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/20180409/a07efa87/attachment-0001.htm 



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