This repository has been archived by the owner on May 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Travis Tests for ExoSeq #13
Merged
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
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
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,35 @@ | ||
sudo: required | ||
language: java | ||
jdk: openjdk8 | ||
services: | ||
- docker | ||
python: | ||
- "2.7" | ||
|
||
cache: pip | ||
|
||
matrix: | ||
fast_finish: true | ||
|
||
install: | ||
- "./scripts/install.sh --tool $TOOL_INSTALL" | ||
# Install nf-core/tools | ||
- git clone https://github.com/nf-core/tools.git /tmp/nf-core-tools | ||
- cd /tmp/nf-core-tools | ||
- pip install --user -e . | ||
# Get Kit Files | ||
- wget -O kits.tar.bz2 https://qbic-intranet.am10.uni-tuebingen.de/owncloud/index.php/s/Qvku3etEqb3PW58/download | ||
# Get tiny Reference Files | ||
# Reset | ||
- cd ${TRAVIS_BUILD_DIR}/tests | ||
|
||
env: | ||
global: | ||
- NXF_VER=0.27.6 SGT_VER=2.4.2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should use the minimum version of Nextflow but also the latest, that way we catch new bugs triggered by new releases. |
||
matrix: | ||
- PROFILE=docker TEST=TOOLS TOOL_INSTALL=ALL | ||
- PROFILE=singularity TEST=TOOLS TOOL_INSTALL=ALL | ||
|
||
script: | ||
- "nf-core lint ${TRAVIS_BUILD_DIR}" | ||
- "./scripts/test.sh --profile $PROFILE --test $TEST" |
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,42 @@ | ||
#!/bin/bash | ||
#Credit to the Sarek devs at https://github.com/SciLifeLab/Sarek | ||
TOOL="all" | ||
|
||
while [[ $# -gt 0 ]] | ||
do | ||
key="$1" | ||
case $key in | ||
-t|--tool) | ||
TOOL="$2" | ||
shift # past argument | ||
shift # past value | ||
;; | ||
*) # unknown option | ||
shift # past argument | ||
;; | ||
esac | ||
done | ||
|
||
# Install Nextflow | ||
if [[ "$TOOL" = nextflow ]] || [[ "$TOOL" = all ]] | ||
then | ||
cd $HOME | ||
curl -fsSL get.nextflow.io | bash | ||
chmod +x nextflow | ||
sudo mv nextflow /usr/local/bin/ | ||
fi | ||
|
||
# Install Singularity | ||
if [[ "$TOOL" = singularity ]] || [[ "$TOOL" = all ]] | ||
then | ||
sudo apt-get install squashfs-tools | ||
cd $HOME | ||
wget https://github.com/singularityware/singularity/releases/download/$SGT_VER/singularity-$SGT_VER.tar.gz | ||
tar xvf singularity-$SGT_VER.tar.gz | ||
cd singularity-$SGT_VER | ||
./configure --prefix=/usr/local | ||
make | ||
sudo make install | ||
cd .. | ||
rm -rf singularity-$SGT_VER* | ||
fi |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe time to start playing with https://github.com/nf-core/test-datasets ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just wondered how we should do that. My plan was to use the smallGrch37 by @maxulysse and @szilvajuhos https://github.com/szilvajuhos/smallRef, together with the Kit files and a very tiny small dataset that I already have. So maybe we should quickly have a decision on how to structure the test-datasets repository in a ticket there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, https://github.com/SciLifeLab/Sarek-data is now used for testing in Sarek.
cf: SciLifeLab/Sarek#577