aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2020-06-13 18:29:58 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2020-06-13 18:44:07 +0200
commitf3cffe7245f25d6a8b0651987a9e412c374027e9 (patch)
tree084a01f54eb64519a07037bb09202dad8925aadc
parentdc234d158f27a5aa385c80daa63365b3c5472944 (diff)
downloadlibnitrokey-f3cffe7245f25d6a8b0651987a9e412c374027e9.tar.gz
libnitrokey-f3cffe7245f25d6a8b0651987a9e412c374027e9.tar.bz2
Make proper call to install pip package
-rw-r--r--.travis.yml9
-rw-r--r--unittest/requirements.txt1
2 files changed, 4 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index 0ad1575..52a10e3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -18,10 +18,6 @@ matrix:
- cmake
- libhidapi-dev
- g++-5
- - python3
- - python3-pip
- - python3-requests
- - git
sources: &sources
- ubuntu-toolchain-r-test
- os: linux
@@ -43,14 +39,15 @@ matrix:
- cmake
- libhidapi-dev
- g++-10
+ - python3
+ - python3-pip
sources: *sources
script:
- make -j2
- ctest -VV
- mkdir install && make install DESTDIR=install
- - pip3 install pytest --user
- cd ../
- - pip3 install -r unittest/requirements.txt --user
+ - python3 -m pip install -r unittest/requirements.txt --user
- cd unittest && python3 -m pytest -sv test_offline.py
- os: linux
dist: trusty
diff --git a/unittest/requirements.txt b/unittest/requirements.txt
index 6d718ad..d8a7e29 100644
--- a/unittest/requirements.txt
+++ b/unittest/requirements.txt
@@ -1,4 +1,5 @@
cffi
+pytest
pytest-repeat
pytest-randomly
tqdm