annotate run_planemo_tests.sh @ 0:0abe6bac47a6 draft

planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
author pjbriggs
date Wed, 24 Feb 2016 09:25:18 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
1 #!/bin/bash
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
2 #
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
3 # Install dependencies and set up environment for
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
4 # rnachipintegrator tool, then run tests using planemo
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
5 #
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
6 # Note that any arguments supplied to the script are
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
7 # passed directly to the "planemo test..." invocation
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
8 #
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
9 # e.g. --install_galaxy (to get planemo to create a
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
10 # Galaxy instance to run tests)
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
11 #
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
12 # --galaxy_root DIR (to run tests using existing
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
13 # Galaxy instance)
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
14 #
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
15 # List of dependencies
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
16 TOOL_DEPENDENCIES="rnachipintegrator/1.0.0
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
17 xlsxwriter/0.8.4"
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
18 # Where to find them
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
19 TOOL_DEPENDENCIES_DIR=$(pwd)/test.tool_dependencies.rnachipintegrator
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
20 if [ ! -d $TOOL_DEPENDENCIES_DIR ] ; then
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
21 echo WARNING $TOOL_DEPENDENCIES_DIR not found >&2
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
22 echo Creating tool dependencies dir
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
23 mkdir -p $TOOL_DEPENDENCIES_DIR
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
24 echo Installing tool dependencies
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
25 $(dirname $0)/install_tool_deps.sh $TOOL_DEPENDENCIES_DIR
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
26 fi
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
27 # Load dependencies
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
28 for dep in $TOOL_DEPENDENCIES ; do
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
29 env_file=$TOOL_DEPENDENCIES_DIR/$dep/env.sh
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
30 if [ -e $env_file ] ; then
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
31 . $env_file
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
32 else
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
33 echo ERROR no env.sh file found for $dep >&2
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
34 exit 1
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
35 fi
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
36 done
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
37 # Run the planemo tests
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
38 planemo test $@ \
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
39 $(dirname $0)/rnachipintegrator_wrapper.xml \
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
40 $(dirname $0)/rnachipintegrator_canonical_genes.xml \
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
41 $(dirname $0)/data_manager/data_manager_rnachipintegrator_fetch_canonical_genes.xml
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
42 ##
0abe6bac47a6 planemo upload for repository https://github.com/fls-bioinformatics-core/galaxy-tools/tree/master/rnachipintegrator commit 97d556dae96db5457590a3a257392b6e4093a912-dirty
pjbriggs
parents:
diff changeset
43 #