-
Notifications
You must be signed in to change notification settings - Fork 48
Place url-scm download files in .bob-download #606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
eb8dbac
test: add extractor test
rhubert 68850e0
urlscm: refactor extractors
rhubert 380cb71
input: add urlScmSeparateDownload policy
rhubert 11e4a46
doc: document urlScmSeparateDownload policy
rhubert 2dffbcc
url-scm: store downloaded files in separate directory
rhubert c619d27
urlscm: remove downloaded files on ATTIC move
rhubert File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
test: add extractor test
- Loading branch information
commit eb8dbac9e18dcca28fda079e945f39a56103304c
There are no files selected for viewing
Binary file not shown.
This file contains hidden or 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 @@ | ||
| 1 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains hidden or 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,47 @@ | ||
| root: True | ||
|
|
||
| checkoutSCM: | ||
| - scm: url | ||
| url: ${INPUT_FILES}/test.tgz | ||
| dir: tar | ||
| digestSHA256: "2fba5ef610331d7d7ac5ee7614d0c3daa78f330dc13399ddc39b2d698c63bca3" | ||
| - scm: url | ||
| url: ${INPUT_FILES}/test.dat.gz | ||
| dir: gzip | ||
| digestSHA256: "35ea2d0c6c815aed2835f41c495d9d3600e156ec561666b5c7f61112a81d6291" | ||
| if: ${IS_POSIX} | ||
| - scm: url | ||
| url: ${INPUT_FILES}/test.dat.xz | ||
| dir: xz | ||
| digestSHA256: "d81d8062ec99672a61a56a4be271d55886a63fec319dc0e00f3318a6f01b87c6" | ||
| if: ${IS_POSIX} | ||
| - scm: url | ||
| url: ${INPUT_FILES}/test.7z | ||
| dir: 7z | ||
| digestSHA256: "8bc55c46bd4d8974e99223a9f566c7f563bae2f9f8afa787e1d7df69acdf4d04" | ||
| if: ${IS_POSIX} | ||
| - scm: url | ||
| url: ${INPUT_FILES}/test.zip | ||
| dir: zip | ||
| digestSHA256: "8e2612b6ab1bacb5c0b342a81925ba6a0349ca8f66db4fc3dd22ddd53ff4f430" | ||
| - scm: url | ||
| url: ${INPUT_FILES}/test.dat | ||
| dir: plain | ||
| digestSHA256: "6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b" | ||
|
|
||
| depends: | ||
| - nodir | ||
rhubert marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| buildScript: | | ||
| cat > test.sha256 << EOF | ||
| 6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b test.dat | ||
| EOF | ||
| SHA256_FILE=$(pwd)/test.sha256 | ||
| for d in $(find $1/ -mindepth 1 -type d); do | ||
| pushd $d | ||
| sha256sum -c ${SHA256_FILE} | ||
| popd | ||
| done | ||
|
|
||
| packageScript: | | ||
| echo "success" | ||
This file contains hidden or 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,15 @@ | ||
| checkoutSCM: | ||
| - scm: url | ||
| url: ${INPUT_FILES}/test.tgz | ||
| digestSHA256: "2fba5ef610331d7d7ac5ee7614d0c3daa78f330dc13399ddc39b2d698c63bca3" | ||
|
|
||
| buildScript: | | ||
| cat > test.sha256 << EOF | ||
| 6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b test.dat | ||
| EOF | ||
| SHA256_FILE=$(pwd)/test.sha256 | ||
| pushd $1 | ||
| sha256sum -c ${SHA256_FILE} | ||
| popd | ||
|
|
||
| packageScript: /bin/true |
This file contains hidden or 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,17 @@ | ||
| #!/bin/bash -e | ||
|
|
||
| . ../../test-lib.sh 2>/dev/null || { echo "Must run in script directory!" ; exit 1 ; } | ||
| cleanup | ||
|
|
||
| INPUT=$PWD/input | ||
| test "${INPUT:0:1}" = "/" | ||
| INPUT="$(mangle_path "$INPUT")" | ||
|
|
||
| IS_POSIX="false" | ||
| if is_posix ; then | ||
| IS_POSIX="true" | ||
| fi | ||
|
|
||
| # Build and fetch result path | ||
| run_bob dev -DINPUT_FILES="${INPUT}" -DIS_POSIX="$IS_POSIX" extract_test | ||
|
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.