From: Stephen Warren Date: Tue, 9 Feb 2016 01:23:35 +0000 (-0700) Subject: Enable test/py for sandbox in Travis CI X-Git-Tag: v2016.03-rc2~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=07bf2122df36732dd9591db3358f850a666fc6cb;p=oweals%2Fu-boot.git Enable test/py for sandbox in Travis CI This provides runtime test coverage in Travis, in addition to the existing build coverage. Signed-off-by: Stephen Warren Reviewed-by: Roger Meier Reviewed-by: Heiko Schocher Acked-by: Simon Glass --- diff --git a/.travis.yml b/.travis.yml index 8caaeb3455..18bf2ed4fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,8 @@ addons: - bc - build-essential - libsdl1.2-dev + - python + - python-virtualenv cache: - apt @@ -38,6 +40,9 @@ install: - echo -e "\n\n[toolchain-alias]\n${BUILDMAN_ALIAS} i386\n" >> ~/.buildman - echo -e "${BUILDMAN_ALIAS_ARM} armv5te\n" >> ~/.buildman - cat ~/.buildman + - virtualenv /tmp/venv + - . /tmp/venv/bin/activate + - pip install pytest env: global: @@ -177,5 +182,8 @@ matrix: # some statistics about the code base - env: - TEST_CMD="sloccount ." + # test/py + - env: + - TEST_CMD="./test/py/test.py --bd sandbox --build" # TODO make it perfect ;-r