Skip to content

Commit

Permalink
docker: added a step to run a test script
Browse files Browse the repository at this point in the history
  • Loading branch information
yxqd committed Nov 9, 2015
1 parent 7eafc4e commit 9dc1920
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/deb/test/Dockerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ MAINTAINER "Jiao Lin <jiao.lin@gmail.com>"
RUN apt-get install wget
RUN wget ${GITHUB_URL}/releases/download/v${VERSION}/${PKG_NAME}-${VERSION}-${CPACK_PACKAGE_RELEASE}.x86_64.deb
RUN dpkg -i ${PKG_NAME}-${VERSION}-${CPACK_PACKAGE_RELEASE}.x86_64.deb

RUN mkdir work
WORKDIR work
RUN git clone ${GITHUB_URL} src
RUN . /opt/danse/bin/setup-danse.sh && python src/tests/bpext/bpext_TestCase.py
4 changes: 4 additions & 0 deletions docker/srpm/test/Dockerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ MAINTAINER "Jiao Lin <jiao.lin@gmail.com>"

RUN rpmbuild --rebuild ${GITHUB_URL}/releases/download/v${VERSION}/${PKG_NAME}-${VERSION}-${CPACK_PACKAGE_RELEASE}.src.rpm
RUN rpm -i ~/rpmbuild/RPMS/x86_64/${PKG_NAME}-${VERSION}-${CPACK_PACKAGE_RELEASE}.x86_64.rpm
RUN mkdir work
WORKDIR work
RUN git clone ${GITHUB_URL} src
RUN . /opt/danse/bin/setup-danse.sh && python src/tests/bpext/bpext_TestCase.py

0 comments on commit 9dc1920

Please sign in to comment.