luaengineapp/.gitlab-ci.yml
2019-10-16 23:34:14 +02:00

76 lines
2.5 KiB
YAML

stages:
- build
- deploy
LuaEngine Windows:
stage: build
image: syping/qt5-shared-mingw-openssl:5.12.5
variables:
QT_SELECT: "qt5-x86_64-w64-mingw32"
script:
- mkdir -p build
- cd build
- qmake CONFIG+=WITH_LUAENGINECOM CONFIG+=WITH_LUAENGINERUN ../luaengine.pro
- make -j4
- cp -Rf src/luaenginecore/release/LuaEngine.dll ../
- cp -Rf src/luaenginegui/release/LuaEngineGui.dll ../
- cp -Rf src/luaengineio/release/LuaEngineIO.dll ../
- cp -Rf src/luaengineos/release/LuaEngineOS.dll ../
- cp -Rf src/luaengine/release/LuaEngine.exe ../
- cp -Rf src/luaenginec/release/luaenginec.exe ../
- cd ..
artifacts:
paths:
- "LuaEngine.dll"
- "LuaEngine.exe"
- "luaenginec.exe"
- "LuaEngineGui.dll"
- "LuaEngineIO.dll"
- "LuaEngineOS.dll"
LuaEngine Debian:
stage: build
image: debian:stretch
script:
- apt-get update -qq
- apt-get install checkinstall gcc g++ make qtbase5-dev -qq
- mkdir -p build
- cd build
- /usr/lib/x86_64-linux-gnu/qt5/bin/qmake LUAENGINE_PREFIX=/usr LUAENGINE_LIBDIR=/usr/lib/x86_64-linux-gnu CONFIG+=WITH_LUAENGINECOM CONFIG+=WITH_LUAENGINERUN ../luaengine.pro
- make -j4
- echo "LuaEngine" > description-pak
- checkinstall --default --fstrans=no --install=no --nodoc --pkgname=luaengine "--pkglicense=Apache 2.0" --pkggroup=utility --pkgrelease=deb9u${CI_PIPELINE_IID} "--maintainer=Syping GitLab \<gitlab@syping.de\>" --requires=libqt5core5a,libqt5gui5,libqt5widgets5,qttranslations5-l10n --provides=libluaengine,libluaenginegui,libluaengineio,libluaengineos --conflicts=libluaengine,libluaenginegui,libluaengineio,libluaengineos --pakdir=..
- cd ..
artifacts:
paths:
- "luaengine_*.deb"
LuaEngine PE Windows:
stage: build
image: syping/qt5-static-mingw-openssl:5.12.5
variables:
QT_SELECT: "qt5-x86_64-w64-mingw32"
script:
- mkdir -p build
- cd build
- qmake-static CONFIG+=WITH_LUAENGINEAPP ../luaengine.pro
- make -j4
- cp -Rf src/luaengineapp/release/LuaEngineApp.exe ../windows.le
- cd ..
artifacts:
paths:
- "windows.le"
LuaEngine Setup:
stage: deploy
image: syping/qt5-shared-mingw-openssl:5.12.5
script:
- apt-get update -qq
- apt-get install nsis -qq
artifacts:
name: "luaengine-$CI_COMMIT_REF_NAME-${CI_COMMIT_SHA:0:8}"
paths:
- "luaengine_setup.exe"
dependencies:
- LuaEngine Windows
- LuaEngine PE Windows