Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
- Loading branch information
Showing
99 changed files
with
4,727 additions
and
804 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
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,29 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright (c) nexB Inc. http://www.nexb.com/ - All rights reserved. | ||
# | ||
|
||
# ScanCode release script | ||
# This script creates and tests release archives in the dist/ dir | ||
|
||
set -e | ||
|
||
# un-comment to trace execution | ||
set -x | ||
|
||
echo "### Installing ScanCode release with pip editable###" | ||
|
||
mkdir -p tmp/pipe | ||
python -m venv tmp/pipe | ||
tmp/pipe/bin/pip install -e . | ||
|
||
# perform a minimal check of the results for https://github.com/nexB/scancode-toolkit/issues/2201 | ||
if [ `tmp/pipe/bin/scancode -i --json-pp - NOTICE | grep -c "scan_timings"` == 1 ]; then | ||
echo "Failed scan that includes timings" | ||
exit 1 | ||
else | ||
echo "pass" | ||
fi | ||
|
||
set +e | ||
set +x |
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
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 |
---|---|---|
@@ -1,3 +1,23 @@ | ||
*Before generating requirement tools and uploading asset make sure you've installed the prerequisites properly. This mainly :* | ||
- pip-tools | ||
- github-release-retry | ||
|
||
Instruction for generating requirement tools: | ||
============================================= | ||
- For this you must run on your terminal: | ||
|
||
``pip pip install -r etc/scripts/req_tools.txt`` | ||
|
||
- Then run ``python etc/scripts/freeze_and_update_reqs.py --help`` on terminal | ||
|
||
From this you get the guidelines how to generate requirement tools. | ||
|
||
Instruction for uploading assets: | ||
================================= | ||
|
||
- Just run ``python etc/scripts/github_release.py --help`` | ||
- From this you get the guidelines how to upload asset to github repositotory as an asset. | ||
|
||
This directory contains miscellaneous scripts of some use with ScanCode. | ||
|
||
- json2csv: convert a scan JSON to a CSV. | ||
- json2csv: convert a scan JSON to a CSV. |
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
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,2 @@ | ||
pip-tools | ||
github-release-retry |
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
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
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
Oops, something went wrong.