diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..b69d702f4f9ce3deeddf173f25ae775b3f5450bb --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,16 @@ +before_script: + - module add python/3.6.1-2-anaconda + - pip install --user pytest-pythonpath==0.7.1 pytest-cov==2.5.1 + - module load singularity/3.0.2 + - ln -sfn /project/BICF/BICF_Core/shared/gudmap/cookies/deriva-cookies.txt ./test_data/ + - ln -sfn /project/BICF/BICF_Core/shared/gudmap/test_data/File_Q-Y53P.zip ./test_data/ + +stages: + - unit + +unit: + stage: unit + script: + - singularity run 'docker://bicf/bdbag:1.0' bdbag --materialize ./test_data/File_Q-Y53P.zip + - singularity run 'docker://bicf/bdbag:1.0' bdbag --validate full ./test_data/File_Q-Y53P/ + - if [[ $(md5sum test_data/File_Q-Y53P/data/assets/Study/Q-Y4H0/Experiment/Q-Y4BY/Replicate/Q-Y5F8/hMARIS_SIX2+_RiboDep#1.gene.rpkm.txt | awk '{ print $1 }') != $(cat test_data/File_Q-Y53P/data/File.csv | cut -d ',' -f10 | tail -1) ]]; then exit 21; fi; diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ff0911406a181f08e86e495c7530f87d6f43dae..2dec9e320556503056f41874817d032ad618f3af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,5 +2,6 @@ **User Facing** **Background** +* Implementation of CI *Known Bugs*