Skip to content
This repository was archived by the owner on Jan 27, 2020. It is now read-only.

Commit fed2e1d

Browse files
authored
Merge pull request #621 from MaxUlysse/Tests
Simplify tests
2 parents 5fbb5dc + b07b9d1 commit fed2e1d

3 files changed

Lines changed: 49 additions & 44 deletions

File tree

.travis.yml

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,38 @@
11
sudo: required
2-
32
language: java
4-
53
jdk: openjdk8
6-
7-
services:
8-
- docker
4+
services: docker
95

106
addons:
117
apt:
128
update: true
139

1410
env:
1511
global:
16-
- NXF_VER=0.31.0 SGT_VER=2.4.2
12+
- NXF_VER=0.31.0 SGT_VER=2.5.1
1713
matrix:
18-
- PROFILE=singularity TEST=TOOLS TOOL_INSTALL=all
19-
- PROFILE=singularity TEST=MANTA TOOL_INSTALL=all
20-
- PROFILE=docker TEST=MANTA TOOL_INSTALL=nextflow
21-
- PROFILE=docker TEST=TOOLS TOOL_INSTALL=nextflow
22-
- PROFILE=docker TEST=ANNOTATEVEP TOOL_INSTALL=nextflow
23-
- PROFILE=singularity TEST=ANNOTATESNPEFF TOOL_INSTALL=all
24-
- PROFILE=singularity TEST=STEP TOOL_INSTALL=all
25-
- PROFILE=singularity TEST=GERMLINE TOOL_INSTALL=all
26-
- PROFILE=singularity TEST=DIR TOOL_INSTALL=all
27-
- PROFILE=docker TEST=ANNOTATESNPEFF TOOL_INSTALL=nextflow
28-
- PROFILE=docker TEST=STEP TOOL_INSTALL=nextflow
29-
- PROFILE=docker TEST=GERMLINE TOOL_INSTALL=nextflow
30-
- PROFILE=docker TEST=DIR TOOL_INSTALL=nextflow
31-
32-
install: # Install Nextflow (and Singularity if needed)
33-
- "./scripts/install.sh --tool $TOOL_INSTALL"
34-
- "travis_retry ./scripts/containers.sh --profile $PROFILE --test $TEST"
35-
36-
before_script: # Build references when needed
37-
- "./scripts/test.sh --profile $PROFILE --test $TEST --build"
38-
39-
script:
40-
- "./scripts/test.sh --profile $PROFILE --test $TEST"
14+
- CE=singularity TEST=TOOLS
15+
- CE=singularity TEST=MANTA
16+
- CE=docker TEST=MANTA
17+
- CE=docker TEST=TOOLS
18+
- CE=docker TEST=ANNOTATEVEP
19+
- CE=singularity TEST=ANNOTATESNPEFF
20+
- CE=singularity TEST=STEP
21+
- CE=singularity TEST=GERMLINE
22+
- CE=singularity TEST=DIR
23+
- CE=docker TEST=ANNOTATESNPEFF
24+
- CE=docker TEST=STEP
25+
- CE=docker TEST=GERMLINE
26+
- CE=docker TEST=DIR
27+
28+
install:
29+
# Install Nextflow (and Singularity if needed)
30+
- "./scripts/install.sh --engine $CE"
31+
# Donwload big containers for ANNOTATEVEP and ANNOTATESNPEF tests)
32+
- "travis_retry ./scripts/containers.sh --profile $CE --test $TEST"
33+
34+
# Build references when needed
35+
before_script: "./scripts/test.sh --profile $CE --test $TEST --build"
36+
37+
# Actual tests
38+
script: "./scripts/test.sh --profile $CE --test $TEST"

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1616
- [#608](https://github.com/SciLifeLab/Sarek/pull/608) - Update Nextflow required version
1717
- [#616](https://github.com/SciLifeLab/Sarek/pull/616) - Update CHANGELOG
1818
- [#615](https://github.com/SciLifeLab/Sarek/pull/615) - Use `splitCsv` instead of `readlines`
19+
- [#621](https://github.com/SciLifeLab/Sarek/pull/621) - Improve install script
20+
- [#621](https://github.com/SciLifeLab/Sarek/pull/621) - Simplify tests
1921

2022
### `Removed`
2123
- [#616](https://github.com/SciLifeLab/Sarek/pull/616) - Remove old Issue Template
2224

25+
### `Fixed`
26+
- [#621](https://github.com/SciLifeLab/Sarek/pull/621) - Fix VEP tests
27+
2328
## [2.1.0] - Ruotes - 2018-08-14
2429

2530
### `Added`

scripts/install.sh

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/bin/bash
22
set -euo pipefail
33

4-
TOOL="all"
4+
CONTAINER_ENGINE="singularity"
55

66
while [[ $# -gt 0 ]]
77
do
88
key="$1"
99
case $key in
10-
-t|--tool)
11-
TOOL="$2"
10+
-e|--engine)
11+
CONTAINER_ENGINE="$2"
1212
shift # past argument
1313
shift # past value
1414
;;
@@ -19,25 +19,27 @@ do
1919
done
2020

2121
# Install Nextflow
22-
if [[ "$TOOL" = nextflow ]] || [[ "$TOOL" = all ]]
23-
then
24-
cd $HOME
25-
curl -fsSL get.nextflow.io | bash
26-
chmod +x nextflow
27-
sudo mv nextflow /usr/local/bin/
28-
fi
22+
mkdir /tmp/nextflow
23+
cd /tmp/nextflow
24+
wget -qO- get.nextflow.io | bash
25+
sudo ln -s /tmp/nextflow/nextflow /usr/local/bin/nextflow
2926

3027
# Install Singularity
31-
if [[ "$TOOL" = singularity ]] || [[ "$TOOL" = all ]]
28+
if [[ "$CONTAINER_ENGINE" = singularity ]]
3229
then
33-
sudo apt-get install squashfs-tools
34-
cd $HOME
30+
if [[ "$SGT_VER" = '' ]]
31+
then
32+
SGT_VER=$(curl --silent "https://api.github.com/repos/Singularityware/Singularity/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')
33+
fi
34+
sudo apt-get install libarchive-dev squashfs-tools
35+
mkdir /tmp/singularity
36+
cd /tmp/singularity
3537
wget https://github.com/singularityware/singularity/releases/download/$SGT_VER/singularity-$SGT_VER.tar.gz
3638
tar xvf singularity-$SGT_VER.tar.gz
3739
cd singularity-$SGT_VER
3840
./configure --prefix=/usr/local
3941
make
4042
sudo make install
41-
cd ..
42-
rm -rf singularity-$SGT_VER*
43+
cd ${TRAVIS_BUILD_DIR}
44+
rm -rf /tmp/singularity
4345
fi

0 commit comments

Comments
 (0)