summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2019-01-15 15:16:13 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2019-01-15 15:16:13 +0100
commitfbc4b7c715bc6d65e7f7c26b1e9d6c77f9d1f61c (patch)
tree86d582afe130ff9542acd5d61e6ca0891f9b28af
parent4078bf60135e9ad161eefa775e90dca3cced2730 (diff)
downloadlibnitrokey-fbc4b7c715bc6d65e7f7c26b1e9d6c77f9d1f61c.tar.gz
libnitrokey-fbc4b7c715bc6d65e7f7c26b1e9d6c77f9d1f61c.tar.bz2
CI: run Python offline tests
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--.travis.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index bf195df..d24025e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -22,8 +22,18 @@ matrix:
- cmake
- libhidapi-dev
- g++-5
+ - python3
+ - python3-pip
sources: &sources
- ubuntu-toolchain-r-test
+ script:
+ - make -j2
+ - ctest -VV
+ - mkdir install && make install DESTDIR=install
+ - pip3 install pytest --user
+ - cd ../
+ - pip3 install -r unittest/requirements.txt --user
+ - cd unittest && python3 -m pytest -sv test_offline.py
- os: linux
dist: trusty
env: COMPILER_NAME=gcc CXX=g++-6 CC=gcc-6