Skip to content

Commit

Permalink
Merge pull request #212 from JeffersonLab/release-candidate-v2.1
Browse files Browse the repository at this point in the history
Release candidate v2.1
  • Loading branch information
wdconinc authored Apr 3, 2019
2 parents 3db862a + fedbd9b commit f626940
Show file tree
Hide file tree
Showing 413 changed files with 79,188 additions and 73,628 deletions.
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _remoll_*.html
*.DS_Store

#ignore doxygen files for now
include/gitinfo.hh
doc

#ignore libraries and helper files
*.so
Expand All @@ -23,19 +23,22 @@ include/gitinfo.hh
*.pdf
*.log
*.dot
*.lst

#ignore kdev files
*.kdev4

#install directories
bin
lib
lib64
share

#ignore build and map directory
#ignore build, output and map directory
build*
bldXcode
map_directory
output

#ignore rad_dose radiation analysis work (another repository on sbujlab github)
rad_analysis
Expand All @@ -55,3 +58,4 @@ sample_gdml.*

#ignore log files
*.log
callgrind.*
58 changes: 20 additions & 38 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,58 +1,40 @@
dist: trusty
language: cpp
sudo: required
compiler: gcc
services:
- docker

before_install:
- sudo apt-add-repository -y ppa:wdconinc/ppa-trusty
- sudo apt-get update -y
- sudo apt-get install -y cmake3 root-system libgeant4-dev
- sudo install-geant4-data all 2>&1 | grep -v -F ".........."

script:
- mkdir build ;
pushd build ;
cmake .. 2>&1 | tee -a ../remollbuild.log ;
make 2>&1 | tee -a ../remollbuild.log ;
popd ;
- mkdir map_directory ;
wget --directory-prefix=map_directory http://hallaweb.jlab.org/12GeV/Moller/downloads/remoll/blockyHybrid_rm_3.0.txt 2>&1 | grep -v -F ".........." ;
wget --directory-prefix=map_directory http://hallaweb.jlab.org/12GeV/Moller/downloads/remoll/blockyUpstream_rm_1.1.txt 2>&1 | grep -v -F ".........." ;
- source geant4.sh ;
for suite in unit commit release ; do
scripts/tests/test_macros.sh ${suite} 2>&1 | tee remolltest.${suite}.log ;
tar -czvf remolltest.${suite}.log.tar.gz --transform 's|logfiles/tests/||g' logfiles/tests/${suite}/*.log
tar -czvf remolltest.${suite}.analysis.log.tar.gz --transform 's|logfiles/tests/||g' logfiles/tests/${suite}/analysis/*.log ;
tar -czvf remolltest.${suite}.root.tar.gz --transform 's|rootfiles/tests/||g' rootfiles/tests/${suite}/*.root ;
tar -czvf remolltest.${suite}.analysis.png.tar.gz --transform 's|rootfiles/tests/||g' rootfiles/tests/${suite}/analysis/*.png ;
tar -czvf remolltest.${suite}.analysis.root.tar.gz --transform 's|rootfiles/tests/||g' rootfiles/tests/${suite}/analysis/*.root ;
done ;
- docker build -t jeffersonlab/remoll .
- for suite in load validate overlap ; do
docker run -t jeffersonlab/remoll "scripts/tests/test_geometries.sh ${suite}" ;
done
- for suite in unit commit release ; do
docker run -t jeffersonlab/remoll "scripts/tests/test_macros.sh ${suite}" || exit 1 ;
docker start $(docker ps -l -q) ;
docker exec $(docker ps -l -q) scripts/tests/targz_macros.sh ${suite} ;
docker cp $(docker ps -l -q):"/jlab/remoll/remolltest.${suite}.log.tar.gz" . ;
docker cp $(docker ps -l -q):"/jlab/remoll/remolltest.${suite}.root.tar.gz" . ;
docker cp $(docker ps -l -q):"/jlab/remoll/remolltest.${suite}.analysis.log.tar.gz" . ;
docker cp $(docker ps -l -q):"/jlab/remoll/remolltest.${suite}.analysis.pdf.tar.gz" . ;
docker cp $(docker ps -l -q):"/jlab/remoll/remolltest.${suite}.analysis.root.tar.gz" . ;
docker stop $(docker ps -l -q) ;
done

after_success:
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
- if [ "$TRAVIS_BRANCH" == "master" ]; then
docker tag jeffersonlab/remoll jeffersonlab/remoll:latest && docker push jeffersonlab/remoll:latest;
docker tag jeffersonlab/remoll jeffersonlab/remoll:latest && docker push jeffersonlab/remoll:latest ;
else
docker tag jeffersonlab/remoll jeffersonlab/remoll:$TRAVIS_BRANCH && docker push jeffersonlab/remoll:$TRAVIS_BRANCH;
docker tag jeffersonlab/remoll jeffersonlab/remoll:$TRAVIS_BRANCH && docker push jeffersonlab/remoll:$TRAVIS_BRANCH ;
fi

notifications:
slack: jlab12gev:PVp0QYADLTXmFdicK6WXkTGN

deploy:
provider: releases
api_key:
secure: MzvvPA8KxYjEVa8C9rNtAQbtD+mDx2Wn3Em02JKMtwv953Htnv3zRcyGPfF++sLV80RvZ8NZ8pN3WfiAPTBHatUSgWh9w+GRv0G366wxKrAS4O+9BVy96U7A0gFkaXRwXirJWo4u2lJscQ1hC2IDbI2dGAS/VF5Lt1TLjWcPUL8LPcKgF80FG8+9+BUH1cRiW8mULT36EeVAB1K+vwO6Qob5k4ef66eHjkbdpuUktDr6wrehoyGXtFiBfl+XWotvcrer/51J6wn85UqCc/A+KYrVshBH/gKCD7/w6D2akNM2/sJcFdLzv5WkaQOwplsAYuzLn1cNRUKbWay5ClCSm6rsoHGfaagW4/wXk9TxqJhcdmNZ+eeAvNXAxJIeRvb82pwANlSJ658FBw2ov75p3Y6rjvc8CUPsxBXZkw3dzOgwTdjmJI9q+aD4GuVeGiq9MdyJDgXUjxlP2qEtcLJfvvF9q5Bnzy+hoAV+A5yHg0lR0VjsUem2+CdexuHb/LJLx4YVkSrCSyEELAsfyJTCYNLaMKrWKujelqtKwXy4H/rwzaja6IBP77gkisNI82bvnrzn/QsvnueGyWSu/Z2HC2M/d6WAQAl3Et9W6kOb7MK+NAmEMOTW7tzaxjD+lq8aOiLJYndrOYaymin5GLNk3F2iqZMkhMCRC2YcstNr61w=
file:
- remollbuild.log
- remolltest.unit.log
- remolltest.commit.log
- remolltest.release.log
- remolltest.unit.log.tar.gz
- remolltest.unit.root.tar.gz
- remolltest.unit.analysis.log.tar.gz
- remolltest.unit.analysis.png.tar.gz
- remolltest.unit.analysis.root.tar.gz
- remolltest.commit.log.tar.gz
- remolltest.commit.root.tar.gz
- remolltest.commit.analysis.log.tar.gz
Expand All @@ -61,7 +43,7 @@ deploy:
- remolltest.release.log.tar.gz
- remolltest.release.root.tar.gz
- remolltest.release.analysis.log.tar.gz
- remolltest.release.analysis.png.tar.gz
- remolltest.release.analysis.pdf.tar.gz
- remolltest.release.analysis.root.tar.gz
skip_cleanup: true
on:
Expand Down
Loading

0 comments on commit f626940

Please sign in to comment.