mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-10 06:54:54 +08:00
compile with all audiences by default
This commit is contained in:
parent
4c5908c184
commit
5d6e9fa52e
3 changed files with 10 additions and 8 deletions
|
@ -17,17 +17,18 @@ git pull || GOTO ERROR
|
|||
SET OLD_PYTHONPATH=%PYTHONPATH%
|
||||
SET PYTHONPATH=c:\GIT\npbackup
|
||||
|
||||
%PYTHON64% RESTIC_SOURCE_FILES/update_restic.py || GOTO ERROR
|
||||
"%PYTHON64%" RESTIC_SOURCE_FILES/update_restic.py || GOTO ERROR
|
||||
|
||||
%PYTHON64% -m pip install pytest
|
||||
%PYTHON64% -m pytest C:\GIT\npbackup\tests || GOTO ERROR
|
||||
"%PYTHON64%" -m pip install --upgrade pip || GOTO ERROR
|
||||
"%PYTHON64%" -m pip install pytest
|
||||
"%PYTHON64%" -m pytest C:\GIT\npbackup\tests || GOTO ERROR
|
||||
|
||||
"%PYTHON64%" -m pip install --upgrade -r npbackup/requirements.txt || GOTO ERROR
|
||||
"%PYTHON64%" bin\compile.py --audience all --sign "C:\ODJ\KEYS\NetInventEV.dat"
|
||||
"%PYTHON64%" bin\compile.py --sign "C:\ODJ\KEYS\NetInventEV.dat" %*
|
||||
|
||||
|
||||
"%PYTHON32%" -m pip install --upgrade -r npbackup/requirements.txt || GOTO ERROR
|
||||
"%PYTHON32%" bin\compile.py --audience all --sign "C:\ODJ\KEYS\NetInventEV.dat"
|
||||
"%PYTHON32%" bin\compile.py --sign "C:\ODJ\KEYS\NetInventEV.dat" %*
|
||||
|
||||
:ERROR
|
||||
echo "Failed to run build script"
|
||||
|
|
|
@ -13,10 +13,11 @@ export PYTHONPATH=/opt/npbackup
|
|||
|
||||
/opt/npbackup/venv/bin/python RESTIC_SOURCE_FILES/update_restic.py || exit 1
|
||||
|
||||
/opt/npbackup/venv/bin/python -m pip install pytest
|
||||
/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 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 --audience all $@
|
||||
/opt/npbackup/venv/bin/python bin/compile.py $@
|
||||
|
||||
export PYTHONPATH="$OLD_PYTHONPATH"
|
|
@ -410,7 +410,7 @@ if __name__ == "__main__":
|
|||
parser.add_argument(
|
||||
"--audience",
|
||||
type=str,
|
||||
dest="audience",
|
||||
dest="all",
|
||||
default="public",
|
||||
required=False,
|
||||
help="Target audience, private or public",
|
||||
|
|
Loading…
Add table
Reference in a new issue