forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix warnings with wildcards and archive system-tests (elastic#18695)
- Loading branch information
Showing
3 changed files
with
57 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import os | ||
import distutils | ||
from distutils import dir_util | ||
|
||
|
||
if __name__ == "__main__": | ||
|
||
if not os.path.exists('build'): | ||
os.makedirs('build') | ||
|
||
# Top level folders to be excluded | ||
EXCLUDE = set(['.ci', '.git', '.github', 'vendor', 'dev-tools']) | ||
for root, dirs, files in os.walk('.'): | ||
dirs[:] = [d for d in dirs if d not in EXCLUDE] | ||
if root.endswith(('build')) and not root.startswith((".{}build".format(os.sep))): | ||
dest = os.path.join('build', root.replace(".{}".format(os.sep), '')) | ||
print("Copy {} into {}".format(root, dest)) | ||
distutils.dir_util.copy_tree(root, dest, preserve_symlinks=1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import os | ||
|
||
|
||
if __name__ == "__main__": | ||
|
||
for root, dirs, files in os.walk('build'): | ||
if root.endswith(('system-tests')): | ||
print(root.replace(".{}".format(os.sep), '')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters