luaengineapp/.gitlab-ci.yml

77 lines
2.5 KiB
YAML
Raw Normal View History

2019-09-24 17:25:39 +02:00
stages:
- build
2019-10-07 02:17:33 +02:00
- deploy
2019-09-24 17:25:39 +02:00
2019-10-12 05:19:27 +02:00
LuaEngine Windows:
2019-09-24 17:25:39 +02:00
stage: build
2019-10-07 02:17:33 +02:00
image: syping/qt5-shared-mingw-openssl:5.12.5
2019-09-24 17:25:39 +02:00
variables:
QT_SELECT: "qt5-x86_64-w64-mingw32"
script:
- mkdir -p build
- cd build
2019-10-14 21:19:14 +02:00
- qmake CONFIG+=WITH_LUAENGINECOM CONFIG+=WITH_LUAENGINERUN ../luaengine.pro
2019-10-07 02:21:02 +02:00
- make -j4
2019-10-12 05:19:27 +02:00
- 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 ../
2019-10-14 21:19:14 +02:00
- cp -Rf src/luaenginec/release/luaenginec.exe ../
2019-10-07 02:17:33 +02:00
- cd ..
artifacts:
paths:
2019-10-12 05:19:27 +02:00
- "LuaEngine.dll"
- "LuaEngine.exe"
2019-10-14 21:19:14 +02:00
- "luaenginec.exe"
2019-10-12 05:19:27 +02:00
- "LuaEngineGui.dll"
- "LuaEngineIO.dll"
- "LuaEngineOS.dll"
2019-10-07 02:17:33 +02:00
2019-10-16 23:34:14 +02:00
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:
2019-10-07 02:17:33 +02:00
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
2019-10-14 21:37:35 +02:00
- qmake-static CONFIG+=WITH_LUAENGINEAPP ../luaengine.pro
2019-10-07 02:21:02 +02:00
- make -j4
2019-10-14 21:19:14 +02:00
- cp -Rf src/luaengineapp/release/LuaEngineApp.exe ../windows.le
2019-09-24 17:25:39 +02:00
- cd ..
2019-10-07 02:17:33 +02:00
artifacts:
paths:
2019-10-14 21:19:14 +02:00
- "windows.le"
2019-10-07 02:17:33 +02:00
2019-10-07 02:19:01 +02:00
LuaEngine Setup:
2019-10-07 02:17:33 +02:00
stage: deploy
image: syping/qt5-shared-mingw-openssl:5.12.5
script:
- apt-get update -qq
- apt-get install nsis -qq
2019-09-24 17:25:39 +02:00
artifacts:
2019-09-25 14:29:52 +02:00
name: "luaengine-$CI_COMMIT_REF_NAME-${CI_COMMIT_SHA:0:8}"
2019-09-24 17:25:39 +02:00
paths:
2019-10-07 02:19:01 +02:00
- "luaengine_setup.exe"
2019-10-07 02:17:33 +02:00
dependencies:
2019-10-12 05:19:27 +02:00
- LuaEngine Windows
2019-10-16 23:34:14 +02:00
- LuaEngine PE Windows