From 9518cdc1e9553e45b363c4c82016738e05183419 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Tue, 1 Jan 2019 11:56:51 -0500 Subject: [PATCH] tests: Add testing support for Ubuntu 18.04 --- .travis.yml | 4 ++++ docker-compose.yml | 8 ++++++++ test/docker/ubuntu1804 | 27 +++++++++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 test/docker/ubuntu1804 diff --git a/.travis.yml b/.travis.yml index bcb01551a..c151af61b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,10 @@ matrix: os: linux env: CONTAINER=ubuntu1604 services: docker + - name: "Ubuntu 18.04" + os: linux + env: CONTAINER=ubuntu1804 + services: docker - name: "Mac OS X" os: osx env: CONTAINER=osx diff --git a/docker-compose.yml b/docker-compose.yml index 1f988381f..3ee587461 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,6 +16,14 @@ services: security_opt: - label=type:container_runtime_t tty: true + test-ubuntu1804: + build: + context: . + dockerfile: test/docker/ubuntu1804 + network_mode: "host" + security_opt: + - label=type:container_runtime_t + tty: true test-debianstable: build: context: . diff --git a/test/docker/ubuntu1804 b/test/docker/ubuntu1804 new file mode 100644 index 000000000..ed857a441 --- /dev/null +++ b/test/docker/ubuntu1804 @@ -0,0 +1,27 @@ +FROM ubuntu:18.04 + +RUN apt-get update +RUN apt-get install -y build-essential cmake git uuid-dev libgnutls28-dev +RUN apt-get install -y python + +# Setup language environment +ENV LC_ALL en_US.UTF-8 +ENV LANG en_US.UTF-8 +ENV LANGUAGE en_US.UTF-8 + +# Setup taskwarrior +ADD . /root/code/ +WORKDIR /root/code/ +RUN git clean -dfx +RUN git submodule init +RUN git submodule update +RUN cmake -DCMAKE_BUILD_TYPE=debug . +RUN make -j2 +RUN make install +RUN task --version + +# Setup tests +WORKDIR /root/code/test/ +RUN make + +CMD ["bash", "-c", "./run_all ; cat all.log | grep 'not ok' ; ./problems"]