mirror of
https://github.com/clearlinux/mixer-tools.git
synced 2026-09-05 05:01:28 +00:00
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>
15 lines
574 B
Docker
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"]
|
|
|