From fbc4b7c715bc6d65e7f7c26b1e9d6c77f9d1f61c Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Tue, 15 Jan 2019 15:16:13 +0100 Subject: CI: run Python offline tests Signed-off-by: Szczepan Zalega --- .travis.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.travis.yml') 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 -- cgit v1.2.1 From dfc773f1cac61af0bb513777dd75ba3487802ab1 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Tue, 15 Jan 2019 15:18:47 +0100 Subject: CI: install git to get the library version on build Signed-off-by: Szczepan Zalega --- .travis.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index d24025e..7dbcb38 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,6 +24,7 @@ matrix: - g++-5 - python3 - python3-pip + - git sources: &sources - ubuntu-toolchain-r-test script: -- cgit v1.2.1 From a20bf2b343e8e30e8b3f377da210c67027a9ecf3 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Tue, 15 Jan 2019 15:41:12 +0100 Subject: CI: add pip-required requests package Signed-off-by: Szczepan Zalega --- .travis.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 7dbcb38..6bf5438 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,6 +24,7 @@ matrix: - g++-5 - python3 - python3-pip + - python3-requests - git sources: &sources - ubuntu-toolchain-r-test -- cgit v1.2.1