Skip to content

Commit 4bdd8e4

Browse files
authored
Merge pull request dimxy#118 from VerusCoin/dev
fix broken dependencies in build
2 parents e59d53d + fff8a87 commit 4bdd8e4

12 files changed

+508
-44
lines changed

.gitlab-ci.yml

+63-33
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,42 @@
11
stages:
22
- build
33
- test
4+
- package
45
- deploy
56

7+
68
variables:
79
VERSION: 0.3.12
810
AGAMA_ARTIFACTS_LINUX: linux64.tar.gz
911
AGAMA_ARTIFACTS_MACOS: osx.tar.gz
1012
AGAMA_ARTIFACTS_WINDOWS: win64.zip
11-
VERUS_CLI_DEBIAN: verus-cli-v${VERSION}-beta-amd64.deb
12-
VERUS_CLI_LINUX_PORTABLE: verus-cli-linux-v$VERSION-beta.tar.gz
13-
VERUS_CLI_WINDOWS_PORTABLE: verus-cli-windows-v$VERSION-beta.zip
14-
VERUS_CLI_MACOS_PORTABLE: verus-cli-mac-v$VERSION-beta.tar.gz
15-
13+
VERUS_CLI_LINUX: verus-cli-linux-v$VERSION-beta.tar.gz
14+
VERUS_CLI_WINDOWS: verus-cli-windows-v$VERSION-beta.zip
15+
VERUS_CLI_MACOS: verus-cli-mac-v$VERSION-beta.tar.gz
16+
WINDOWS_INSTALLER: VerusCoin-v$VERSION-beta-windows-installer.exe
1617

17-
build:linux:
18+
.build:linux:
1819
image: asherd/veruscoin-cross-compiler:linux
1920
variables:
2021
DOCKER_DRIVER: overlay2
2122
stage: build
2223
before_script: # Setup Cache
23-
- rm -rf /root/.ccache || true
24-
- mv .ccache /root/ || true
24+
- rm -rf /root/.ccache || true
25+
- mv .ccache /root/ || true
2526
script:
26-
- zcutil/build.sh -j4
27-
- ./makeReleaseLinux.sh
28-
- dos2unix kmd/linux/verus-cli/README.txt
29-
- tar -C kmd/linux/ -czvf $VERUS_CLI_LINUX_PORTABLE verus-cli ./
30-
- mv kmd/linux/verus-cli kmd/linux/linux64
31-
- tar -C kmd/linux/ -czvf $AGAMA_ARTIFACTS_LINUX linux64 ./
27+
- zcutil/build.sh -j4
28+
- cp src/komodod src/komodo-cli kmd/linux/verus-cli
29+
- chmod +x kmd/linux/verus-cli/komodo
30+
- chmod +x kmd/linux/verus-cli/komodod
31+
- chmod +x kmd/linux/verus-cli/verus
32+
- chmod +x kmd/linux/verus-cli/verusd
33+
- chmod +x kmd/linux/verus-cli/fetch-params
34+
- dos2unix kmd/linux/verus-cli/README.txt
35+
- tar -C kmd/linux/ -czvf $VERUS_CLI_LINUX_PORTABLE verus-cli ./
36+
- mv kmd/linux/verus-cli kmd/linux/linux64
37+
- tar -C kmd/linux/ -czvf $AGAMA_ARTIFACTS_LINUX linux64 ./
3238
after_script:
33-
- mv /root/.ccache ./ || true
39+
- mv /root/.ccache ./ || true
3440
cache:
3541
key: ${CI_JOB_NAME}
3642
paths:
@@ -76,7 +82,7 @@ build:windows:
7682
expire_in: 1 week
7783

7884

79-
build:mac:
85+
.build:mac:
8086
stage: build
8187
tags: ["High Sierra"]
8288
cache:
@@ -97,7 +103,7 @@ build:mac:
97103
expire_in: 1 week
98104

99105

100-
code_quality:
106+
.code_quality:
101107
image: docker:stable
102108
variables:
103109
DOCKER_DRIVER: overlay2
@@ -115,7 +121,7 @@ code_quality:
115121
paths: [gl-code-quality-report.json]
116122

