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
fa651fb1
Unverified
Commit
fa651fb1
authored
Feb 17, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-2077 Fixed Naming
parent
d4b1ef00
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
15 deletions
+5
-15
dockerimagesim.yml
.github/workflows/dockerimagesim.yml
+3
-9
docker_test.py
scripts/docker_test.py
+2
-6
No files found.
.github/workflows/dockerimagesim.yml
View file @
fa651fb1
...
@@ -3,12 +3,6 @@ on: [push]
...
@@ -3,12 +3,6 @@ on: [push]
jobs
:
jobs
:
build
:
build
:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
-
name
:
install python 3.8
run
:
|
sudo apt update; sudo apt install software-properties-common;
sudo add-apt-repository ppa:deadsnakes/ppa;
sudo apt install python3.8;
-
name
:
Login to docker
-
name
:
Login to docker
env
:
env
:
GITHUB_TOKEN
:
${{ secrets.DOCKER_SECRET }}
GITHUB_TOKEN
:
${{ secrets.DOCKER_SECRET }}
...
@@ -17,11 +11,11 @@ jobs:
...
@@ -17,11 +11,11 @@ jobs:
-
name
:
submodule update
-
name
:
submodule update
run
:
git submodule update --init --recursive
run
:
git submodule update --init --recursive
-
name
:
build
-
name
:
build
run
:
python3
.8
scripts/docker_build.py ${GITHUB_REF##*/} DockerfileSimulation sgxwalletsim
run
:
python3 scripts/docker_build.py ${GITHUB_REF##*/} DockerfileSimulation sgxwalletsim
-
name
:
test
-
name
:
test
run
:
python3
.8
scripts/docker_test.py ${GITHUB_REF##*/} DockerfileSimulation sgxwalletsim
run
:
python3 scripts/docker_test.py ${GITHUB_REF##*/} DockerfileSimulation sgxwalletsim
-
name
:
push
-
name
:
push
run
:
python3
.8
scripts/docker_push.py ${GITHUB_REF##*/} DockerfileSimulation sgxwalletsim
run
:
python3 scripts/docker_push.py ${GITHUB_REF##*/} DockerfileSimulation sgxwalletsim
scripts/docker_test.py
View file @
fa651fb1
...
@@ -50,13 +50,9 @@ print("Running tests for branch " + BRANCH);
...
@@ -50,13 +50,9 @@ print("Running tests for branch " + BRANCH);
assert
subprocess
.
call
([
"docker"
,
"image"
,
"inspect"
,
FULL_IMAGE_NAME
])
==
0
;
assert
subprocess
.
call
([
"docker"
,
"image"
,
"inspect"
,
FULL_IMAGE_NAME
])
==
0
;
completedProcess
=
subprocess
.
run
([
"docker"
,
"run"
,
"-v"
,
topDir
+
"/sgx_data:/usr/src/sdk/sgx_data"
,
"-ti"
,
completedProcess
=
subprocess
.
run
([
"docker"
,
"run"
,
"-v"
,
topDir
+
"/sgx_data:/usr/src/sdk/sgx_data"
,
"-t"
,
"--name"
,
"sgxwallet"
,
"--network=host"
,
"skalenetwork/"
+
IMAGE_NAME
+
":"
+
TAG_POSTFIX
,
"-t"
],
"--name"
,
"sgxwallet"
,
"--network=host"
,
"skalenetwork/"
+
IMAGE_NAME
+
":"
+
TAG_POSTFIX
,
"-t"
])
capture_output
=
True
)
print
(
completedProcess
.
stdout
)
print
(
completedProcess
.
stderr
)
assert
completedProcess
.
returncode
==
0
assert
subprocess
.
call
([
"docker"
,
"kill"
,
"sgxwallet"
])
==
0
assert
subprocess
.
call
([
"docker"
,
"kill"
,
"sgxwallet"
])
==
0
...
...
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