-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 6.0
- Loading branch information
Showing
107 changed files
with
4,254 additions
and
2,429 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
name: j-pet-continuous-integration-tests | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build_and_run_all_tests_on_ubuntu: | ||
|
||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-16.04, ubuntu-18.04] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- name: system update | ||
run: | | ||
sudo apt-get -qq update | ||
sudo apt-get install -y git libboost-all-dev libtbb-dev cmake libfftw3-3 libfftw3-dev sshpass | ||
- name: download ROOT (for ubuntu 16.04) | ||
run: | | ||
wget https://root.cern/download/root_v6.12.06.Linux-ubuntu16-x86_64-gcc5.4.tar.gz | ||
tar xzf root_v6.12.06.Linux-ubuntu16-x86_64-gcc5.4.tar.gz | ||
if: matrix.os == 'ubuntu-16.04' | ||
|
||
- name: download ROOT (for ubuntu-18.04) | ||
run: | | ||
wget http://sphinx.if.uj.edu.pl/framework/root-6-20-06-ubuntu18-jpet.tar.gz | ||
tar xzf root-6-20-06-ubuntu18-jpet.tar.gz | ||
if: matrix.os == 'ubuntu-18.04' | ||
|
||
- name: build unpacker | ||
run: | | ||
source root/bin/thisroot.sh | ||
git clone https://github.com/JPETTomography/Unpacker2.git --single-branch --branch develop unpacker | ||
mkdir -p unpacker/build | ||
cd unpacker/build | ||
cmake .. | ||
cmake --build . | ||
sudo make install | ||
cd ../.. | ||
- name: build j-pet framework | ||
run: | | ||
source root/bin/thisroot.sh | ||
source unpacker/build/bin/thisunpacker.sh | ||
rm -rf j-pet-framework || true | ||
git clone --single-branch --branch develop https://github.com/JPETTomography/j-pet-framework.git | ||
mkdir -p j-pet-framework/build | ||
cd j-pet-framework/build | ||
cmake .. | ||
cmake --build . | ||
cd ../.. | ||
- name: build framework examples | ||
run: | | ||
source root/bin/thisroot.sh | ||
source unpacker/build/bin/thisunpacker.sh | ||
source j-pet-framework/build/bin/thisframework.sh | ||
mkdir build | ||
cd build | ||
cmake .. | ||
make | ||
make tests_largebarrel | ||
make tests_imagereconstruction | ||
- name: run image reconstruction test | ||
run: | | ||
source root/bin/thisroot.sh | ||
source unpacker/build/bin/thisunpacker.sh | ||
cd build/ImageReconstruction | ||
ctest -j6 -C Debug -T test --output-on-failure | ||
- name: run large barrel test | ||
run: | | ||
source root/bin/thisroot.sh | ||
cd build/LargeBarrelAnalysis | ||
ctest -j6 -C Debug -T test --output-on-failure | ||
wget http://sphinx.if.uj.edu.pl/~alek/framework_integration_tests/dabc_17025151847.hld | ||
wget http://sphinx.if.uj.edu.pl/~alek/framework_integration_tests/setupRun3.json | ||
./LargeBarrelAnalysis.x -t hld -f dabc_17025151847.hld -l setupRun3.json -i 3 -r 0 100 | ||
mkdir outdir | ||
./LargeBarrelAnalysis.x -t hld -f dabc_17025151847.hld -l setupRun3.json -i 3 -r 0 100 -o outdir | ||
./LargeBarrelAnalysis.x -t root -f dabc_17025151847.hld.root -l setupRun3.json -i 3 -r 0 100 | ||
sed -i 's/manager.useTask("TimeWindowCreator", "hld", "tslot.calib");//' ../../LargeBarrelAnalysis/main.cpp | ||
make LargeBarrelAnalysis.x | ||
./LargeBarrelAnalysis.x -t root -f dabc_17025151847.tslot.calib.root -r 0 100 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.