Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
builder
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
builder
Commits
2333345a
Commit
2333345a
authored
1 year ago
by
Richard T. Carback III
Browse files
Options
Downloads
Patches
Plain Diff
Latest changes
parent
1483a41d
No related branches found
No related tags found
1 merge request
!1
Release
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
builder/build.py
+9
-2
9 additions, 2 deletions
builder/build.py
builder/main.py
+18
-14
18 additions, 14 deletions
builder/main.py
with
27 additions
and
16 deletions
builder/build.py
+
9
−
2
View file @
2333345a
...
...
@@ -9,7 +9,9 @@ import shutil
from
termcolor
import
colored
def
get_dir
(
path
):
return
path
.
split
(
'
:
'
)[
1
]
dirp
=
path
.
split
(
'
:
'
)[
1
]
parts
=
dirp
.
split
(
'
/
'
)
return
os
.
path
.
join
(
parts
[
0
],
parts
[
1
])
def
run
(
cmd
):
print
(
"
"
.
join
(
cmd
))
...
...
@@ -33,6 +35,10 @@ def clone(repo):
if
not
repo
:
raise
(
"
Cannot clone without repository!
"
)
if
repo
.
endswith
(
'
/v4
'
):
repo
=
repo
[:
-
3
]
target_dir
=
get_dir
(
repo
)
os
.
makedirs
(
target_dir
,
exist_ok
=
True
)
...
...
@@ -119,7 +125,7 @@ def update(repo, dependencies):
raise
(
"
Second update failure
"
)
if
not
check_changes
():
raise
(
"
bad repository state, will not update
"
)
run
([
'
go
'
,
'
mod
'
,
'
tidy
'
,
'
-compat=1.1
7
'
])
# go mod tidy -compat=1.1
7
run
([
'
go
'
,
'
mod
'
,
'
tidy
'
,
'
-compat=1.1
9
'
])
# go mod tidy -compat=1.1
9
run
([
'
go
'
,
'
mod
'
,
'
vendor
'
])
run
([
'
make
'
,
'
release
'
])
run
([
'
go
'
,
'
build
'
,
'
./...
'
])
...
...
@@ -181,6 +187,7 @@ def mergeinto(repo, target):
run
([
'
git
'
,
'
pull
'
])
run
([
'
git
'
,
'
merge
'
,
target
])
run
([
'
git
'
,
'
checkout
'
,
'
--ours
'
,
'
go.mod
'
,
'
go.sum
'
])
run
([
'
git
'
,
'
add
'
,
'
go.sum
'
,
'
go.mod
'
])
run
([
'
git
'
,
'
commit
'
])
res
=
run
([
'
git
'
,
'
push
'
])
if
res
.
returncode
!=
0
:
...
...
This diff is collapsed.
Click to expand it.
builder/main.py
+
18
−
14
View file @
2333345a
...
...
@@ -43,29 +43,33 @@ proj_conf = {
'
dependencies
'
:
[
'
xxprimitives
'
,
'
xxcrypto
'
,
'
xxcomms
'
,
'
primitives
'
,
'
crypto
'
,
'
ring
'
,
'
grpc-web-go-client
'
],
},
# 'server': { # Note -- leaving out GPU, ekv, and others for now!
# 'repo': 'git@git.xx.network:elixxir/server',
# 'dependencies': ['xxprimitives', 'xxcrypto', 'xxcomms',
# 'primitives', 'crypto', 'ring', 'comms'],
# },
'
server
'
:
{
# Note -- leaving out GPU, ekv, and others for now!
'
repo
'
:
'
git@git.xx.network:elixxir/server
'
,
'
dependencies
'
:
[
'
xxprimitives
'
,
'
xxcrypto
'
,
'
xxcomms
'
,
'
primitives
'
,
'
crypto
'
,
'
ring
'
,
'
comms
'
,
'
grpc-web-go-client
'
],
},
'
permissioning
'
:
{
'
repo
'
:
'
git@git.xx.network:elixxir/registration
'
,
'
dependencies
'
:
[
'
xxprimitives
'
,
'
xxcrypto
'
,
'
xxcomms
'
,
'
primitives
'
,
'
crypto
'
,
'
ring
'
,
'
comms
'
],
'
primitives
'
,
'
crypto
'
,
'
ring
'
,
'
comms
'
,
'
grpc-web-go-client
'
],
},
'
client-registrar
'
:
{
'
repo
'
:
'
git@git.xx.network:elixxir/client-registrar
'
,
'
dependencies
'
:
[
'
xxprimitives
'
,
'
xxcrypto
'
,
'
xxcomms
'
,
'
primitives
'
,
'
crypto
'
,
'
ring
'
,
'
comms
'
,
'
permissioning
'
],
'
permissioning
'
,
'
grpc-web-go-client
'
],
},
'
gateway
'
:
{
'
repo
'
:
'
git@git.xx.network:elixxir/gateway
'
,
'
dependencies
'
:
[
'
xxprimitives
'
,
'
xxcrypto
'
,
'
xxcomms
'
,
'
primitives
'
,
'
crypto
'
,
'
ring
'
,
'
comms
'
],
'
primitives
'
,
'
crypto
'
,
'
ring
'
,
'
comms
'
,
'
grpc-web-go-client
'
],
},
'
client
'
:
{
'
repo
'
:
'
git@git.xx.network:elixxir/client
'
,
'
repo
'
:
'
git@git.xx.network:elixxir/client
/v4
'
,
'
dependencies
'
:
[
'
xxprimitives
'
,
'
xxcrypto
'
,
'
grpc-web-go-client
'
,
'
xxcomms
'
,
'
primitives
'
,
'
crypto
'
,
'
ring
'
,
'
comms
'
],
},
...
...
@@ -80,11 +84,11 @@ proj_conf = {
'
xxcomms
'
,
'
primitives
'
,
'
crypto
'
,
'
ring
'
,
'
comms
'
,
'
client
'
],
},
#
'notifications-bot': {
#
'repo': 'git@git.xx.network:elixxir/notifications-bot',
#
'dependencies': ['xxprimitives', 'xxcrypto', 'xxcomms',
#
'primitives', 'crypto', 'ring', 'comms'],
#
},
'
notifications-bot
'
:
{
'
repo
'
:
'
git@git.xx.network:elixxir/notifications-bot
'
,
'
dependencies
'
:
[
'
xxprimitives
'
,
'
xxcrypto
'
,
'
xxcomms
'
,
'
primitives
'
,
'
crypto
'
,
'
ring
'
,
'
comms
'
,
'
grpc-web-go-client
'
],
},
# 'coupon-bot': {
# 'repo': 'git@git.xx.network:elixxir/coupon-bot',
# 'dependencies': ['xxprimitives', 'xxcrypto', 'xxcomms',
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment