Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sgxwallet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董子豪
sgxwallet
Commits
487e7dc9
Unverified
Commit
487e7dc9
authored
May 18, 2020
by
Oleh Nikolaiev
Committed by
GitHub
May 18, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #87 from skalenetwork/feature/SKALE-2202-versioning
SKLAE-2202 fix build script and calculating version
parents
8dcf6005
46209dc0
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
16 deletions
+10
-16
dockerimage.yml
.github/workflows/dockerimage.yml
+1
-0
dockerimagebase.yml
.github/workflows/dockerimagebase.yml
+1
-0
dockerimagesim.yml
.github/workflows/dockerimagesim.yml
+1
-0
start.sh
docker/start.sh
+2
-11
build_and_publish.sh
scripts/build_and_publish.sh
+2
-2
calculate_version.sh
scripts/calculate_version.sh
+1
-1
testw.cpp
testw.cpp
+2
-2
No files found.
.github/workflows/dockerimage.yml
View file @
487e7dc9
...
...
@@ -19,6 +19,7 @@ jobs:
export BRANCH=${GITHUB_REF##*/}
echo "Branch $BRANCH"
export VERSION=$(cat VERSION)
echo "Version $VERSION"
export VERSION=$(bash ./scripts/calculate_version.sh $BRANCH $VERSION sgxwallet)
echo "::set-env name=VERSION::$VERSION"
echo "Version $VERSION"
...
...
.github/workflows/dockerimagebase.yml
View file @
487e7dc9
...
...
@@ -22,6 +22,7 @@ jobs:
export BRANCH=${GITHUB_REF##*/}
echo "Branch $BRANCH"
export VERSION=$(cat VERSION)
echo "Version $VERSION"
export VERSION=$(bash ./scripts/calculate_version.sh $BRANCH $VERSION sgxwallet_base)
echo "::set-env name=VERSION::$VERSION"
echo "Version $VERSION"
...
...
.github/workflows/dockerimagesim.yml
View file @
487e7dc9
...
...
@@ -23,6 +23,7 @@ jobs:
export BRANCH=${GITHUB_REF##*/}
echo "Branch $BRANCH"
export VERSION=$(cat VERSION)
echo "Version $VERSION"
export VERSION=$(bash ./scripts/calculate_version.sh $BRANCH $VERSION sgxwalletsim)
echo "::set-env name=VERSION::$VERSION"
echo "Version $VERSION"
...
...
docker/start.sh
View file @
487e7dc9
...
...
@@ -38,21 +38,12 @@ fi
if
[[
"
$1
"
==
"-t"
]]
;
then
echo
"Test run requested"
#./testw [bls-key-encrypt]
./testw
[
bls-key-encrypt-decrypt]
./testw
[
bls-key-encrypt]
./testw
[
dkg-encr-sshares]
./testw
[
dkg-verify]
./testw
[
ecdsa]
./testw
[
test
]
./testw
[
get-pub-ecdsa-key]
./testw
[
bls-dkg]
./testw
[
api]
./testw
[
get-server-status]
./testw
[
many-threads]
./testw
[
ecsa-api]
./testw
[
dkg-api]
./testw
[
is-poly
#./testw [bls-sign]
./testw
[
dkg-poly-exists]
./testw
[
aes-encrypt-decrypt]
else
./sgxwallet
$1
$2
$3
$4
...
...
scripts/build_and_publish.sh
View file @
487e7dc9
...
...
@@ -10,13 +10,13 @@ DOCKERFILE=$2
NAME
=
sgx
REPO_NAME
=
skalenetwork/
$NAME
IMAGE_NAME
=
$REPO_NAME
:
$
CONTAINER
:
$
VERSION
IMAGE_NAME
=
$REPO_NAME
:
$VERSION
LATEST_IMAGE_NAME
=
$REPO_NAME
:
$CONTAINER
:
$BRANCH
-latest
# Build image
echo
"Building
$IMAGE_NAME
..."
docker build
-
t
"
$IMAGE_NAME
"
--file
"
$DOCKERFIL
E
"
||
exit
$?
docker build
-
f
"
$DOCKERFILE
"
-t
"
$IMAGE_NAM
E
"
||
exit
$?
docker tag
"
$IMAGE_NAME
"
"
$LATEST_IMAGE_NAME
"
echo
"========================================================================================="
...
...
scripts/calculate_version.sh
View file @
487e7dc9
...
...
@@ -41,7 +41,7 @@ fi
for
((
VERSION_NUMBER
=
0
;
;
VERSION_NUMBER++
))
do
if
[
"
$VERSION
"
=
"1.49"
]
&&
[
"
$VERSION_NUMBER
"
<
"4"
]
if
[
"
$VERSION
"
=
"1.49"
]
&&
[
"
$VERSION_NUMBER
"
<
4
]
then
VERSION_NUMBER
=
4
fi
...
...
testw.cpp
View file @
487e7dc9
...
...
@@ -875,11 +875,11 @@ TEST_CASE_METHOD(TestFixture, "PolyExists test", "[dkg-poly-exists]") {
Json
::
Value
polyExists
=
c
.
isPolyExists
(
polyName
);
REQUIRE
(
polyExists
[
"
exists
"
].
asBool
());
REQUIRE
(
polyExists
[
"
IsExist
"
].
asBool
());
Json
::
Value
polyDoesNotExist
=
c
.
isPolyExists
(
"Vasya"
);
REQUIRE
(
!
polyDoesNotExist
[
"
exists
"
].
asBool
());
REQUIRE
(
!
polyDoesNotExist
[
"
IsExist
"
].
asBool
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment