commit | aafa22630d65b500eb34ac0041e26728467ef47c | [log] [tgz] |
---|---|---|
author | Borjan Tchakaloff <borjan@steadymonkey.eu> | Fri Feb 07 11:53:07 2020 +0100 |
committer | Borjan Tchakaloff <borjan@steadymonkey.eu> | Fri Feb 07 17:43:04 2020 +0100 |
tree | 0a365f867608e1bf61c829242adacff0adf83839 | |
parent | 1e841d8b6a2c5968b38b45a05f70557c07ba154c [diff] |
Fix pushing the scenarios and data to wrong paths Abstract the `adb push` command to obtain consistent results, no matter if we want to push files, directories, or empty directories. Work around the `adb push` command limitations to be able to target a directory with a different name than the source directory. Use the directory names on the device as expected by the viSer app. Issue: INFRA-227 Change-Id: I8d168ae101d44226d7bcd45a2b2e41e23dee4950
Deployment script to install and configure the SmartViser solution on devices.
Install the required dependencies in a virtual environment:
% python3 -mvenv venv % . ./venv/bin/activate (venv) % pip install -r requirements.txt
Follow instructions at https://gitlab.fairphone.software/fp/wiki/wikis/fp2/m/gms/sanity#prepare-a-device
Follow (and potentially adapt) instructions on how to run sanity check at https://gitlab.fairphone.software/fp/wiki/wikis/fp2/m/gms/sanity#run-the-sanity-check
Install the pre-commit
hook to setup the toolchain:
(venv) % pip install -r requirements-dev.txt (venv) % pre-commit install
The toolchain can be run independently of the hook. On the staged changes only:
(venv) % pre-commit run
Or on all files:
(venv) % pre-commit run --all-files
To keep things simple, and avoid installing extra software, this repository relies on standard Python tools (pip
and the venv
module).
The abstract dependencies are specified in setup.py
while the actual dependencies (i.e. the required and transitive dependencies) are pinned in dedicated requirements files. This ensures reproducibility.