From d9e2ddd58f260f705a9ab337573efa72fb4e38eb Mon Sep 17 00:00:00 2001 From: inso <insomniak.fr@gmaiL.com> Date: Thu, 15 Mar 2018 12:58:42 +0100 Subject: [PATCH] Set PATH only for gen translations --- appveyor.yml | 4 +--- ci/appveyor/build.cmd | 2 +- ci/appveyor/gen_translations.cmd | 9 +++++++++ ci/appveyor/tests.cmd | 1 + 4 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 ci/appveyor/gen_translations.cmd diff --git a/appveyor.yml b/appveyor.yml index e5de6228..e098655f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -29,9 +29,7 @@ install: #- dir /b /s /ad c:\Qt\5.6 - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" - # Add qt to path - - "SET PATH=%QTDIR%\\bin;%QTDIR%\\lib;%PATH%" - - "SET QT_PLUGIN_PATH=%QTDIR%\\plugins" + #- "SET QT_PLUGIN_PATH=%QTDIR%\\plugins" - echo %PATH% #- choco install -y vcredist2015 - "%CMD_IN_ENV% conda config --set always_yes yes --set changeps1 no" diff --git a/ci/appveyor/build.cmd b/ci/appveyor/build.cmd index a28c0711..849283f3 100644 --- a/ci/appveyor/build.cmd +++ b/ci/appveyor/build.cmd @@ -19,7 +19,7 @@ pip install packaging python gen_resources.py if %errorlevel% neq 0 exit /b 1s -python gen_translations.py +.\\ci\\appveyor\\gen_translations.cmd if %errorlevel% neq 0 exit /b 1 pyinstaller sakia.spec diff --git a/ci/appveyor/gen_translations.cmd b/ci/appveyor/gen_translations.cmd new file mode 100644 index 00000000..8f9d7e7a --- /dev/null +++ b/ci/appveyor/gen_translations.cmd @@ -0,0 +1,9 @@ +@ECHO ON + +# Add qt to path +- "SET PATH=%QTDIR%\\bin;%QTDIR%\\lib;%PATH%" + +lrelease -version + +python gen_translations.py +if %errorlevel% neq 0 exit /b 1 diff --git a/ci/appveyor/tests.cmd b/ci/appveyor/tests.cmd index 61e3c79a..99c90893 100644 --- a/ci/appveyor/tests.cmd +++ b/ci/appveyor/tests.cmd @@ -4,6 +4,7 @@ call activate test-environment echo "%PATH%" echo "%QT_PLUGIN_PATH%" + python -V call pyuic5 --version -- GitLab