forked from makeclean/DAGMC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
107 lines (107 loc) · 2.81 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
language: c++
sudo: false
env:
matrix:
- MOAB_VERSION="Version4.7.0"
- MOAB_VERSION="Version4.8.0"
- MOAB_VERSION="Version4.8.1"
- MOAB_VERSION="Version4.8.2"
- MOAB_VERSION="master"
addons:
apt:
packages:
- gfortran
- g++
- build-essential
- cmake
- libblas-dev
- liblapack-dev
before_install:
# find the start dir
- export START="$PWD"
# build cmake
- git clone git://cmake.org/cmake.git custom_cmake
- cd custom_cmake
- git checkout master
- mkdir bld
- cd bld
- cmake ../. -DCMAKE_INSTALL_PREFIX=$START/cmake
- make -j2 > log-file 2>&1
- make install
- export PATH="$START/cmake/bin:$PATH"
- cd ..
- cd ..
# build hdf5
- wget https://www.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8.13/src/hdf5-1.8.13.tar.gz
- tar -zxf hdf5-1.8.13.tar.gz
- mv hdf5-1.8.13 hdf5
- cd hdf5
- mkdir bld
- cd bld
- ../configure --enable-shared --disable-debug --enable-optimize --prefix=$START/hdf5
- make -j2 > log-file 2>&1
- make install
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$START/hdf5/lib/"
- export PATH="$START/hdf5/bin:$PATH"
- cd ..
- cd ..
# build moab
- git clone https://bitbucket.org/fathomteam/moab
# git clone https://bitbucket.org/makeclean/moab
- cd moab
# git checkout master
- git checkout $MOAB_VERSION
- autoreconf -fi
- mkdir bld
- cd bld
- ../configure --enable-dagmc --enable-shared --disable-debug --enable-optimize --with-hdf5=$START/hdf5 --prefix=$START/moab
- make -j2 > log-file 2>&1
- make install
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$START/moab/lib/"
- export PATH="$START/moab/bin:$PATH"
- cd ..
- cd ..
# build geant4
- wget http://geant4.cern.ch/support/source/geant4.10.00.p02.tar.gz
- tar -zxf geant4.10.00.p02.tar.gz
- cd geant4.10.00.p02
- mkdir bld
- cd bld
- pwd
- cmake ../. -DCMAKE_INSTALL_PREFIX=$START/geant4.10.00.p02
# geant4 compile takes 30 mins so need to use travis_wait
- travis_wait make -j2
- make install
- export PATH="$START/geant4.10.00.p02/bin:$PATH"
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$START/geant4.10.00.p02/lib/"
- cd ..
- cd ..
install:
# build dagmc
# - cd DAGMC
- mkdir bld
- cd bld
- cmake ../. -DBUILD_TALLY=ON -DBUILD_GEANT4=ON -DGEANT4_DIR=$START/geant4.10.00.p02 -DCMAKE_INSTALL_PREFIX=$START/DAGMC
- make
- make install
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$START/DAGMC/lib"
- cd ..
script:
# move to test dir
- cd $START/DAGMC/tests
# run each test
- ./dagsolid_unit_tests
# no fludag yet
# ./fludag_unit_tests
- ./test_CellTally
- ./test_KDEKernel
- ./test_KDEMeshTally
- ./test_KDENeighborhood
- ./test_PolynomialKernel
- ./test_Quadrature
- ./test_Tally
- ./test_TallyData
- ./test_TallyEvent
- ./test_TrackLengthMeshTally
- ./uwuw_unit_tests
- ./uwuw_unit_tests_tally