Skip to content
This repository has been archived by the owner on May 7, 2019. It is now read-only.

Travis Tests for ExoSeq #13

Merged
merged 6 commits into from
Aug 7, 2018
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .travis.yml
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
Copy link
Member

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 ?

Copy link
Member Author

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?

Copy link
Member

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

# Get tiny Reference Files
# Reset
- cd ${TRAVIS_BUILD_DIR}/tests

env:
global:
- NXF_VER=0.27.6 SGT_VER=2.4.2
Copy link
Member

Choose a reason for hiding this comment

The 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"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ![nf-core/ExoSeq](https://raw.githubusercontent.com/nf-core/Exoseq/master/docs/images/ExoSeq_logo.png)

[![Build Status](https://travis-ci.org/nf-core/ExoSeq.svg?branch=master)](https://travis-ci.org/nf-core/ExoSeq)
[![Nextflow](https://img.shields.io/badge/nextflow-%E2%89%A50.27.6-brightgreen.svg)](https://www.nextflow.io/)
[![Gitter](https://img.shields.io/badge/gitter-%20join%20chat%20%E2%86%92-4fb99a.svg)](https://gitter.im/nf-core/Lobby)
[![Docker Container available](https://img.shields.io/docker/automated/nfcore/exoseq.svg)](https://hub.docker.com/r/nfcore/exoseq/)
Expand Down
42 changes: 42 additions & 0 deletions scripts/install.sh
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