forked from nf-core/sarek
-
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.
Merge pull request nf-core#606 from MaxUlysse/submodule
add test data as a submodule
- Loading branch information
Showing
8 changed files
with
68 additions
and
17 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 |
---|---|---|
|
@@ -2,7 +2,6 @@ Annotation/ | |
Preprocessing/ | ||
References/ | ||
Reports/ | ||
Sarek-data/ | ||
VariantCalling/ | ||
work/ | ||
.*swp | ||
|
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,3 @@ | ||
[submodule "Sarek-data"] | ||
path = Sarek-data | ||
url = https://github.com/SciLifeLab/Sarek-data.git |
Submodule Sarek-data
added at
d71785
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,5 +1,30 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
TEST=false | ||
NAME=Sarek-$(git describe --tags) | ||
git archive HEAD --prefix=$NAME/ | gzip > $NAME.tar.gz | ||
|
||
while [[ $# -gt 0 ]] | ||
do | ||
key="$1" | ||
case $key in | ||
-i|-t|--include-test-data) | ||
TEST=true | ||
shift # past argument | ||
;; | ||
*) # unknown option | ||
shift # past argument | ||
;; | ||
esac | ||
done | ||
|
||
if [[ $TEST == false ]] | ||
then | ||
echo "Archiving Sarek without test data" | ||
git archive HEAD --prefix=$NAME/ | gzip > $NAME.tar.gz | ||
else | ||
echo "Archiving Sarek with test data" | ||
git-archive-all --prefix=$NAME/ --force-submodules $NAME.tar.gz | ||
fi | ||
|
||
echo "Wrote $NAME.tar.gz" |
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