Commit e6a786bb authored by Charles Deltel's avatar Charles Deltel
Browse files

[ci] script for jenkins

ci stands for continuous integration
parent 6802d253
#!/bin/bash
#set -e
set -xv
date
hostname
pwd
################################################################
# COMPILATION #
################################################################
gcc --version
g++ --version
[ `gcc -dumpversion` = 4.7 ] && { echo "GCC 4.7"; } || { echo "GCC version is not 4.7, we exit"; exit 1; }
JENKINS_TASK=test-suite-debian7-64bits-gcc-4.7
GIT_DIR=/builds/workspace/$JENKINS_TASK/gatb-core
BUILD_DIR=/scratchdir/$JENKINS_TASK/gatb-core/build
rm -rf $BUILD_DIR
mkdir -p $BUILD_DIR
cd $BUILD_DIR
cmake -Wno-dev $GIT_DIR
make
################################################################
# UNIT TESTS #
################################################################
export CPPUNIT_VERBOSE=1
# Specify single unit tests
#$BUILD_DIR/bin/gatb-core-cppunit TestBag
#$BUILD_DIR/bin/gatb-core-cppunit TestMap
# Launch the full test suite
$BUILD_DIR/bin/gatb-core-cppunit
################################################################
# CHECK FUNCTIONS (with precomputed reference results) #
################################################################
# Note: if "dgbh5 -check" fails, exit code will be 1 (0 otherwise), and the Jenkins build will be reported as FAILED
$BUILD_DIR/bin/dbgh5 -verbose 0 -in $HOME/reference/fastq/aphid_662451seq.fa -check $HOME/reference/check/aphid_662451.props
$BUILD_DIR/bin/dbgh5 -verbose 0 -in $HOME/reference/fastq/aphid_662451seq.album/album.txt -check $HOME/reference/check/aphid_662451.props
$BUILD_DIR/bin/dbgh5 -verbose 0 -in $HOME/reference/fastq/SRR959239_clean.fastq.gz -check $HOME/reference/check/SRR959239_clean.props
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment