-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #818 from opencb/TASK-4962
TASK-4962 - Implement a testing system in jsorolla-enterprise
- Loading branch information
Showing
28 changed files
with
130 additions
and
5,117 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
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,30 +1,13 @@ | ||
#!/usr/bin/env bash | ||
## #!/bin/sh | ||
|
||
## Download test data locally | ||
# wget http://reports.test.zettagenomics.com/iva/tests/2.7 | ||
# -r recursive | ||
# -np no parents | ||
# -A extensions list to download file | ||
# -P save file to prefix ... | ||
# -nd no directory | ||
# wget -r -np -A .json R "index.html" http://reports.test.zettagenomics.com/iva/tests/2.7/ -P src/sites/test-app/.data-test/ -nd | ||
|
||
## Get version from package.json | ||
VERSION=`npm version | grep jsorolla | cut -d : -f 2 | sed "s/[ ',]//g" | cut -d - -f 1 | cut -f 1,2 -d .` | ||
|
||
# confirm if exist folder and file | ||
FILE_TEST="src/sites/test-app/test-data/${VERSION}" | ||
## FILE_TEST="src/sites/test-app/test-data/${VERSION}" | ||
FILE_TEST="test-data/${VERSION}" | ||
if [ ! -d "$FILE_TEST" ]; then | ||
echo "create directory" | ||
mkdir -v -p $FILE_TEST | ||
mkdir -p $FILE_TEST | ||
wget -r -np -A .json R "index.html" http://reports.test.zettagenomics.com/iva/test-data/${VERSION}/ -P "$FILE_TEST"/ -nd | ||
exit 0; | ||
# echo "testing wget output " | ||
# >&2 echo "error test" $? | ||
# # if [ $? -ne 0 ]; | ||
# # then echo "Message wget" $? | ||
# # else echo "OK" $? | ||
# # fi | ||
fi | ||
|
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.