Skip to content
This repository was archived by the owner on May 7, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 3 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
37 changes: 37 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
sudo: required
language: java
jdk: openjdk8
services:
- docker
python:
- "2.7"

node_js: "node"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you really need node?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No :-) I'll remove that, just copied some ideas from Sarek ;-) Why do you even have it there?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's for a bonus package thing that I came across which prints the amount of time taken between each line of stdoutput. So a way to see how long each pipeline step is taking.

It was a bit of a faff though and made the Travis output kind of hard to read (looks lovely locally).

https://github.com/paypal/gnomon

https://github.com/SciLifeLab/Sarek/pull/572/files

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, totally forgot that I had it there.
Thanks

The other problem with gnomon is that it was hiding the fact that there were problems in the test.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other problem with gnomon is that it was hiding the fact that there were problems in the test.

This is fairly simple to fix with /bin/bash -euo pipefail (this is in all of our pipelines because piping to samtools etc had the same effect of changing the exit code).


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
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
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
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

env:
global:
- NXF_VER=0.27.6 SGT_VER=2.4.2
Copy link
Copy Markdown
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