.gitlab-ci.yml 907 B

123456789101112131415161718192021222324252627282930313233343536
  1. # git should be in the PATH variable
  2. # QT5DIR, QT4DIR, MINGWDIR should be set in config.toml
  3. # NSIS script should avoid wildcards in dll selection
  4. variables:
  5. project: photobunny
  6. nsis: install.nsi
  7. before_script:
  8. - 'set PATH=%PATH%;%ProgramFiles(x86)%\NSIS;%QT5DIR%\bin;%MINGWDIR%\bin'
  9. - 'set QTDIR=%QT5DIR%'
  10. - 'set out=%DEPLOYDIR%\%project%-%CI_BUILD_REF_NAME%'
  11. - 'if not exist %out% (mkdir %out%)'
  12. stages:
  13. - build
  14. - deploy
  15. build:
  16. stage: build
  17. tags:
  18. - win32
  19. - mingw
  20. - qt4
  21. script:
  22. - 'qmake "%project%.pro" -r -spec win32-g++'
  23. - mingw32-make
  24. - 'copy release\*.exe %out%'
  25. package:
  26. stage: deploy
  27. allow_failure: true
  28. tags:
  29. - deploy
  30. - nsis
  31. - win32
  32. script:
  33. - cd installer
  34. - 'copy %out%\*.exe .\'
  35. - 'makensis %nsis%'
  36. - 'copy setup.exe %out%\setup.exe'