Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lwc
/
compare
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2e6bf733
authored
Mar 04, 2020
by
lwc-tester
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compile_all.py now accepts a submissions directory
parent
e78ab7e8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
compile_all.py
+5
-3
process_zip.sh
+6
-5
No files found.
compile_all.py
View file @
2e6bf733
...
...
@@ -93,7 +93,6 @@ def find_test_vectors(d):
def
main
(
argv
):
submissions_dir
=
"all-lwc-submission-files"
include_list
=
None
# Parse the arguments
...
...
@@ -101,15 +100,18 @@ def main(argv):
description
=
'Compiles all LWC submissions for a given template'
)
argparser
.
add_argument
(
'-v'
,
'--verbose'
,
action
=
'count'
)
argparser
.
add_argument
(
'-t'
,
'--template'
,
default
=
'templates/linux'
)
argparser
.
add_argument
(
'-b'
,
'--build-dir'
)
argparser
.
add_argument
(
'-i'
,
'--include'
,
action
=
'append'
)
argparser
.
add_argument
(
'-t'
,
'--template'
,
default
=
'templates/linux'
)
argparser
.
add_argument
(
'-b'
,
'--build-dir'
,
default
=
'build'
)
argparser
.
add_argument
(
'-s'
,
'--submissions-dir'
,
default
=
'all-lwc-submission-files'
)
args
=
argparser
.
parse_args
(
argv
[
1
:])
template_dir
=
args
.
template
build_root_dir
=
args
.
build_dir
include_list
=
args
.
include
submissions_dir
=
args
.
submissions_dir
print
(
"Using template
%
s"
%
template_dir
)
subs
=
os
.
listdir
(
submissions_dir
)
...
...
process_zip.sh
View file @
2e6bf733
...
...
@@ -5,8 +5,9 @@ shopt -s extglob
export
PYTHONPATH
=
"
$PYTHONPATH
:
$(
pwd
)
"
function
run
()
{
TEMPLATE
=
"
$1
"
DESTDIR
=
"
$2
"
SUBMISSION
=
"
$1
"
TEMPLATE
=
"
$2
"
DESTDIR
=
"
$3
"
if
[[
!
-d
"templates/
$TEMPLATE
"
]]
;
then
echo
"Template '
$TEMPLATE
' does not exist"
...
...
@@ -29,7 +30,7 @@ function run() {
mkdir
-p
$DESTDIR
echo
"Compiling for template '
$TEMPLATE
' in directory '
$TMPDIR
'"
./compile_all.py
-t
"templates/
$TEMPLATE
"
-b
"
$TMPDIR
"
./compile_all.py
-
s
$SUBMISSION
-
t
"templates/
$TEMPLATE
"
-b
"
$TMPDIR
"
for
cipher
in
$TMPDIR
/
*
;
do
if
[[
!
-d
$cipher
]]
;
then continue
;
fi
...
...
@@ -73,7 +74,7 @@ function run() {
}
if
[[
$1
==
"run"
]]
;
then
run
$2
$3
run
$2
$3
$4
else
ZIP_PATH
=
"
$1
"
if
[[
!
-f
$ZIP_PATH
]]
;
then
...
...
@@ -89,7 +90,7 @@ else
TEMPLATE
=
"
${
i
##*/
}
"
echo
"Template is
$TEMPLATE
"
touch
$MAINDIR
/locky.lock
flock
$MAINDIR
/locky.lock
$0
run
$TEMPLATE
$MAINDIR
/
$TEMPLATE
flock
$MAINDIR
/locky.lock
$0
run
$T
MPDIR
$T
EMPLATE
$MAINDIR
/
$TEMPLATE
done
rm
-rf
$TMPDIR
...
...
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