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
7114224f
Unverified
Commit
7114224f
authored
May 26, 2020
by
Oleh Nikolaiev
Committed by
GitHub
May 26, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into enhanacement/SKALE-2202-versioning
parents
7fd9b176
94ce3566
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
20 deletions
+8
-20
dockerimagesim.yml
.github/workflows/dockerimagesim.yml
+2
-1
start.sh
docker/start.sh
+1
-8
docker_build.py
scripts/docker_build.py
+0
-1
docker_test.py
scripts/docker_test.py
+4
-9
testw.py
testw.py
+1
-1
No files found.
.github/workflows/dockerimagesim.yml
View file @
7114224f
...
...
@@ -17,6 +17,7 @@ jobs:
-
name
:
submodule update
run
:
git submodule update --init --recursive
-
name
:
build container for release
if
:
contains(github.ref, 'develop') || contains(github.ref, 'beta') || contains(github.ref, 'master') || contains(github.ref, 'stable')
run
:
|
export BRANCH=${GITHUB_REF##*/}
echo "Branch $BRANCH"
...
...
@@ -29,7 +30,7 @@ jobs:
-
name
:
build container for testing
run
:
python3 scripts/docker_build.py DockerfileSimulation sgxwalletsim ${GITHUB_SHA}
-
name
:
test
run
:
python3 scripts/docker_test.py
${GITHUB_REF##*/}
DockerfileSimulation sgxwalletsim
run
:
python3 scripts/docker_test.py DockerfileSimulation sgxwalletsim
-
name
:
deploy docker image
if
:
contains(github.ref, 'develop') || contains(github.ref, 'beta') || contains(github.ref, 'master') || contains(github.ref, 'stable')
run
:
|
...
...
docker/start.sh
View file @
7114224f
...
...
@@ -38,14 +38,7 @@ fi
if
[[
"
$1
"
==
"-t"
]]
;
then
echo
"Test run requested"
./testw
[
bls-key-encrypt]
./testw
[
dkg-encr-sshares]
./testw
[
dkg-verify]
./testw
[
get-server-status]
./testw
[
dkg-api]
./testw
[
dkg-poly-exists]
./testw
[
aes-encrypt-decrypt]
./testw
[
get-server-version]
./testw.py
else
./sgxwallet
$1
$2
$3
$4
fi
...
...
scripts/docker_build.py
View file @
7114224f
...
...
@@ -32,7 +32,6 @@ COMMIT_HASH = sys.argv[3]
TAG_POSTFIX
=
"latest_commit"
FULL_IMAGE_TAG
=
"skalenetwork/"
+
IMAGE_NAME
+
":"
+
TAG_POSTFIX
COMMIT_HASH_TAG
=
"skalenetwork/"
+
IMAGE_NAME
+
":"
+
COMMIT_HASH
print
(
"Starting build"
,
flush
=
True
)
...
...
scripts/docker_test.py
View file @
7114224f
...
...
@@ -29,18 +29,13 @@ topDir = os.getcwd() + "/sgxwallet"
print
(
"Starting container test"
)
print
(
"Top directory is:"
+
topDir
)
BRANCH
=
sys
.
argv
[
1
];
DOCKER_FILE_NAME
=
sys
.
argv
[
2
];
IMAGE_NAME
=
sys
.
argv
[
3
]
if
(
BRANCH
==
"develop"
)
:
TAG_POSTFIX
=
"latest"
;
else
:
TAG_POSTFIX
=
"latest_commit"
DOCKER_FILE_NAME
=
sys
.
argv
[
1
];
IMAGE_NAME
=
sys
.
argv
[
2
]
TAG_POSTFIX
=
"latest_commit"
FULL_IMAGE_NAME
=
"skalenetwork/"
+
IMAGE_NAME
+
":"
+
TAG_POSTFIX
;
print
(
"Running tests
for branch "
+
BRANCH
);
print
(
"Running tests
"
);
dockerRun
=
subprocess
.
run
([
"docker"
,
"run"
,
"-v"
,
topDir
+
"/sgx_data:/usr/src/sdk/sgx_data"
,
"-t"
,
"-v"
,
"/dev/urandom:/dev/random"
,
"--name"
,
"sgxwallet"
,
"--network=host"
,
"skalenetwork/"
+
IMAGE_NAME
+
":"
+
TAG_POSTFIX
,
"-t"
])
...
...
testw.py
View file @
7114224f
...
...
@@ -51,7 +51,7 @@ testList = [ "[cert-sign]",
"[dkg-bls]"
,
"[dkg-poly-exists]"
,
"[dkg-pub-shares]"
,
#
"[many-threads-crypto]",
"[many-threads-crypto]"
,
"[aes-encrypt-decrypt]"
,
"[aes-dkg]"
]
...
...
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