Commit 58de3dbe authored by Richard Hughes's avatar Richard Hughes Committed by Mario Limonciello
Browse files

Run the installed tests in Travis CI

parent 3be2e295
...@@ -54,6 +54,9 @@ RUN apt-get -t experimental install -yq --no-install-recommends \ ...@@ -54,6 +54,9 @@ RUN apt-get -t experimental install -yq --no-install-recommends \
debhelper \ debhelper \
gir1.2-appstreamglib-1.0 \ gir1.2-appstreamglib-1.0 \
libappstream-glib-dev libappstream-glib-dev
#deps needed only for installed tests
RUN apt-get install -yq --no-install-recommends \
gnome-desktop-testing dbus-x11 ca-certificates
#fix locales #fix locales
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \ dpkg-reconfigure --frontend=noninteractive locales && \
......
...@@ -49,6 +49,9 @@ RUN apt-get install -yq --no-install-recommends \ ...@@ -49,6 +49,9 @@ RUN apt-get install -yq --no-install-recommends \
#deps needed only for packaged build #deps needed only for packaged build
RUN apt-get install -yq --no-install-recommends \ RUN apt-get install -yq --no-install-recommends \
git-buildpackage git-buildpackage
#deps needed only for installed tests
RUN apt-get install -yq --no-install-recommends \
gnome-desktop-testing dbus-x11 ca-certificates
RUN mkdir /build RUN mkdir /build
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \ dpkg-reconfigure --frontend=noninteractive locales && \
......
...@@ -43,5 +43,12 @@ RUN dnf --enablerepo=updates-testing -y install \ ...@@ -43,5 +43,12 @@ RUN dnf --enablerepo=updates-testing -y install \
valgrind \ valgrind \
valgrind-devel \ valgrind-devel \
xz xz
#deps needed only for installed tests
RUN dnf --enablerepo=updates-testing -y install \
adobe-source-han-sans-cn-fonts \
ca-certificates \
dbus-x11 \
gnome-desktop-testing \
gnupg2
RUN mkdir /build RUN mkdir /build
WORKDIR /build WORKDIR /build
...@@ -12,3 +12,7 @@ dpkg-buildpackage ...@@ -12,3 +12,7 @@ dpkg-buildpackage
#test the packages install #test the packages install
dpkg -i ../*.deb dpkg -i ../*.deb
# run the installed tests
/etc/init.d/dbus start
gnome-desktop-testing-runner fwupd
...@@ -35,3 +35,10 @@ rpmbuild -ba build/fwupd.spec ...@@ -35,3 +35,10 @@ rpmbuild -ba build/fwupd.spec
dnf install -C -y $HOME/rpmbuild/RPMS/*/*.rpm dnf install -C -y $HOME/rpmbuild/RPMS/*/*.rpm
cp $HOME/rpmbuild/RPMS/*/*.rpm . cp $HOME/rpmbuild/RPMS/*/*.rpm .
# run the installed tests
mkdir -p /run/dbus
mkdir -p /var
ln -s /var/run /run
dbus-daemon --system --fork
gnome-desktop-testing-runner fwupd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment