Skip to content

Commit 3a8d1fd

Browse files
committed
Update .gitlab-ci.yml
1 parent 182a9de commit 3a8d1fd

File tree

1 file changed

+36
-34
lines changed

1 file changed

+36
-34
lines changed

.gitlab-ci.yml

+36-34
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,45 @@
1-
before_script:
2-
- apt-get update
3-
- apt-get install -y libdbus-1-3 libfreetype6 libfontconfig1 wget tree p7zip-full python3-requests
4-
- apt-get install -y build-essential libgl1-mesa-dev libglib2.0-dev mesa-common-dev libglu1-mesa-dev
5-
- wget https://git.kaidan.im/lnj/qli-installer/raw/master/qli-installer.py
6-
- chmod +x qli-installer.py
7-
- ./qli-installer.py 5.12.0 linux desktop
8-
- export PATH=$PWD/5.12.0/gcc_64/bin
9-
- export QMAKESPEC=$PWD/5.12.0/gcc_64/mkspecs/linux-g++
1+
image: rabits/qt:5.12-desktop
2+
3+
# before_script:
4+
# - apt-get update
5+
# - apt-get install -y libdbus-1-3 libfreetype6 libfontconfig1 wget tree p7zip-full python3-requests
6+
# - apt-get install -y build-essential libgl1-mesa-dev libglib2.0-dev mesa-common-dev libglu1-mesa-dev
7+
# - wget https://git.kaidan.im/lnj/qli-installer/raw/master/qli-installer.py
8+
# - chmod +x qli-installer.py
9+
# - ./qli-installer.py 5.12.0 linux desktop
10+
# - export PATH=$PWD/5.12.0/gcc_64/bin
11+
# - export QMAKESPEC=$PWD/5.12.0/gcc_64/mkspecs/linux-g++
1012

1113
stages:
1214
- lint
13-
# - build
15+
- build
1416

1517
lint:
1618
stage: lint
1719
script:
1820
- qmllint desktop/qml/*.qml
1921

20-
# build:
21-
# stage: build
22-
# script:
23-
# - mkdir build;
24-
# - cd build;
25-
# - qmake -spec $QMAKESPEC -config release ..;
26-
# - make -j 4;
27-
# - mkdir -p deploy/usr/bin deploy/usr/lib deploy/usr/share;
28-
# - mkdir deploy/usr/share/applications;
29-
# - find . \( -name "moc_*" -or -name "*.o" -or -name "qrc_*" -or -name "Makefile*" -or -name "*.a" \) -exec rm {} \;
30-
# - cp -R core/* desktop/* deploy/usr/bin
31-
# - cd deploy;
32-
# - cp ../../logo.png desktop.png
33-
# - cp ../../dist/Qrop.desktop usr/share/applications
34-
# - wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/5/linuxdeployqt-5-x86_64.AppImage"
35-
# - chmod a+x linuxdeployqt*.AppImage;
36-
# - unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH;
37-
# - ./linuxdeployqt*.AppImage usr/share/applications/Qrop.desktop -verbose=2 -qmldir=$BUILD_DIR/desktop/qml -bundle-non-qt-libs -extra-plugins=sqldrivers,imageformats/libqsvg.so
38-
# - ./linuxdeployqt*.AppImage usr/share/applications/Qrop.desktop -verbose=2 -qmldir=$BUILD_DIR/desktop/qml -appimage
39-
# - find . | grep AppImage;
40-
#
41-
# artifacts:
42-
# paths:
43-
# - build/deploy/Qrop*.AppImage
22+
build:
23+
stage: build
24+
script:
25+
- mkdir build;
26+
- cd build;
27+
- qmake -config release ..;
28+
- make -j 4;
29+
- mkdir -p deploy/usr/bin deploy/usr/lib deploy/usr/share;
30+
- mkdir deploy/usr/share/applications;
31+
- find . \( -name "moc_*" -or -name "*.o" -or -name "qrc_*" -or -name "Makefile*" -or -name "*.a" \) -exec rm {} \;
32+
- cp -R core/* desktop/* deploy/usr/bin
33+
- cd deploy;
34+
- cp ../../logo.png desktop.png
35+
- cp ../../dist/Qrop.desktop usr/share/applications
36+
- wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/5/linuxdeployqt-5-x86_64.AppImage"
37+
- chmod a+x linuxdeployqt*.AppImage;
38+
- unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH;
39+
- ./linuxdeployqt*.AppImage usr/share/applications/Qrop.desktop -verbose=2 -qmldir=$BUILD_DIR/desktop/qml -bundle-non-qt-libs -extra-plugins=sqldrivers,imageformats/libqsvg.so
40+
- ./linuxdeployqt*.AppImage usr/share/applications/Qrop.desktop -verbose=2 -qmldir=$BUILD_DIR/desktop/qml -appimage
41+
- find . | grep AppImage;
42+
43+
artifacts:
44+
paths:
45+
- build/deploy/Qrop*.AppImage

0 commit comments

Comments
 (0)