travis: run imgconverter unit tests

This commit is contained in:
Marek Marczykowski-Górecki 2017-12-21 19:44:59 +01:00
parent 2ac5c03bb3
commit 3899ca1e5d
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 12 additions and 3 deletions

View File

@ -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

2
ci/requirements.txt Normal file
View File

@ -0,0 +1,2 @@
Pillow
numpy