-
Notifications
You must be signed in to change notification settings - Fork 10
/
.gitlab-ci.yml
113 lines (98 loc) · 4.75 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
Graft-POS-Windows-x64:
only:
- master
before_script:
- git submodule sync --recursive
- git submodule update --init --recursive
script:
- "C:\\gdrive\\gdrive-windows-x64.exe list -q \"trashed = false and name = 'Graft-mobile'\" | grep Graft-mobile | gawk '{ print $1 }' > temp.txt"
- "set /p UPLOAD_DESTINATION_ID_WIN=<temp.txt"
- "set INST_DIR=graft_build"
- "rm -f graft-*"
- "mkdir %INST_DIR%"
- "CALL \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\vcvarsall.bat\" x86_amd64"
- "set PATH=C:\\Qt\\Tools\\QtCreator\\bin;C:\\Qt\\5.9.4\\msvc2015_64\\bin;C:\\Program Files\\7-Zip;C:\\Program Files (x86)\\NSIS;%PATH%"
- "cd GraftMobileClient"
- "mintty -w hide -e sh build-version.sh"
- "set /p APP_VER=<version.txt"
- "qmake GraftMobileClient.pro DEFINES+=POS_BUILD"
- "jom"
- "cd bin"
- C:\\gdrive\\gdrive-windows-x64.exe upload "GraftPointOfSale %APP_VER%.exe" -p %UPLOAD_DESTINATION_ID_WIN%
tags:
- Windows
- Qt
Graft-wallet-Windows-x64:
only:
- master
before_script:
- git submodule sync --recursive
- git submodule update --init --recursive
script:
- "C:\\gdrive\\gdrive-windows-x64.exe list -q \"trashed = false and name = 'Graft-mobile'\" | grep Graft-mobile | gawk '{ print $1 }' > temp.txt"
- "set /p UPLOAD_DESTINATION_ID_WIN=<temp.txt"
- "set INST_DIR=graft_build"
- "rm -f graft-*"
- "mkdir %INST_DIR%"
- "CALL \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\vcvarsall.bat\" x86_amd64"
- "set PATH=C:\\Qt\\Tools\\QtCreator\\bin;C:\\Qt\\5.9.4\\msvc2015_64\\bin;C:\\Program Files\\7-Zip;C:\\Program Files (x86)\\NSIS;%PATH%"
- "cd GraftMobileClient"
- "mintty -w hide -e sh build-version.sh"
- "set /p APP_VER=<version.txt"
- "qmake GraftMobileClient.pro DEFINES+=WALLET_BUILD"
- "jom"
- "cd bin"
- C:\\gdrive\\gdrive-windows-x64.exe upload "GraftWallet %APP_VER%.exe" -p %UPLOAD_DESTINATION_ID_WIN%
tags:
- Windows
- Qt
Graft-POS-Android-arm:
only:
- master
before_script:
- git submodule sync --recursive
- git submodule update --init --recursive
script:
- "export ANDROID_HOME=/opt/android-sdk-linux/"
- "export ANDROID_NDK_ROOT=/opt/android-ndk-r10e/"
- "export ANDROID_SDK_ROOT=/opt/android-sdk-linux/"
- "export UPLOAD_DESTINATION_ID=$(/usr/local/bin/drive list -q \"trashed = false and title = 'Graft-mobile'\" | grep Graft-mobile | awk '{ print $1 }')"
- "cd GraftMobileClient"
- "chmod +x build-version.sh"
- "export BUILD_V=$(./build-version.sh)"
- "/opt/Qt/5.9.4/android_armv7/bin/qmake GraftMobileClient.pro DEFINES+=POS_BUILD"
- "make"
- "rm -rf ../android-build-armv7"
- "make INSTALL_ROOT=../android-build-armv7 install"
- "/opt/Qt/5.9.4/android_armv7/bin/androiddeployqt --release --input android-libGraftPointOfSale.so-deployment-settings.json --output ../android-build-armv7 --deployment bundled --android-platform android-26 --jdk /usr/lib/jvm/default-java/ --gradle --sign android/graft_pos_android_release.keystore graft.pos --storepass qwerty"
- "cd ../android-build-armv7/build/outputs/apk/"
- "mv -f android-build-armv7-release-signed.apk GraftPointOfSale-`echo $BUILD_V`.apk"
- /usr/local/bin/drive upload -f GraftPointOfSale-`echo $BUILD_V`.apk -p `echo $UPLOAD_DESTINATION_ID`
tags:
- Android
- Qt
Graft-wallet-Android-arm:
only:
- master
before_script:
- git submodule sync --recursive
- git submodule update --init --recursive
script:
- "export ANDROID_HOME=/opt/android-sdk-linux/"
- "export ANDROID_NDK_ROOT=/opt/android-ndk-r10e/"
- "export ANDROID_SDK_ROOT=/opt/android-sdk-linux/"
- "export UPLOAD_DESTINATION_ID=$(/usr/local/bin/drive list -q \"trashed = false and title = 'Graft-mobile'\" | grep Graft-mobile | awk '{ print $1 }')"
- "cd GraftMobileClient"
- "chmod +x build-version.sh"
- "export BUILD_V=$(./build-version.sh)"
- "/opt/Qt/5.9.4/android_armv7/bin/qmake GraftMobileClient.pro DEFINES+=WALLET_BUILD"
- "make"
- "rm -rf ../android-build-armv7"
- "make INSTALL_ROOT=../android-build-armv7 install"
- "/opt/Qt/5.9.4/android_armv7/bin/androiddeployqt --release --input android-libGraftWallet.so-deployment-settings.json --output ../android-build-armv7 --deployment bundled --android-platform android-26 --jdk /usr/lib/jvm/default-java/ --gradle --sign android/graft_wallet_android_release.keystore graft.wallet --storepass qwerty"
- "cd ../android-build-armv7/build/outputs/apk/"
- "mv -f android-build-armv7-release-signed.apk GraftWallet-`echo $BUILD_V`.apk"
- /usr/local/bin/drive upload -f GraftWallet-`echo $BUILD_V`.apk -p `echo $UPLOAD_DESTINATION_ID`
tags:
- Android
- Qt