Commit 47756198 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Fix: do not build artifacts if not tag exist

parent 3109c841
......@@ -18,56 +18,56 @@ test_script:
build: off
after_test:
- rd /s /q %APPDATA%\..\Local\NuGet\Cache
- choco install -y wget 7zip InnoSetup
- set PATH="C:\Program Files\7-Zip";"C:\Program Files (x86)\Inno Setup 5";%PATH%
- if %APPVEYOR_REPO_TAG_NAME% neq "" rd /s /q %APPDATA%\..\Local\NuGet\Cache
- if %APPVEYOR_REPO_TAG_NAME% neq "" choco install -y wget 7zip InnoSetup
- if %APPVEYOR_REPO_TAG_NAME% neq "" set PATH="C:\Program Files\7-Zip";"C:\Program Files (x86)\Inno Setup 5";%PATH%
# GUI Version
- set SRC=%cd%
- echo %SRC%
- copy misc\MSVSVersion.py %APPDATA%\npm\node_modules\nw-gyp\gyp\pylib\gyp\MSVSVersion.py
- set NW_VERSION=0.13.0-rc3
- set NW_RELEASE=v0.13.0-rc3
- echo %NW_RELEASE%
- cd node_modules/wotb
- npm install --build-from-source
- node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 configure
- node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 build
- copy %cd%\lib\binding\Release\node-webkit-%NW_RELEASE%-win32-x64\wotb.node %cd%\lib\binding\Release\node-v47-win32-x64\wotb.node /Y
- cd ../naclb
- npm install --build-from-source
- node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 configure
- node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 build
- copy %cd%\lib\binding\Release\node-webkit-%NW_RELEASE%-win32-x64\naclb.node %cd%\lib\binding\Release\node-v47-win32-x64\naclb.node /Y
- cd ../scryptb
- npm install --build-from-source
- node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 configure
- node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 build
- copy %cd%\lib\binding\Release\node-webkit-%NW_RELEASE%-win32-x64\scryptb.node %cd%\lib\binding\Release\node-v47-win32-x64\scryptb.node /Y
- cd ../sqlite3b
- npm install --build-from-source
- node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 configure
- node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 build
- copy %cd%\lib\binding\node-webkit-%NW_RELEASE%-win32-x64\node_sqlite3.node %cd%\lib\binding\node-v47-win32-x64\node_sqlite3.node /Y
- cd ../..
- npm prune --production
- cd ..
- mkdir ucoin_release
- set NW=nwjs-%NW_RELEASE%-win-x64
- echo %NW%
- set NW_GZ=%NW%.zip
- echo %NW_GZ%
- wget http://dl.nwjs.io/%NW_RELEASE%/%NW_GZ%
- 7z x %NW_GZ% 1> null
- move %NW% %cd%\ucoin_release\nw
- mkdir %cd%\ucoin_release\sources
- xcopy %SRC%\gui\* %cd%\ucoin_release\nw\ /s /e
- xcopy %SRC%\* %cd%\ucoin_release\sources\ /s /e
- rd /s /q %cd%\ucoin_release\sources\ui\package\node_modules
- rd /s /q %cd%\ucoin_release\sources\ui\package\bower_components
- 7z a -tzip duniter-win-x64.zip %cd%\ucoin_release\* 1> null
- move duniter-win-x64.zip %cd%\ucoin\duniter-%APPVEYOR_REPO_TAG_NAME%-windows-x64.zip
- iscc %cd%\ucoin_release\sources\duniter.iss /DROOT_PATH=%cd%\ucoin_release
- move %cd%\ucoin_release\Duniter.exe %cd%\ucoin\duniter-%APPVEYOR_REPO_TAG_NAME%-windows-x64.exe
- if %APPVEYOR_REPO_TAG_NAME% neq "" set SRC=%cd%
- if %APPVEYOR_REPO_TAG_NAME% neq "" echo %SRC%
- if %APPVEYOR_REPO_TAG_NAME% neq "" copy misc\MSVSVersion.py %APPDATA%\npm\node_modules\nw-gyp\gyp\pylib\gyp\MSVSVersion.py
- if %APPVEYOR_REPO_TAG_NAME% neq "" set NW_VERSION=0.13.0-rc3
- if %APPVEYOR_REPO_TAG_NAME% neq "" set NW_RELEASE=v0.13.0-rc3
- if %APPVEYOR_REPO_TAG_NAME% neq "" echo %NW_RELEASE%
- if %APPVEYOR_REPO_TAG_NAME% neq "" cd node_modules/wotb
- if %APPVEYOR_REPO_TAG_NAME% neq "" npm install --build-from-source
- if %APPVEYOR_REPO_TAG_NAME% neq "" node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 configure
- if %APPVEYOR_REPO_TAG_NAME% neq "" node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 build
- if %APPVEYOR_REPO_TAG_NAME% neq "" copy %cd%\lib\binding\Release\node-webkit-%NW_RELEASE%-win32-x64\wotb.node %cd%\lib\binding\Release\node-v47-win32-x64\wotb.node /Y
- if %APPVEYOR_REPO_TAG_NAME% neq "" cd ../naclb
- if %APPVEYOR_REPO_TAG_NAME% neq "" npm install --build-from-source
- if %APPVEYOR_REPO_TAG_NAME% neq "" node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 configure
- if %APPVEYOR_REPO_TAG_NAME% neq "" node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 build
- if %APPVEYOR_REPO_TAG_NAME% neq "" copy %cd%\lib\binding\Release\node-webkit-%NW_RELEASE%-win32-x64\naclb.node %cd%\lib\binding\Release\node-v47-win32-x64\naclb.node /Y
- if %APPVEYOR_REPO_TAG_NAME% neq "" cd ../scryptb
- if %APPVEYOR_REPO_TAG_NAME% neq "" npm install --build-from-source
- if %APPVEYOR_REPO_TAG_NAME% neq "" node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 configure
- if %APPVEYOR_REPO_TAG_NAME% neq "" node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 build
- if %APPVEYOR_REPO_TAG_NAME% neq "" copy %cd%\lib\binding\Release\node-webkit-%NW_RELEASE%-win32-x64\scryptb.node %cd%\lib\binding\Release\node-v47-win32-x64\scryptb.node /Y
- if %APPVEYOR_REPO_TAG_NAME% neq "" cd ../sqlite3b
- if %APPVEYOR_REPO_TAG_NAME% neq "" npm install --build-from-source
- if %APPVEYOR_REPO_TAG_NAME% neq "" node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 configure
- if %APPVEYOR_REPO_TAG_NAME% neq "" node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 build
- if %APPVEYOR_REPO_TAG_NAME% neq "" copy %cd%\lib\binding\node-webkit-%NW_RELEASE%-win32-x64\node_sqlite3.node %cd%\lib\binding\node-v47-win32-x64\node_sqlite3.node /Y
- if %APPVEYOR_REPO_TAG_NAME% neq "" cd ../..
- if %APPVEYOR_REPO_TAG_NAME% neq "" npm prune --production
- if %APPVEYOR_REPO_TAG_NAME% neq "" cd ..
- if %APPVEYOR_REPO_TAG_NAME% neq "" mkdir ucoin_release
- if %APPVEYOR_REPO_TAG_NAME% neq "" set NW=nwjs-%NW_RELEASE%-win-x64
- if %APPVEYOR_REPO_TAG_NAME% neq "" echo %NW%
- if %APPVEYOR_REPO_TAG_NAME% neq "" set NW_GZ=%NW%.zip
- if %APPVEYOR_REPO_TAG_NAME% neq "" echo %NW_GZ%
- if %APPVEYOR_REPO_TAG_NAME% neq "" wget http://dl.nwjs.io/%NW_RELEASE%/%NW_GZ%
- if %APPVEYOR_REPO_TAG_NAME% neq "" 7z x %NW_GZ% 1> null
- if %APPVEYOR_REPO_TAG_NAME% neq "" move %NW% %cd%\ucoin_release\nw
- if %APPVEYOR_REPO_TAG_NAME% neq "" mkdir %cd%\ucoin_release\sources
- if %APPVEYOR_REPO_TAG_NAME% neq "" xcopy %SRC%\gui\* %cd%\ucoin_release\nw\ /s /e
- if %APPVEYOR_REPO_TAG_NAME% neq "" xcopy %SRC%\* %cd%\ucoin_release\sources\ /s /e
- if %APPVEYOR_REPO_TAG_NAME% neq "" rd /s /q %cd%\ucoin_release\sources\ui\package\node_modules
- if %APPVEYOR_REPO_TAG_NAME% neq "" rd /s /q %cd%\ucoin_release\sources\ui\package\bower_components
- if %APPVEYOR_REPO_TAG_NAME% neq "" 7z a -tzip duniter-win-x64.zip %cd%\ucoin_release\* 1> null
- if %APPVEYOR_REPO_TAG_NAME% neq "" move duniter-win-x64.zip %cd%\ucoin\duniter-%APPVEYOR_REPO_TAG_NAME%-windows-x64.zip
- if %APPVEYOR_REPO_TAG_NAME% neq "" iscc %cd%\ucoin_release\sources\duniter.iss /DROOT_PATH=%cd%\ucoin_release
- if %APPVEYOR_REPO_TAG_NAME% neq "" move %cd%\ucoin_release\Duniter.exe %cd%\ucoin\duniter-%APPVEYOR_REPO_TAG_NAME%-windows-x64.exe
artifacts:
- path: duniter*.exe
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment