|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- test
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
|
|
|
|
variables:
|
|
|
|
VERSION: 0.4.0
|
|
|
|
VERUS_CLI_LINUX: "Verus-CLI-Linux-v${VERSION}-beta.tar.gz"
|
|
|
|
VERUS_CLI_WINDOWS: "Verus-CLI-Windows-v${VERSION}-beta.zip"
|
|
|
|
VERUS_CLI_MACOS: "Verus-CLI-MacOS-v${VERSION}-beta.tar.gz"
|
|
|
|
POST_COMMENT: "Branch and Commit: ${CI_COMMIT_REF_NAME} ${CI_COMMIT_SHA} $'\n'MD5: "
|
|
|
|
|
|
|
|
|
|
|
|
build:linux:
|
|
|
|
image: asherd/veruscoin-cross-compiler:linux
|
|
|
|
variables:
|
|
|
|
DOCKER_DRIVER: overlay2
|
|
|
|
stage: build
|
|
|
|
before_script: # Setup Cache
|
|
|
|
- rm -rf /root/.ccache || true
|
|
|
|
- mv .ccache /root/ || true
|
|
|
|
script:
|
|
|
|
- zcutil/build.sh -j$(nproc)
|
|
|
|
- cp src/komodod src/komodo-cli kmd/linux/verus-cli
|
|
|
|
- chmod +x kmd/linux/verus-cli/komodod
|
|
|
|
- chmod +x kmd/linux/verus-cli/komodo-cli
|
|
|
|
- chmod +x kmd/linux/verus-cli/verus
|
|
|
|
- chmod +x kmd/linux/verus-cli/verusd
|
|
|
|
- chmod +x kmd/linux/verus-cli/fetch-params
|
|
|
|
- dos2unix kmd/linux/verus-cli/README.txt
|
|
|
|
- cd kmd/linux/
|
|
|
|
- tar -czvf $VERUS_CLI_LINUX verus-cli
|
|
|
|
- mv $VERUS_CLI_LINUX ../..
|
|
|
|
- cd ../..
|
|
|
|
- export VERUS_CLI_LINUX_MD5=$(md5sum $VERUS_CLI_LINUX | cut -d " " -f 1)
|
|
|
|
- curl -F file=@"$VERUS_CLI_LINUX"
|
|
|
|
-F channels="$CLI_POST_CHANNEL"
|
|
|
|
-F initial_comment="${POST_COMMENT}$VERUS_CLI_LINUX_MD5"
|
|
|
|
-H "${SLACK_BOT_AUTH}"
|
|
|
|
"https://slack.com/api/files.upload"
|
|
|
|
after_script:
|
|
|
|
- mv /root/.ccache ./ || true
|
|
|
|
cache:
|
|
|
|
key: ${CI_JOB_NAME}
|
|
|
|
paths:
|
|
|
|
- depends/built
|
|
|
|
- .ccache
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- $VERUS_CLI_LINUX
|
|
|
|
expire_in: 1 week
|
|
|
|
|
|
|
|
|
|
|
|
build:windows:
|
|
|
|
image: asherd/veruscoin-cross-compiler:latest
|
|
|
|
variables:
|
|
|
|
DOCKER_DRIVER: overlay2
|
|
|
|
stage: build
|
|
|
|
cache:
|
|
|
|
key: ${CI_JOB_NAME}
|
|
|
|
paths:
|
|
|
|
- depends/built
|
|
|
|
- .ccache
|
|
|
|
- .cargo
|
|
|
|
before_script:
|
|
|
|
- mkdir .ccache || echo ccache exists
|
|
|
|
- ln -s $PWD/.ccache /root/.ccache
|
|
|
|
- mkdir .zcash-params || echo zcash-params exists
|
|
|
|
- mkdir .cargo || echo .cargo exists
|
|
|
|
- ln -s $PWD/.cargo /root/.cargo
|
|
|
|
script:
|
|
|
|
- zcutil/build-win.sh -j$(nproc)
|
|
|
|
- cp src/komodod.exe src/komodo-cli.exe src/komodo-tx.exe kmd/windows/verus-cli
|
|
|
|
- cd kmd/windows/
|
|
|
|
- zip -r $VERUS_CLI_WINDOWS verus-cli
|
|
|
|
- mv $VERUS_CLI_WINDOWS ../..
|
|
|
|
- cd ../..
|
|
|
|
- export VERUS_CLI_WINDOWS_MD5=$(md5sum $VERUS_CLI_WINDOWS | cut -d " " -f 1)
|
|
|
|
- curl -F file=@"$VERUS_CLI_WINDOWS"
|
|
|
|
-F channels="$CLI_POST_CHANNEL"
|
|
|
|
-F initial_comment="${POST_COMMENT}$VERUS_CLI_WINDOWS_MD5"
|
|
|
|
-H "${SLACK_BOT_AUTH}"
|
|
|
|
"https://slack.com/api/files.upload"
|
|
|
|
artifacts:
|
|
|
|
paths: [$VERUS_CLI_WINDOWS]
|
|
|
|
expire_in: 1 week
|
|
|
|
|
|
|
|
|
|
|
|
build:mac:
|
|
|
|
stage: build
|
|
|
|
tags: ["High Sierra"]
|
|
|
|
cache:
|
|
|
|
key: ${CI_JOB_NAME}
|
|
|
|
paths:
|
|
|
|
- depends/built
|
|
|
|
script:
|
|
|
|
- brew bundle
|
|
|
|
- zcutil/build-mac.sh -j$(sysctl -n hw.physicalcpu) | xcpretty
|
|
|
|
- ./makeReleaseMac.sh
|
|
|
|
- dos2unix kmd/mac/verus-cli/README.txt
|
|
|
|
- tar -C kmd/mac/ -czvf $VERUS_CLI_MACOS verus-cli ./
|
|
|
|
- export VERUS_CLI_MACOS_MD5=$(md5sum $VERUS_CLI_MACOS | cut -d " " -f 1)
|
|
|
|
- curl -F file=@"$VERUS_CLI_MACOS"
|
|
|
|
-F channels="$CLI_POST_CHANNEL"
|
|
|
|
-F initial_comment="${POST_COMMENT}$VERUS_CLI_MACOS_MD5"
|
|
|
|
-H "${SLACK_BOT_AUTH}"
|
|
|
|
"https://slack.com/api/files.upload"
|
|
|
|
artifacts:
|
|
|
|
paths: [$VERUS_CLI_MACOS]
|
|
|
|
expire_in: 1 week
|
|
|
|
|
|
|
|
|
|
|
|
.code_quality:
|
|
|
|
image: docker:stable
|
|
|
|
variables:
|
|
|
|
DOCKER_DRIVER: overlay2
|
|
|
|
allow_failure: true
|
|
|
|
services:
|
|
|
|
- docker:stable-dind
|
|
|
|
script:
|
|
|
|
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
|
|
|
|
- docker run
|
|
|
|
--env SOURCE_CODE="$PWD"
|
|
|
|
--volume "$PWD":/code
|
|
|
|
--volume /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
|
|
|
|
artifacts:
|
|
|
|
paths: [gl-code-quality-report.json]
|
|
|
|
|
|
|
|
|
|
|
|
.sast:
|
|
|
|
image: docker:stable
|
|
|
|
variables:
|
|
|
|
DOCKER_DRIVER: overlay2
|
|
|
|
allow_failure: true
|
|
|
|
services:
|
|
|
|
- docker:stable-dind
|
|
|
|
script:
|
|
|
|
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
|
|
|
|
- docker run
|
|
|
|
--env SAST_CONFIDENCE_LEVEL="${SAST_CONFIDENCE_LEVEL:-3}"
|
|
|
|
--volume "$PWD:/code"
|
|
|
|
--volume /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
"registry.gitlab.com/gitlab-org/security-products/sast:$SP_VERSION" /app/bin/run /code
|
|
|
|
artifacts:
|
|
|
|
paths: [gl-sast-report.json]
|
|
|
|
|
|
|
|
|
|
|
|
.license_management:
|
|
|
|
image: docker:stable
|
|
|
|
variables:
|
|
|
|
DOCKER_DRIVER: overlay2
|
|
|
|
allow_failure: true
|
|
|
|
services:
|
|
|
|
- docker:stable-dind
|
|
|
|
script:
|
|
|
|
- export LICENSE_MANAGEMENT_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
|
|
|
|
- docker run
|
|
|
|
--volume "$PWD:/code"
|
|
|
|
"registry.gitlab.com/gitlab-org/security-products/license-management:$LICENSE_MANAGEMENT_VERSION" analyze /code
|
|
|
|
artifacts:
|
|
|
|
paths: [gl-license-management-report.json]
|
|
|
|
|
Updating branch (#108)
* Fix
* -print
* Filter null outputs
* Rewards cc
* Fix
* Linker
* Fix
* Fix
* KOMODO_LONGESTCHAIN
* Mining_height
* Fix dropped assetoshis
* Error null CCvin
* Test
* Test
* Test
* Fix sell
* Fix order book prints
* )
* Test
* Test
* Fix order display
* Fix oops
* Fix duplicate vin
* Remove dust check
* Fix silly bug
* Test
* Test
* Fix
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Fix compiler error: call of overloaded 'Pair(const char [9], time_t)' is ambiguous
* Fix compiler error: call of overloaded 'Pair(const char [9], time_t)' is ambiguous
* Correctly parse optional top parameter to getsnapshot
* Fix token orders crash
* Add SEC to assetchains.json
* Split amounts/validation: bid, ask, swap
* Fixes
* Test
* Test
* Test
* Test
* +print
* Test
* Test
* Test
* Test
* Test
* Test
* SMALLVAL
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Properly handle multiple vins funding fills
* Test
* Test
* Test
* Test
* Fix ask fill dest
* Test
* Rewards functions
* Fix
* Test
* Params to rewardscalc
* Create funding, addfunding, lock
* Test
* +print
* tokenswapask
* Test
* Test
* Swap functions
* ac_cc under 1000 is not fungible
* Allow to cancel invalid orders
* Prevent negative numbers in assets tx
* Uint64 -> int64
* Fix oops
* Prevent bid for nonexistent assetid
* Error check bidding for assetid that is txid but not asset creation
* Fix
* Fix
* Add pause if scriptcheckqueue isn't idle
* Fix
* -> -> .
* Fix
* Test
* VOBJ
* Tokeninfo rpc
* Asset list
* Test
* strcpy(cp->normaladdr,AssetsNormaladdr);
* Fix
* Rewardslist rewardsinfo
* Fix
* Fix
* Fix
* Vent
* fix
* Int64
* Int64
* Fix createfunding
* Fix false positive error
* sbits = stringbits(planstr);
* Fix maxmoney
* Fix funding name
* Test
* Print
* CCutoxvalue
* Fix rewardslock utxo selection
* New PoW diff calc
* tst
* Test
* Oldflag for PoW calc
* Test
* Test
* tst
* Test
* Test
* Filter locked utxo
* Test
* Fix PoW recalc
* Test min seconds
* int64_t CCduration(uint256 txid)
* Test
* Test
* Test one day
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Prevent inputs of CC inputs
* Test
* tst
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* New rewards address
* Fix mask
* Test
* Test
* Test
* Test
* Test
* Test
* Teest
* Stricter vin/vout checks for assets
* Token swap ready for testing
* Fix rewards unlock
* Fix
* Test
* Validate rewards
* Test
* Trim funding input
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Test
* Activate CCduration constraint
* Parameterize KOMODO_FIRSTFUNGIBLEID to 100
* +print
* Test
* Test
* Test
* Test
* Fix c script
* Test
* Initial dice morph from rewards.cpp
* Fix
* Test
* Fix
* Test
* Diceaddfunds
* Fix
* Dice list and dice info
* dicefund
* Dice bet
* Test
* Test
* Put process block's check block call inside lock, revert mining testblockvalidity outside lock
* Don't exit fiat-cli on error
* Docs for coinsupply RPC and improved error-checking on block height
* Version to 0.3.12-beta.
* Change version to 0.3.12 for gilab CI.
* Put undefines for _cpuid back.
* Network decentralizatoin and bug fixes
* Remove unnecessary staking delay
* Staking and mining timeing improvements
* Put staking readout once per staking loop so people know it's staking
* Fail on get_chainactive before lock if checks fail
* Fix check for stake transaction after Komodo merge
* Portable dev (#105)
* Force portable code
* Switch to old MMX instructions, avoiding SSE & SSE2 instructions.
* Less agressive, leave verus code (which checks for it) using advanced instructions.
* Compiling only for windows
* Update .gitlab-ci.yml
* Try -march=native for C++ code generation.
* Tweaking machine architecture settings.
* Try native alone.
* Also get LIBCRYPTOCONDITIONS to -march=native
* Switch other lib to native as well.
* Try switching back further for CPU architecture.
* Even lower end settings.
* Turn on symbols.
* Use sse2,3 and 4 capable x64.
* Once again let verus lib use advances instructioins since it checjs via CPUID at run time.
* Modify a few more makefile entries.
* Switch to AMD model similar to our test system.
* Get snark makefile to k8 too.
* Yet another -march to modify to k8, or two of them.
* Brute force k8 settings, comment non-portable code out.
* Put the condition on cpuid back.
* Put non-portable advenced instruction code back
* Enable instructions.
* Add lib for separate settings.
* Update .gitlab-ci.yml
* Update .gitlab-ci.yml
* Update .gitlab-ci.yml
* Update .gitlab-ci.yml
* replacing k8-sse3 specific flags to x86-84
* updating versions
* updating versions
* Get verus-cli verusd updated (#106)
* Force portable code
* Switch to old MMX instructions, avoiding SSE & SSE2 instructions.
* Less agressive, leave verus code (which checks for it) using advanced instructions.
* Compiling only for windows
* Update .gitlab-ci.yml
* Try -march=native for C++ code generation.
* Tweaking machine architecture settings.
* Try native alone.
* Also get LIBCRYPTOCONDITIONS to -march=native
* Switch other lib to native as well.
* Try switching back further for CPU architecture.
* Even lower end settings.
* Turn on symbols.
* Use sse2,3 and 4 capable x64.
* Once again let verus lib use advances instructioins since it checjs via CPUID at run time.
* Modify a few more makefile entries.
* Switch to AMD model similar to our test system.
* Get snark makefile to k8 too.
* Yet another -march to modify to k8, or two of them.
* Brute force k8 settings, comment non-portable code out.
* Put the condition on cpuid back.
* Put non-portable advenced instruction code back
* Enable instructions.
* Add lib for separate settings.
* Update .gitlab-ci.yml
* Update .gitlab-ci.yml
* Update .gitlab-ci.yml
* Update .gitlab-ci.yml
* replacing k8-sse3 specific flags to x86-84
* updating versions
* Propagate verusd changes.
6 years ago
|
|
|
|
|
|
|
.ubuntu:xenial:
|
|
|
|
image: ubuntu:xenial
|
|
|
|
variables:
|
|
|
|
DOCKER_DRIVER: overlay2
|
|
|
|
stage: test
|
|
|
|
before_script:
|
|
|
|
- apt update && apt install -y wget g++-multilib libcurl3 python
|
|
|
|
- rm -rf /root/.komodo || true
|
|
|
|
- mv .komodo /root/ || true
|
|
|
|
script:
|
|
|
|
- tar -xzvf $VERUS_CLI_LINUX
|
|
|
|
- export PATH=$PATH:$CI_PROJECT_DIR/verus-cli
|
|
|
|
- python qa/verus-cli-tests/verus-cli-tester.py
|
|
|
|
after_script:
|
|
|
|
- mv /root/.komodo ./ || true
|
|
|
|
cache:
|
|
|
|
key: ${CI_JOB_NAME}
|
|
|
|
paths: [.komodo]
|
|
|
|
artifacts:
|
|
|
|
paths: [log.txt]
|
|
|
|
expire_in: 1 week
|
|
|
|
dependencies:
|
|
|
|
- build:linux
|
|
|
|
|
|
|
|
|
|
|
|
.ubuntu:bionic:
|
|
|
|
image: ubuntu:bionic
|
|
|
|
variables:
|
|
|
|
DOCKER_DRIVER: overlay2
|
|
|
|
stage: test
|
|
|
|
before_script:
|
|
|
|
- apt update && apt install -y wget g++-multilib libcurl3 python
|
|
|
|
- rm -rf /root/.komodo || true
|
|
|
|
- mv .komodo /root/ || true
|
|
|
|
script:
|
|
|
|
- tar -xzvf $VERUS_CLI_LINUX
|
|
|
|
- export PATH=$PATH:$CI_PROJECT_DIR/verus-cli
|
|
|
|
- python qa/verus-cli-tests/verus-cli-tester.py
|
|
|
|
after_script:
|
|
|
|
- mv /root/.komodo ./ || true
|
|
|
|
cache:
|
|
|
|
key: ${CI_JOB_NAME}
|
|
|
|
paths: [.komodo]
|
|
|
|
artifacts:
|
|
|
|
paths: [log.txt]
|
|
|
|
expire_in: 1 week
|
|
|
|
dependencies:
|
|
|
|
- build:linux
|
|
|
|
|
|
|
|
|
|
|
|
.osx:sierra: # fetch-params.sh needs to be fixed for MacOS
|
|
|
|
stage: test
|
|
|
|
tags: ["Sierra"]
|
|
|
|
script:
|
|
|
|
- tar -xzvf $VERUS_CLI_MACOS
|
|
|
|
- export PATH=$PATH:$CI_PROJECT_DIR/verus-cli
|
|
|
|
- python qa/verus-cli-tests/verus-cli-tester.py
|
|
|
|
artifacts:
|
|
|
|
paths: [log.txt]
|
|
|
|
expire_in: 1 week
|
|
|
|
dependencies:
|
|
|
|
- build:mac
|
|
|
|
|
|
|
|
|
|
|
|
.osx:high-sierra: # fetch-params.sh needs to be fixed for MacOS
|
|
|
|
stage: test
|
|
|
|
tags: ["High Sierra"]
|
|
|
|
script:
|
|
|
|
- tar -xzvf $VERUS_CLI_MACOS
|
|
|
|
- export PATH=$PATH:$CI_PROJECT_DIR/verus-cli
|
|
|
|
- python qa/verus-cli-tests/verus-cli-tester.py
|
|
|
|
artifacts:
|
|
|
|
paths: [log.txt]
|
|
|
|
expire_in: 1 week
|
|
|
|
dependencies:
|
|
|
|
- build:mac
|
|
|
|
|
|
|
|
|
|
|
|
.windows:10:
|
|
|
|
stage: test
|
|
|
|
tags: ["Windows 10"]
|
|
|
|
script:
|
|
|
|
- PowerShell Expand-Archive -Path %VERUS_CLI_WINDOWS% -DestinationPath %CI_PROJECT_DIR%
|
|
|
|
- set PATH=%PATH%;%CI_PROJECT_DIR%\verus-cli
|
|
|
|
- qa\verus-cli-tests\verus-cli-tester.py
|
|
|
|
artifacts:
|
|
|
|
paths: [log.txt]
|
|
|
|
expire_in: 1 week
|
|
|
|
dependencies:
|
|
|
|
- build:windows
|
|
|
|
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
stage: deploy
|
|
|
|
image: google/cloud-sdk:alpine
|
|
|
|
variables:
|
|
|
|
DOCKER_DRIVER: overlay2
|
|
|
|
dependencies:
|
|
|
|
- build:linux
|
|
|
|
- build:windows
|
|
|
|
- build:mac
|
|
|
|
script:
|
|
|
|
- mkdir Windows && mkdir Linux && mkdir MacOS &&
|
|
|
|
mv $VERUS_CLI_WINDOWS Windows &&
|
|
|
|
mv $VERUS_CLI_LINUX Linux &&
|
|
|
|
mv $VERUS_CLI_MACOS MacOS
|
|
|
|
- echo "$AUTH_KEY" > AUTH_KEY.json &&
|
|
|
|
gcloud auth activate-service-account
|
|
|
|
--key-file AUTH_KEY.json
|
|
|
|
- gsutil cp -r Windows Linux MacOS $STAGING/VerusCoin/$CI_COMMIT_REF_NAME/
|
|
|
|
- curl -X POST
|
|
|
|
-F token="$CI_JOB_TOKEN"
|
|
|
|
-F ref=dev
|
|
|
|
-F variables\[UPSTREAM_CLI_BRANCH\]="$CI_COMMIT_REF_NAME"
|
|
|
|
-F variables\[VERUS_CLI_LINUX\]="$VERUS_CLI_LINUX"
|
|
|
|
-F variables\[VERUS_CLI_WINDOWS\]="$VERUS_CLI_WINDOWS"
|
|
|
|
-F variables\[VERUS_CLI_MACOS\]="$VERUS_CLI_MACOS"
|
|
|
|
"https://gitlab.com/api/v4/projects/8018592/trigger/pipeline"
|