simplify autotests
authorIgor Gnatenko <i.gnatenko.brain@gmail.com>
Mon, 30 Jul 2018 11:28:26 +0000 (13:28 +0200)
committerIgor Gnatenko <i.gnatenko.brain@gmail.com>
Mon, 30 Jul 2018 11:28:26 +0000 (13:28 +0200)
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
autotest/centos-latest/Dockerfile
autotest/debian-latest/Dockerfile
autotest/fedora-latest/Dockerfile
autotest/opensuse-leap/Dockerfile
autotest/ubuntu-rolling/Dockerfile

index 16ce7d0dfa24d3aed1ed79a3018e14e94d579c00..037e2ffa7763f4de0819a522b311f23f24311959 100644 (file)
@@ -4,6 +4,5 @@ WORKDIR /code
 RUN yum -y install epel-release
 RUN yum -y update epel-release
 RUN yum -y install meson gcc "pkgconfig(libzstd)" "pkgconfig(libcurl)" "pkgconfig(openssl)"
-RUN meson build
-RUN /bin/bash -c 'cd build; ninja-build'
-RUN /bin/bash -c 'cd build; ninja-build test'
+RUN meson build --auto-features=enabled
+RUN ninja-build -C build test
index 350d3490be0bbd480f1c6b6841b6c6421d4f6a3f..545ab1fde43671d07dc8d3984611babfde2ed8a3 100644 (file)
@@ -3,6 +3,5 @@ ADD ./ /code
 WORKDIR /code
 RUN apt-get update
 RUN /bin/bash -c 'export DEBIAN_FRONTEND=noninteractive; apt-get -yq install meson gcc pkg-config libzstd-dev libcurl4-openssl-dev libssl-dev'
-RUN meson build
-RUN /bin/bash -c 'cd build; ninja'
-RUN /bin/bash -c 'cd build; ninja test'
+RUN meson build --auto-features=enabled
+RUN ninja -C build test
index c81680c59cd3e079d6e4090e86bda9a56522b7ee..435113e4ac6b1cd620fa7bc11a9f49a64afe07b6 100644 (file)
@@ -2,6 +2,5 @@ FROM fedora:latest
 ADD ./ /code
 WORKDIR /code
 RUN dnf -y install meson gcc "pkgconfig(libzstd)" "pkgconfig(libcurl)" "pkgconfig(openssl)"
-RUN meson build
-RUN /bin/bash -c 'cd build; ninja'
-RUN /bin/bash -c 'cd build; ninja test'
+RUN meson build --auto-features=enabled
+RUN ninja -C build test
index ea6d3f0da2fb51716d0ffb9a96ef661bb85981bb..4bf3a717f594927a1f07958644037dd1f4f047a2 100644 (file)
@@ -2,6 +2,5 @@ FROM opensuse/leap
 ADD ./ /code
 WORKDIR /code
 RUN zypper --non-interactive install meson gcc pkgconfig "pkgconfig(libzstd)" "pkgconfig(libcurl)" "pkgconfig(openssl)"
-RUN meson build
-RUN /bin/bash -c 'cd build; ninja'
-RUN /bin/bash -c 'cd build; ninja test'
+RUN meson build --auto-features=enabled
+RUN ninja -C build test
index 4b62c58dc20df5727a1402234eef257ce446b098..a1c8366a06b82ac865de6fc2dec5e78517a308f0 100644 (file)
@@ -3,6 +3,5 @@ ADD ./ /code
 WORKDIR /code
 RUN apt-get update
 RUN /bin/bash -c 'export DEBIAN_FRONTEND=noninteractive; apt-get -yq install meson gcc pkg-config libzstd-dev libcurl4-openssl-dev libssl-dev'
-RUN meson build
-RUN /bin/bash -c 'cd build; ninja'
-RUN /bin/bash -c 'cd build; ninja test'
+RUN meson build --auto-features
+RUN ninja -C build test