mirror of
https://github.com/netinvent/npbackup.git
synced 2025-11-10 06:01:39 +08:00
Tests should run after requirements upgrades
This commit is contained in:
parent
3881c27ccb
commit
0c1af56ae8
2 changed files with 9 additions and 2 deletions
|
|
@ -17,13 +17,19 @@ SET PYTHONPATH=c:\GIT\npbackup
|
|||
|
||||
"%PYTHON64%" -m pip install --upgrade pip || GOTO ERROR
|
||||
"%PYTHON64%" -m pip install pytest
|
||||
"%PYTHON64%" -m pip install --upgrade -r npbackup/requirements.txt || GOTO ERROR
|
||||
|
||||
"%PYTHON64%" -m pytest C:\GIT\npbackup\tests || GOTO ERROR
|
||||
|
||||
"%PYTHON64%" -m pip install --upgrade -r npbackup/requirements.txt || GOTO ERROR
|
||||
"%PYTHON64%" bin\compile.py --sign "C:\ODJ\KEYS\NetInventEV.dat" %*
|
||||
|
||||
|
||||
"%PYTHON32%" -m pip install --upgrade pip || GOTO ERROR
|
||||
"%PYTHON32%" -m pip install pytest
|
||||
"%PYTHON32%" -m pip install --upgrade -r npbackup/requirements.txt || GOTO ERROR
|
||||
|
||||
"%PYTHON32%" -m pytest C:\GIT\npbackup\tests || GOTO ERROR
|
||||
|
||||
"%PYTHON32%" bin\compile.py --sign "C:\ODJ\KEYS\NetInventEV.dat" %*
|
||||
|
||||
GOTO END
|
||||
|
|
|
|||
|
|
@ -15,9 +15,10 @@ export PYTHONPATH=/opt/npbackup
|
|||
|
||||
/opt/npbackup/venv/bin/python -m pip install --upgrade pip || exit 1
|
||||
/opt/npbackup/venv/bin/python -m pip install pytest ||exit 1
|
||||
/opt/npbackup/venv/bin/python -m pip install --upgrade -r npbackup/requirements.txt || exit 1
|
||||
|
||||
/opt/npbackup/venv/bin/python -m pytest /opt/npbackup/tests || exit 1
|
||||
|
||||
/opt/npbackup/venv/bin/python -m pip install --upgrade -r npbackup/requirements.txt || exit 1
|
||||
/opt/npbackup/venv/bin/python bin/compile.py $@
|
||||
|
||||
export PYTHONPATH="$OLD_PYTHONPATH"
|
||||
Loading…
Add table
Reference in a new issue