Browse Source

added gitlab ci

gwillz 5 years ago
parent
commit
5eff036c72
2 changed files with 36 additions and 0 deletions
  1. 36 0
      .gitlab-ci.yml
  2. 0 0
      GPL3.txt

+ 36 - 0
.gitlab-ci.yml

@@ -0,0 +1,36 @@
+# git should be in the PATH variable
+# QT5DIR, QT4DIR, MINGWDIR should be set in config.toml
+# NSIS script should avoid wildcards in dll selection
+variables:
+    project: FBSlideshow
+    nsis: install.nsi
+before_script:
+    - 'set PATH=%PATH%;%ProgramFiles(x86)%\NSIS;%QT5DIR%\bin;%MINGWDIR%\bin'
+    - 'set QTDIR=%QT5DIR%'
+    - 'set out=%DEPLOYDIR%\%project%-%CI_BUILD_REF_NAME%'
+    - 'if not exist %out% (mkdir %out%)'
+stages:
+    - build
+    - deploy
+build:
+    stage: build
+    tags:
+        - win32
+        - mingw
+        - qt4
+    script:
+        - 'qmake "%project%.pro" -r -spec win32-g++'
+        - mingw32-make
+        - 'copy release\*.exe %out%'
+package:
+    stage: deploy
+    allow_failure: true
+    tags: 
+        - deploy
+        - nsis
+        - win32
+    script:
+        - cd installer
+        - 'copy %out%\*.exe .\'
+        - 'makensis %nsis%'
+        - 'copy setup.exe %out%\setup.exe'

installer/GPL3.txt → GPL3.txt