forked from BeamMW/beam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
129 lines (90 loc) · 6.97 KB
/
appveyor.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
version: '{build}'
image: Visual Studio 2017
environment:
BOOST_ROOT: C:\Libraries\boost_1_67_0
OPENSSL_ROOT_DIR: c:\beam-libs\openssl
QT5_ROOT_DIR: c:\beam-libs\qt5-static-win
QML_IMPORT_PATH: c:\beam-libs\qt5-static-win\qml
BUILD_SERVER:
secure: l9RqB2YbSnNIKZqTwnd67BHAXvbjmpj9zcf+YQPi9zfzsVeSysaoLD7gy4gSMjWurk2JVHjRpviw4bBxUbu2sA==
BUILD_CONFIG: RelWithDebInfo
PATH: c:\beam-libs\qt5-static-win\bin;$(PATH)
before_build:
- cmd: git submodule update --init --recursive
- cmd: git apply 3rdparty/protobuf-patch.diff
- cmd: git clone --depth=1 https://github.com/BeamMW/libs.git c:/beam-libs
- cmd: git clone --depth=1 https://github.com/nesbox/qt5-static-win.git c:/beam-libs/qt5-static-win
- cmd: cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=%BUILD_CONFIG% -DBEAM_LINK_TYPE=Static -DBRANCH_NAME=%APPVEYOR_REPO_BRANCH% -DBEAM_BUILD_JNI=On -DBEAM_HW_WALLET=Off .
test_script:
- cmd: ctest -C %BUILD_CONFIG% --verbose
build_script:
- cmake --build . --parallel --config %BUILD_CONFIG%
after_build:
- ps: $env:DATE=[TimeZoneInfo]::ConvertTimeBySystemTimeZoneId([DateTime]::UtcNow, "Belarus Standard Time").ToString('yyyy.MM.dd')
- ps: $env:TIME=[TimeZoneInfo]::ConvertTimeBySystemTimeZoneId([DateTime]::UtcNow, "Belarus Standard Time").ToString('HH:mm:ss')
- ps: $env:BEAM_TARGET_SUFFIX='-masternet'
- ps: $env:BEAM_DISPLAY_SUFFIX='Masternet'
- ps: $env:BEAM_DISPLAY_SUFFIX2='-Masternet'
- ps: $env:BEAM_DISPLAY_SUFFIX3=' Masternet'
- cmd: >-
cpack --verbose -G NSIS -C %BUILD_CONFIG%
set /p BEAM_VERSION=<beam_version.gen
echo BEAM_VERSION = %BEAM_VERSION%
del beam_version.gen
7z a c:/projects/beam/beam/%BUILD_CONFIG%/beam-node%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip c:/projects/beam/beam/%BUILD_CONFIG%/beam-node%BEAM_TARGET_SUFFIX%.exe c:/projects/beam/beam/beam-node.cfg
7z a c:/projects/beam/beam/%BUILD_CONFIG%/beam-wallet-cli%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip c:/projects/beam/wallet/cli/%BUILD_CONFIG%/beam-wallet%BEAM_TARGET_SUFFIX%.exe c:/projects/beam/wallet/cli/beam-wallet.cfg
7z a c:/projects/beam/beam/%BUILD_CONFIG%/wallet-api%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip c:/projects/beam/wallet/api/%BUILD_CONFIG%/wallet-api%BEAM_TARGET_SUFFIX%.exe c:/projects/beam/wallet/api/wallet-api.cfg
7z a c:/projects/beam/beam/%BUILD_CONFIG%/wallet-service%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip c:/projects/beam/wallet/service/%BUILD_CONFIG%/wallet-service%BEAM_TARGET_SUFFIX%.exe
7z a c:/projects/beam/beam/%BUILD_CONFIG%/explorer-node%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip c:/projects/beam/explorer/%BUILD_CONFIG%/explorer-node%BEAM_TARGET_SUFFIX%.exe c:/projects/beam/explorer/explorer-node.cfg
mkdir pdb
7z a c:/projects/beam/beam/beam-pdb%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip "c:/projects/beam/ui/%BUILD_CONFIG%/Beam Wallet%BEAM_DISPLAY_SUFFIX3%.pdb" "c:/projects/beam/beam/%BUILD_CONFIG%/beam-node%BEAM_TARGET_SUFFIX%.pdb" "c:/projects/beam/wallet/cli/%BUILD_CONFIG%/beam-wallet%BEAM_TARGET_SUFFIX%.pdb"
copy c:\projects\beam\beam\%BUILD_CONFIG%\beam-node%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip c:\projects\beam\beam-node%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip
copy c:\projects\beam\beam\%BUILD_CONFIG%\beam-wallet-cli%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip c:\projects\beam\beam-wallet-cli%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip
copy c:\projects\beam\beam\%BUILD_CONFIG%\wallet-api%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip c:\projects\beam\wallet-api%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip
copy c:\projects\beam\beam\%BUILD_CONFIG%\wallet-service%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip c:\projects\beam\wallet-service%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip
copy c:\projects\beam\beam\%BUILD_CONFIG%\explorer-node%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip c:\projects\beam\explorer-node%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip
copy c:\projects\beam\beam\beam-pdb%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip c:\projects\beam\pdb\beam-pdb%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip
copy c:\projects\beam\BeamWallet%BEAM_DISPLAY_SUFFIX%-%BEAM_VERSION%-win64.exe c:\projects\beam\Beam-Wallet%BEAM_DISPLAY_SUFFIX2%-%BEAM_VERSION%.exe
on_success:
- ps: $env:DATE=[TimeZoneInfo]::ConvertTimeBySystemTimeZoneId([DateTime]::UtcNow, "Belarus Standard Time").ToString('yyyy.MM.dd')
- ps: $env:TIME=[TimeZoneInfo]::ConvertTimeBySystemTimeZoneId([DateTime]::UtcNow, "Belarus Standard Time").ToString('HH:mm:ss')
- cmd: >-
set BUILDS_SERVER_PATH=%BUILD_SERVER%/files/%APPVEYOR_REPO_BRANCH%/%DATE%/Release/win
curl --retry 3 --ftp-create-dirs -T "c:/projects/beam/beam/%BUILD_CONFIG%/beam-node%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip" "%BUILDS_SERVER_PATH%/beam-node%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip"
curl --retry 3 --ftp-create-dirs -T "c:/projects/beam/beam/%BUILD_CONFIG%/beam-wallet-cli%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip" "%BUILDS_SERVER_PATH%/beam-wallet-cli%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip"
curl --retry 3 --ftp-create-dirs -T "c:/projects/beam/beam/%BUILD_CONFIG%/wallet-api%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip" "%BUILDS_SERVER_PATH%/wallet-api%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip"
curl --retry 3 --ftp-create-dirs -T "c:/projects/beam/beam/%BUILD_CONFIG%/wallet-service%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip" "%BUILDS_SERVER_PATH%/wallet-service%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip"
curl --retry 3 --ftp-create-dirs -T "c:/projects/beam/beam/%BUILD_CONFIG%/explorer-node%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip" "%BUILDS_SERVER_PATH%/explorer-node%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip"
curl --retry 3 --ftp-create-dirs -T "c:/projects/beam/BeamWallet%BEAM_DISPLAY_SUFFIX%-%BEAM_VERSION%-win64.exe" "%BUILDS_SERVER_PATH%/Beam-Wallet%BEAM_DISPLAY_SUFFIX2%-%BEAM_VERSION%.exe"
curl --retry 3 --ftp-create-dirs -T "c:/projects/beam/beam/beam-pdb%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip" "%BUILDS_SERVER_PATH%/pdb/beam-pdb%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip"
artifacts:
- path: beam-node%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip
name: BeamNode
- path: beam-wallet-cli%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip
name: BeamWalletCli
- path: wallet-api%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip
name: BeamWalletApi
- path: wallet-service%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip
name: BeamWalletService
- path: explorer-node%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip
name: BeamNodeExplorer
- path: pdb/beam-pdb%BEAM_TARGET_SUFFIX%-%BEAM_VERSION%.zip
name: BeamPdb
- path: Beam-Wallet%BEAM_DISPLAY_SUFFIX2%-%BEAM_VERSION%.exe
name: BeamWallet
deploy:
provider: S3
access_key_id:
secure: vku9qEnfo8NirxsplNRBBezWqJa1sV5eSfpt2syfwwk=
secret_access_key:
secure: sBTxw2gzbkQrPyMDF5OihFJ+s96yDgNgqbF1/MNmWpYMKrZwkOzIeExfW4Cp3F8B
bucket: builds.beam.mw
region: us-west-2
unzip: false
set_public: true
folder: "%APPVEYOR_REPO_BRANCH%/%DATE%/Release/win/"
artifact: BeamPdb, BeamWalletApi, BeamWalletService, BeamNodeExplorer, BeamWalletCli, BeamNode, BeamWallet
notifications:
- provider: Email
to: