Asher dev (#81)

* Updating GitLab CI, clean up.

* Updating GitLab CI config
This commit is contained in:
Asher Dawes
2018-06-27 13:29:35 -07:00
committed by GitHub
parent 7e7ea6e7b3
commit e96d89daa3
9 changed files with 78 additions and 110 deletions

View File

@@ -1,37 +1,38 @@
stages: stages:
- build - build
- test - test
- deploy
variables: variables:
VERSION: "0.3.7" VERSION: "0.3.9"
AGAMA_ARTIFACTS_LINUX: "linux64.tar.gz"
AGAMA_ARTIFACTS_MACOS: "osx.tar.gz"
AGAMA_ARTIFACTS_WINDOWS: "win64.zip"
VERUS_CLI_DEBIAN: "verus-cli-v${VERSION}-beta-amd64.deb"
VERUS_CLI_LINUX_PORTABLE: "verus-cli-linux-v$VERSION-beta.tar.gz"
VERUS_CLI_WINDOWS_PORTABLE: "verus-cli-windows-v$VERSION-beta.zip"
VERUS_CLI_MACOS_PORTABLE: "verus-cli-mac-v$VERSION-beta.tar.gz"
build:linux: build:linux:
image: asherd/veruscoin-cross-compiler:linux image: asherd/veruscoin-cross-compiler:linux
variables: variables:
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
stage: build stage: build
cache:
key: ${CI_JOB_NAME}
paths:
- depends/built
- .ccache
- .zcash-params
before_script:
- mkdir .ccache || echo ccache exists
- ln -s $PWD/.ccache /root/.ccache
- mkdir .zcash-params || echo zcash-params exists
- ln -s $PWD/.zcash-params /root/.zcash-params
script: script:
- "./zcutil/fetch-params.sh"
- "./zcutil/build.sh" - "./zcutil/build.sh"
##- "./zcutil/build-debian-package.sh"
- "./makeReleaseLinux.sh" - "./makeReleaseLinux.sh"
- "cd kmd/linux/" - "cd kmd/linux"
- "tar -czvf verus-cli-linux-v$VERSION-beta.tar.gz verus-cli" - "tar -czvf $VERUS_CLI_LINUX_PORTABLE verus-cli"
- "mv verus-cli-linux-v$VERSION-beta.tar.gz ../.." - "mv $VERUS_CLI_LINUX_PORTABLE ../.."
- "mv verus-cli linux64"
- "tar -czvf $AGAMA_ARTIFACTS_LINUX linux64"
- "mv $AGAMA_ARTIFACTS_LINUX ../.."
artifacts: artifacts:
paths: paths:
- verus-cli-linux-v$VERSION-beta.tar.gz - $VERUS_CLI_LINUX_PORTABLE
## - $VERUS_CLI_DEBIAN
- $AGAMA_ARTIFACTS_LINUX
expire_in: 1 week expire_in: 1 week
build:windows: build:windows:
@@ -45,7 +46,6 @@ build:windows:
- depends/built - depends/built
- .ccache - .ccache
- .cargo - .cargo
- .zcash-params
before_script: before_script:
- mkdir .ccache || echo ccache exists - mkdir .ccache || echo ccache exists
- ln -s $PWD/.ccache /root/.ccache - ln -s $PWD/.ccache /root/.ccache
@@ -54,15 +54,18 @@ build:windows:
- mkdir .cargo || echo .cargo exists - mkdir .cargo || echo .cargo exists
- ln -s $PWD/.cargo /root/.cargo - ln -s $PWD/.cargo /root/.cargo
script: script:
- "./zcutil/fetch-params.sh"
- "./zcutil/build-win.sh" - "./zcutil/build-win.sh"
- "./makeReleaseWindows.sh" - "./makeReleaseWindows.sh"
- "cd kmd/windows/" - "cd kmd/windows/"
- "zip verus-cli-windows-v$VERSION-beta.zip verus-cli" - "zip -r $VERUS_CLI_WINDOWS_PORTABLE verus-cli"
- "mv verus-cli-windows-v$VERSION-beta.zip ../.." - "mv $VERUS_CLI_WINDOWS_PORTABLE ../.."
- "mv verus-cli win64"
- "zip -r $AGAMA_ARTIFACTS_WINDOWS win64"
- "mv $AGAMA_ARTIFACTS_WINDOWS ../.."
artifacts: artifacts:
paths: paths:
- verus-cli-windows-v$VERSION-beta.zip - $VERUS_CLI_WINDOWS_PORTABLE
- $AGAMA_ARTIFACTS_WINDOWS
expire_in: 1 week expire_in: 1 week
build:mac: build:mac:
@@ -74,18 +77,21 @@ build:mac:
- depends/built - depends/built
script: script:
- "./zcutil/fetch-params.sh"
- "./zcutil/build-mac.sh | xcpretty" - "./zcutil/build-mac.sh | xcpretty"
- "./makeReleaseMac.sh" - "./makeReleaseMac.sh"
- "cd kmd/mac/" - "cd kmd/mac/"
- "tar -czvf verus-cli-mac-v$VERSION-beta.tar.gz verus-cli" - "tar -czvf $VERUS_CLI_MACOS_PORTABLE verus-cli"
- "mv verus-cli-mac-v$VERSION-beta.tar.gz ../.." - "mv verus-cli-mac-v$VERSION-beta.tar.gz ../.."
- "mv verus-cli osx"
- "tar -czvf $AGAMA_ARTIFACTS_MACOS osx"
- "mv $AGAMA_ARTIFACTS_MACOS ../.."
artifacts: artifacts:
paths: paths:
- verus-cli-mac-v$VERSION-beta.tar.gz - $VERUS_CLI_MACOS_PORTABLE
- $AGAMA_ARTIFACTS_MACOS
expire_in: 1 week expire_in: 1 week
code_quality: .code_quality:
image: docker:stable image: docker:stable
variables: variables:
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
@@ -102,7 +108,7 @@ code_quality:
artifacts: artifacts:
paths: [gl-code-quality-report.json] paths: [gl-code-quality-report.json]
sast: .sast:
image: docker:stable image: docker:stable
variables: variables:
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
@@ -118,3 +124,24 @@ sast:
"registry.gitlab.com/gitlab-org/security-products/sast:$SP_VERSION" /app/bin/run /code "registry.gitlab.com/gitlab-org/security-products/sast:$SP_VERSION" /app/bin/run /code
artifacts: artifacts:
paths: [gl-sast-report.json] paths: [gl-sast-report.json]
deploy:
stage: deploy
image: google/cloud-sdk:alpine
variables:
DOCKER_DRIVER: overlay2
dependencies:
- build:linux
- build:windows
- build:mac
script:
- "mkdir $CI_COMMIT_REF_NAME"
- "cd $CI_COMMIT_REF_NAME"
- "mkdir Windows && mkdir Linux @&& mkdir MacOS"
- "cd .."
- "mv $VERUS_CLI_WINDOWS_PORTABLE $AGAMA_ARTIFACTS_WINDOWS $CI_COMMIT_REF_NAME/Windows"
- "mv $VERUS_CLI_LINUX_PORTABLE $AGAMA_ARTIFACTS_LINUX $CI_COMMIT_REF_NAME/Linux"
- "mv $AGAMA_ARTIFACTS_MACOS $VERUS_CLI_MACOS_PORTABLE $CI_COMMIT_REF_NAME/MacOS"
- 'echo "$AUTH_KEY" > AUTH_KEY.json'
- "gcloud auth activate-service-account --key-file AUTH_KEY.json"
- "gsutil rsync -r $CI_COMMIT_REF_NAME/ $STAGING/VerusCoin/$CI_COMMIT_REF_NAME/"

View File

@@ -1,21 +1,22 @@
Source: zcash Source: VerusCoin
Section: utils Section: utils
Priority: optional Priority: optional
Maintainer: Zcash Company <team@z.cash> Maintainer: VerusCoin <team@z.cash>
Homepage: https://z.cash Homepage: https://veruscoin.io
Build-Depends: autoconf, automake, bsdmainutils, build-essential, Build-Depends: autoconf, automake, bsdmainutils, build-essential,
git, g++-multilib, libc6-dev, libtool, git, g++-multilib, libc6-dev, libtool,
m4, ncurses-dev, pkg-config, python, m4, ncurses-dev, pkg-config, python,
unzip, wget, zlib1g-dev unzip, wget, zlib1g-dev
Vcs-Git: https://github.com/zcash/zcash.git Vcs-Git: https://github.com/VeruscCoin/VerusCoin.git
Vcs-Browser: https://github.com/zcash/zcash Vcs-Browser: https://github.com/VerusCoin/VerusCoin
Package: zcash Package: Verus-CLI
Architecture: amd64 Architecture: amd64
Depends: ${shlibs:Depends} Depends: ${shlibs:Depends}
Description: HTTPS for money. Description: VerusCoin is a new, mineable and stakeable cryptocurrency.
Based on Bitcoin's code, it intends to offer a far higher standard It is a live fork of Komodo that retains its Zcash lineage and improves it.
of privacy and anonymity through a sophisticiated zero-knowledge VerusCoin will leverage the Komodo platform and dPoW notarization for enhanced security and cross-chain interoperability.
proving scheme which preserves confidentiality of transaction metadata. 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.
This package provides the daemon, zcashd, and the CLI tool, We describe these changes and vision going forward in a [our Phase I white paper](http://185.25.51.16/papers/VerusPhaseI.pdf) and
zcash-cli, to interact with the daemon. [our Vision](http://185.25.51.16/papers/VerusVision.pdf).

View File

@@ -1,3 +1,3 @@
usr/bin/zcashd usr/bin/komodod
usr/bin/zcash-cli usr/bin/komodo-cli
usr/bin/zcash-fetch-params usr/bin/zcash-fetch-params

View File

@@ -1,12 +1,12 @@
VerusCoin Command Line Tools v0.3.8-beta VerusCoin Command Line Tools v0.3.9-beta
Contents: Contents:
komodod - VerusCoin's enhanced Komodo daemon komodod - VerusCoin's enhanced Komodo daemon
komodo-cli - VerusCoin's Komodo command line utility komodo-cli - VerusCoin's Komodo command line utility
verus - wrapper for komodo-cli that applies the command to the VRSC coin verus - wrapper for komodo-cli that applies the command to the VRSC coin
verusd - wrapper for komodod that sets the VerusCoin parameters to defaults properly verusd - wrapper for komodod that sets the VerusCoin parameters to defaults properly
The first time on a new system you will need to run ./zcash-fetch-params.sh before using komodod or verusd. The first time on a new system you will need to run ./fetch-params.sh before using komodod or verusd.
Run verusd to launch komodod, and use verus to run commands such as: Run ./verusd to launch komodod, and use verus to run commands such as:
verus stop ./verus stop
Which signals komodod (if it is running) to stop running. Which signals komodod (if it is running) to stop running.

View File

@@ -1,28 +0,0 @@
#!/bin/bash
if [ $# -eq 0 ]
then
echo "Usage: ./update-verus-agama.sh path/to/agama/directory."
echo "No arguments supplied, no updates applied."
exit 1
fi
PASSED=$1
if [ -d "${PASSED}" ] ; then
if [ -f "${PASSED}/resources/app/assets/bin/linux64/komodod" ] ; then
cp komodod ${PASSED}/resources/app/assets/bin/linux64/
cp komodo-cli ${PASSED}/resources/app/assets/bin/linux64/
exit 0
else
echo "No komodod found in ${PASSED}/resources/app/assets/bin/linux64/"
echo "Copying komodod and komodo-cli anyway"
cp komodod ${PASSED}/resources/app/assets/bin/linux64/
cp komodo-cli ${PASSED}/resources/app/assets/bin/linux64/
exit 0
fi
else
echo "Pass the Agama-linux-x64 directory on the command line."
echo "${PASSED} is not a valid directory.";
exit 1
fi

View File

@@ -1,4 +1,4 @@
VerusCoin Command Line Tools v0.3.8-beta VerusCoin Command Line Tools v0.3.9-beta
Contents: Contents:
komodod - VerusCoin's enhanced Komodo daemon. komodod - VerusCoin's enhanced Komodo daemon.
komodo-cli - VerusCoin's enhanced Komodo command line utility. komodo-cli - VerusCoin's enhanced Komodo command line utility.
@@ -10,7 +10,7 @@ lib*.dylib - assorted dynamic libraries, dependencies needed by fetch-params.sh,
Command line tools are run from the terminal. You can launch the terminal on a Mac by using the Finder, selecting Applications and from that select Utilities, finally selecting Terminal from the Utilities folder. Command line tools are run from the terminal. You can launch the terminal on a Mac by using the Finder, selecting Applications and from that select Utilities, finally selecting Terminal from the Utilities folder.
You will need to switch to the directory you extracted the verus-cl into. If you extracted it in the Download folder then the change directory command is You will need to switch to the directory you extracted the verus-cl into. If you extracted it in the Download folder then the change directory command is
cd ~/Downloads/verus-cli cd ~/Downloads/verus-cli
The first time on a new system you will need to run ./zcash-fetch-params before using komodod or verusd. The first time on a new system you will need to run ./fetch-params before using komodod or verusd.
Run ./verusd to launch komodod, and use verus to run commands such as: Run ./verusd to launch komodod, and use verus to run commands such as:
./verus stop ./verus stop

View File

@@ -9,7 +9,7 @@ You need to run a command prompt, for example hit <Ctrl><Esc> and type cmd<Enter
From the command prompt change to the directory where you installed verus-cli. If you downloaded the file to your Downloads directory and extracted it there then the change directory command is From the command prompt change to the directory where you installed verus-cli. If you downloaded the file to your Downloads directory and extracted it there then the change directory command is
cd \Users\MyName\Downloads\verus-cli cd \Users\MyName\Downloads\verus-cli
From this directory you can run the Verus command line utilities. From this directory you can run the Verus command line utilities.
The first time on a new system you will need to run zcash-fetch-params.bat before using komodod.exe or verusd. The first time on a new system you will need to run fetch-params before using komodod.exe or verusd.
Many anti-virus products interfere with the VerusCoin tool's ability to open ports and will need to be configured to allow what the scanner says is unsafe behavior. Many anti-virus products interfere with the VerusCoin tool's ability to open ports and will need to be configured to allow what the scanner says is unsafe behavior.
Extreme cases can result in the virus scanner deleting Agama.exe or moving it to "protect" the system. You will to add the executables to a whitelist and re-extract the verus-cli-windows.zip file if that happens. Extreme cases can result in the virus scanner deleting Agama.exe or moving it to "protect" the system. You will to add the executables to a whitelist and re-extract the verus-cli-windows.zip file if that happens.
Run verusd.bat to launch komodod, and use verus.bat to run commands such as: Run verusd.bat to launch komodod, and use verus.bat to run commands such as:

View File

@@ -1,32 +0,0 @@
@echo off
set AGAMA_DIR=%1
if defined AGAMA_DIR (
goto :CHECK_DIR
) else (
call :GET_AGAMA_DIR
goto :CHECK_DIR
)
:GET_AGAMA_DIR
set /p AGAMA_DIR="Please enter the path to the Agama directory i.e ~\Users\{USER}\Downloads\Agama-win32-x64 :"
goto :EOF
:CHECK_DIR
IF NOT EXIST %AGAMA_DIR% (
ECHO "Directory does not exist. No changes applied. Exiting.
goto :EOF
) else (
goto :UPGRADE
)
goto :EOF
:UPGRADE
pushd %~dp0
set SCRIPT_DIR=%CD%
popd
cd %SCRIPT_DIR%
set TARGET=%AGAMA_DIR%\resources\app\assets\bin\win64\
xcopy komodo*.exe %TARGET% /b/v/y || echo UPGRADE FAILED && goto :EOF
echo upgrade successful
goto :EOF

View File

@@ -19,7 +19,7 @@ fi
## PACKAGE_VERSION=$($SRC_PATH/src/zcashd --version | grep version | cut -d' ' -f4 | tr -d v) ## PACKAGE_VERSION=$($SRC_PATH/src/zcashd --version | grep version | cut -d' ' -f4 | tr -d v)
## Need version setting from environment ## Need version setting from environment
PACKAGE_VERSION=0.3.7-beta PACKAGE_VERSION=0.3.8-beta
## ##
## Also, what does the sed end up doing? ## Also, what does the sed end up doing?
DEBVERSION=$(echo $PACKAGE_VERSION | sed 's/-beta/~beta/' | sed 's/-rc/~rc/' | sed 's/-/+/') DEBVERSION=$(echo $PACKAGE_VERSION | sed 's/-beta/~beta/' | sed 's/-rc/~rc/' | sed 's/-/+/')