117123

118-
sast:
124+
.sast:
119125
image: docker:stable
120126
variables:
121127
DOCKER_DRIVER: overlay2
@@ -134,7 +140,7 @@ sast:
134140

135141

136142

137-
license_management:
143+
.license_management:
138144
image: docker:stable
139145
variables:
140146
DOCKER_DRIVER: overlay2
@@ -150,7 +156,7 @@ license_management:
150156
paths: [gl-license-management-report.json]
151157

152158

153-
ubuntu:xenial:
159+
.ubuntu:xenial:
154160
image: ubuntu:xenial
155161
variables:
156162
DOCKER_DRIVER: overlay2
@@ -168,7 +174,7 @@ ubuntu:xenial:
168174
- build:linux
169175

170176

171-
ubuntu:bionic:
177+
.ubuntu:bionic:
172178
image: ubuntu:bionic
173179
variables:
174180
DOCKER_DRIVER: overlay2
@@ -214,7 +220,7 @@ ubuntu:bionic:
214220
- build:mac
215221

216222

217-
windows:10:
223+
.windows:10:
218224
stage: test
219225
tags: ["Windows 10"]
220226
script:
@@ -227,25 +233,49 @@ windows:10:
227233
dependencies:
228234
- build:windows
229235

236+
package:
237+
stage: package
238+
image: asherd/agama-builder
239+
variables:
240+
DOCKER_DRIVER: overlay2
241+
dependencies:
242+
- build:windows
243+
before_script:
244+
- unzip $VERUS_CLI_WINDOWS_PORTABLE
245+
- echo "$AUTH_KEY" > AUTH_KEY.json
246+
- gcloud auth activate-service-account --key-file AUTH_KEY.json
247+
- rm AUTH_KEY.json
248+
- gsutil cp $STAGING/Agama/installer-prototype/Windows/Agama-win32-x64-v${VERSION}-beta.zip .
249+
- unzip Agama-win32-x64-v${VERSION}-beta.zip
250+
- git clone https://github.com/VerusCoin/Media-Assets --single-branch -b master
251+
- mkdir -p assets/imgs/
252+
- cp Media-Assets/Logos/PNG/* assets/imgs/
253+
script:
254+
- builder build zcutil/VerusCoin.xml windows --setvars project.version=$VERSION-beta
255+
- mv builds/$WINDOWS_INSTALLER .
256+
artifacts:
257+
paths: [$WINDOWS_INSTALLER]
258+
230259

231260
deploy:
232261
stage: deploy
233262
image: google/cloud-sdk:alpine
234263
variables:
235264
DOCKER_DRIVER: overlay2
236265
dependencies:
237-
- build:linux
238-
- build:windows
239-
- build:mac
266+
#- build:linux
267+
#- build:windows
268+
#- build:mac
269+
- package
240270
script:
241-
- mkdir -p $CI_COMMIT_REF_NAME/Windows
242-
- mkdir -p $CI_COMMIT_REF_NAME/Linux
243-
- mkdir -p $CI_COMMIT_REF_NAME/MacOS
244-
- mv $VERUS_CLI_WINDOWS_PORTABLE $AGAMA_ARTIFACTS_WINDOWS $CI_COMMIT_REF_NAME/Windows
245-
- mv $VERUS_CLI_LINUX_PORTABLE $AGAMA_ARTIFACTS_LINUX $CI_COMMIT_REF_NAME/Linux
246-
- mv $VERUS_CLI_MACOS_PORTABLE $AGAMA_ARTIFACTS_MACOS $CI_COMMIT_REF_NAME/MacOS
271+
#- mkdir -p $CI_COMMIT_REF_NAME/Windows
272+
#- mkdir -p $CI_COMMIT_REF_NAME/Linux
273+
#- mkdir -p $CI_COMMIT_REF_NAME/MacOS
274+
#- mv $VERUS_CLI_WINDOWS_PORTABLE $AGAMA_ARTIFACTS_WINDOWS $WINDOWS_INSTALLER $CI_COMMIT_REF_NAME/Windows
275+
#- mv $VERUS_CLI_LINUX_PORTABLE $AGAMA_ARTIFACTS_LINUX $CI_COMMIT_REF_NAME/Linux
276+
#- mv $VERUS_CLI_MACOS_PORTABLE $AGAMA_ARTIFACTS_MACOS $CI_COMMIT_REF_NAME/MacOS
247277
- echo "$AUTH_KEY" > AUTH_KEY.json
248278
- gcloud auth activate-service-account --key-file AUTH_KEY.json
249-
- gsutil rsync -r $CI_COMMIT_REF_NAME/ $STAGING/VerusCoin/$CI_COMMIT_REF_NAME/
250-
279+
#- gsutil rsync -r $CI_COMMIT_REF_NAME/ $STAGING/VerusCoin/$CI_COMMIT_REF_NAME/
280+
- gsutil cp $WINDOWS_INSTALLER $CI_COMMIT_REF_NAME/ $STAGING/VerusCoin/$CI_COMMIT_REF_NAME/Windows/
251281

Brewfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ brew "automake"
99
brew "binutils"
1010
brew "cmake"
1111
brew "coreutils"
12-
brew "gcc@5"
12+
brew "gcc@6"
1313
brew "leveldb"
1414
brew "nanomsg"
1515
brew "protobuf"

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## VerusCoin version 0.3.12a-beta
2+
23
VerusCoin is a new, mineable and stakeable cryptocurrency. It is a live fork of Komodo that retains its Zcash lineage and improves it. VerusCoin will leverage the Komodo platform and dPoW notarization for enhanced security and cross-chain interoperability. We have added a variation of a zawy12, lwma difficulty algorithm, a new CPU-optimized hash algorithm and a new algorithm for fair proof of stake. We describe these changes and vision going forward in a [our Phase I white paper](http://185.25.51.16/papers/VerusPhaseI.pdf) and [our Vision](http://185.25.51.16/papers/VerusVision.pdf).
34
- [VerusCoin web site https://veruscoin.io/ Wallets and CLI tools](https://veruscoin.io/)
45
- [VerusCoin Explorer](https://explorer.veruscoin.io/)

depends/packages/googletest.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package=googletest
22
$(package)_version=1.8.0
3-
$(package)_download_path=https://github.com/google/$(package)/archive/
3+
$(package)_download_path=https://github.com/google/$(package)/archive
44
$(package)_file_name=$(package)-$($(package)_version).tar.gz
55
$(package)_download_file=release-$($(package)_version).tar.gz
66
$(package)_sha256_hash=58a6f4277ca2bc8565222b3bbd58a177609e9c488e8a72649359ba51450db7d8

depends/packages/libevent.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package=libevent
22
$(package)_version=2.1.8
3-
$(package)_download_path=https://github.com/libevent/libevent/archive/
3+
$(package)_download_path=https://github.com/libevent/libevent/archive
44
$(package)_file_name=$(package)-$($(package)_version).tar.gz
55
$(package)_download_file=release-$($(package)_version)-stable.tar.gz
66
$(package)_sha256_hash=316ddb401745ac5d222d7c529ef1eada12f58f6376a66c1118eee803cb70f83d

depends/packages/libgmp.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
package=libgmp
22

33
ifeq ($(host_os),mingw32)
4-
$(package)_download_path=https://github.com/joshuayabut/$(package)/archive/
4+
$(package)_download_path=https://github.com/joshuayabut/$(package)/archive
55
$(package)_file_name=$(package)-$($(package)_git_commit).tar.gz
66
$(package)_download_file=$($(package)_git_commit).tar.gz
77
$(package)_sha256_hash=193836c1acc9dc00fe2521205d7bbe1ba13263f6cbef6f02584bf6f8b34b108f
88
$(package)_git_commit=053c03b1cab347671d936f43ef66b48ab5e380ee
99
$(package)_dependencies=
1010
$(package)_config_opts=--enable-cxx --disable-shared
1111
else ifeq ($(build_os),darwin)
12-
$(package)_download_path=https://github.com/ca333/$(package)/archive/
12+
$(package)_download_path=https://github.com/ca333/$(package)/archive
1313
$(package)_file_name=$(package)-$($(package)_git_commit).tar.gz
1414
$(package)_download_file=$($(package)_git_commit).tar.gz
1515
$(package)_sha256_hash=59b2c2b5d58fdf5943bfde1fa709e9eb53e7e072c9699d28dc1c2cbb3c8cc32c

depends/packages/librustzcash.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package=librustzcash
22
$(package)_version=0.1
3-
$(package)_download_path=https://github.com/zcash/$(package)/archive/
3+
$(package)_download_path=https://github.com/zcash/$(package)/archive
44
$(package)_file_name=$(package)-$($(package)_git_commit).tar.gz
55
$(package)_download_file=$($(package)_git_commit).tar.gz
66
$(package)_sha256_hash=a5760a90d4a1045c8944204f29fa2a3cf2f800afee400f88bf89bbfe2cce1279

depends/packages/libsodium.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $(package)_config_opts=
99
else
1010
package=libsodium
1111
$(package)_version=1.0.15
12-
$(package)_download_path=https://download.libsodium.org/libsodium/releases/
12+
$(package)_download_path=https://download.libsodium.org/libsodium/releases
1313
$(package)_file_name=$(package)-$($(package)_version).tar.gz
1414
$(package)_sha256_hash=fb6a9e879a2f674592e4328c5d9f79f082405ee4bb05cb6e679b90afe9e178f4
1515
$(package)_dependencies=

depends/packages/zeromq.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ifeq ($(host_os),mingw32)
22
$(package)_version=4.2.2-1
3-
$(package)_download_path=https://github.com/ca333/libzmq/archive/
3+
$(package)_download_path=https://github.com/ca333/libzmq/archive
44
$(package)_download_file=v$($(package)_version).tar.gz
55
$(package)_file_name=libzmq-$($(package)_version).tar.gz
66
$(package)_sha256_hash=0e225b85ce11be23bf7eb7d3f25c6686728bf30d5c31f61c12d37bb646c69962
@@ -15,7 +15,7 @@ endef
1515
else
1616
package=zeromq
1717
$(package)_version=4.2.1
18-
$(package)_download_path=https://github.com/zeromq/libzmq/releases/download/v$($(package)_version)/
18+
$(package)_download_path=https://github.com/zeromq/libzmq/releases/download/v$($(package)_version)
1919
$(package)_file_name=$(package)-$($(package)_version).tar.gz
2020
$(package)_sha256_hash=27d1e82a099228ee85a7ddb2260f40830212402c605a4a10b5e5498a7e0e9d03
2121

kmd/linux/verus-cli/README.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
VerusCoin Command Line Tools v0.3.12a-beta
2+
23
Contents:
34
komodod - VerusCoin's enhanced Komodo daemon
45
komodo-cli - VerusCoin's Komodo command line utility

libsnark.mk.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*** 1,30 ****
55
package=libsnark
66
$(package)_version=0.1
7-
! $(package)_download_path=https://github.com/radix42/$(package)/archive/
7+
! $(package)_download_path=https://github.com/radix42/$(package)/archive
88
$(package)_file_name=$(package)-$($(package)_git_commit).tar.gz
99
$(package)_download_file=$($(package)_git_commit).tar.gz
1010
! $(package)_sha256_hash=9dbd5b44d3443e86463e934bfe1023cab4ca5948f8d74c23a67d9535c28d2584
@@ -35,7 +35,7 @@
3535
--- 1,17 ----
3636
package=libsnark
3737
$(package)_version=0.1
38-
! $(package)_download_path=https://github.com/zcash/$(package)/archive/
38+
! $(package)_download_path=https://github.com/zcash/$(package)/archive
3939
$(package)_file_name=$(package)-$($(package)_git_commit).tar.gz
4040
$(package)_download_file=$($(package)_git_commit).tar.gz
4141
! $(package)_sha256_hash=9422b1a2a94e6b8be61f07af7f146087c2a7d70b208d07ad076622225aa7f0e4

0 commit comments

Comments
 (0)