Files
mixer-tools/Dockerfile
T
Tudor Marcu 0a87d8cb91 Add BAT tests for mixer command-line testing
These tests should be reporting on the structure and correctness of mixer
and its user interface. Due to them running very slowly on the Travis CI
environment, they are not run by default, but can be run locally with
make batcheck.

This patch also introduces a docker container to do the build, so we do not
have to worry about running this in different environments such as Travis
CI. The tests are thus confined to a strict, well-known workspace,
and we can avoid many dependency problems.

Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
2018-02-16 16:06:36 -08:00

15 lines
574 B
Docker

FROM clearlinux:latest
ENV GOPATH /home/gopath
ENV PATH="/home/gopath/bin:${PATH}"
COPY . / /home/gopath/src/github.com/clearlinux/mixer-tools/
RUN swupd bundle-add mixer go-basic c-basic os-core-update-dev && \
git config --global user.email "travis@example.com" && \
git config --global user.name "Travis CI" && \
clrtrust generate && \
go get -u gopkg.in/alecthomas/gometalinter.v2 && \
gometalinter.v2 --install
ENTRYPOINT ["/bin/sh", "-c", "cd /home/gopath/src/github.com/clearlinux/mixer-tools && make && make install && make lint; make check"]