From 3899ca1e5d0cc6bf0daf1b24084424d6373bcccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 21 Dec 2017 19:44:59 +0100 Subject: [PATCH] travis: run imgconverter unit tests --- .travis.yml | 13 ++++++++++--- ci/requirements.txt | 2 ++ 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 ci/requirements.txt diff --git a/.travis.yml b/.travis.yml index 6db8222..85883f7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,16 @@ sudo: required dist: trusty -language: generic -install: git clone https://github.com/QubesOS/qubes-builder ~/qubes-builder -script: ~/qubes-builder/scripts/travis-build +language: python +python: + - '2.7' +install: + - test -z "$TESTS_ONLY" || pip install -r ci/requirements.txt + - test -n "$TESTS_ONLY" || git clone https://github.com/QubesOS/qubes-builder ~/qubes-builder +script: + - test -z "$TESTS_ONLY" || python -m unittest discover -v imgconverter + - test -n "$TESTS_ONLY" || ~/qubes-builder/scripts/travis-build env: + - TESTS_ONLY=1 - DIST_DOM0=fc25 USE_QUBES_REPO_VERSION=4.0 USE_QUBES_REPO_TESTING=1 - DISTS_VM=fc24 USE_QUBES_REPO_VERSION=4.0 USE_QUBES_REPO_TESTING=1 - DISTS_VM=fc25 USE_QUBES_REPO_VERSION=4.0 USE_QUBES_REPO_TESTING=1 diff --git a/ci/requirements.txt b/ci/requirements.txt new file mode 100644 index 0000000..c48ba2f --- /dev/null +++ b/ci/requirements.txt @@ -0,0 +1,2 @@ +Pillow +numpy