Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
exchain
nebula
Commits
e61648a8
Commit
e61648a8
authored
Aug 02, 2023
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefile: automate rebuild
parent
5aad3cde
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletion
+29
-1
Makefile
Makefile
+5
-0
Makefile
op-e2e/Makefile
+10
-1
newer-file.sh
ops/scripts/newer-file.sh
+14
-0
No files found.
Makefile
View file @
e61648a8
SHELL
=
/usr/bin/sh
COMPOSEFLAGS
=
-d
ITESTS_L2_HOST
=
http://localhost:9545
BEDROCK_TAGS_REMOTE
?=
origin
...
...
@@ -74,6 +75,10 @@ nuke: clean devnet-clean
.PHONY
:
nuke
devnet-up
:
$(
shell
./ops/scripts/newer-file.sh .devnet/allocs-l1.json ./packages/contracts-bedrock
)
if
[
$
(
.SHELLSTATUS
)
-ne
0
]
;
then
\
make devnet-allocs
;
\
fi
PYTHONPATH
=
./bedrock-devnet python3 ./bedrock-devnet/main.py
--monorepo-dir
=
.
.PHONY
:
devnet-up
...
...
op-e2e/Makefile
View file @
e61648a8
test
:
devnet-allocs
:
PYTHONPATH
=
../bedrock-devnet python3 ../bedrock-devnet/main.py
--monorepo-dir
=
..
--allocs
pre-test
:
$(
shell
../ops/scripts/newer-file.sh ../.devnet/allocs-l1.json .././packages/contracts-bedrock
)
if
[
$
(
.SHELLSTATUS
)
-ne
0
]
;
then
\
make devnet-allocs
;
\
fi
test
:
pre-test
go
test
-v
./...
lint
:
...
...
ops/scripts/newer-file.sh
0 → 100755
View file @
e61648a8
#!/usr/bin/env bash
# Returns 0 if the first file is newer than the second file
# Works on files or directories
if
[[
!
-e
"
$1
"
]]
;
then
exit
1
;
fi
if
[[
!
-e
"
$2
"
]]
;
then
exit
1
;
fi
FILE_1_AGE
=
$(
date
+%s%N
--reference
"
$1
"
)
FILE_2_AGE
=
$(
date
+%s%N
--reference
"
$2
"
)
if
((
"
$FILE_1_AGE
"
>
"
$FILE_2_AGE
"
))
;
then
exit
0
fi
exit
1
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