-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathbitbucket-pipelines.yml
90 lines (82 loc) · 3.08 KB
/
bitbucket-pipelines.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
# i have two more images, which mimick the office setting, prepared now:
image: dobrautz/neci_base:opensuse-leap-15.2
options:
docker: true
pipelines:
# default setup: only build neci for all branches and run neci unit tests, do not do any testsuite runs!
# to save pipeline minutes
default:
- step:
size: 2x
script:
- git submodule update --init
- rm -rf build
- mkdir build
- cd build
- echo "building release version"
- cmake -DENABLE_HDF5=OFF -DCMAKE_BUILD_TYPE=FastDebug ..
- make -j neci test_neci
- echo "done building release version"
- echo "running unit tests"
- ctest --allow-run-as-root --output-on-failure --tests-regex 'test_neci_.*' -j
- echo "unit tests passed"
branches:
# for the master branch pushes run the full compilation, unit tests and part of the testsuite
master:
- step:
size: 2x
script:
- git submodule update --init
- rm -rf build
- mkdir build
- cd build
- echo "building release version"
- cmake -DENABLE_HDF5=OFF ..
- make -j
- echo "done building release version"
- echo "running unit tests"
- ctest --allow-run-as-root --output-on-failure -j
- echo "unit tests passed"
# - echo "running limited test_suite(to save build-minutes)"
# - useradd temp
# - cd ../test_suite
# - su -c "/testcode/bin/testcode.py -c dneci/double_occ/hub_2x2 -c kmneci/Rn_lanczos_fci -c kneci/C_221_int -c mneci/cfqmc/HeHe_5_states -c neci/parallel/C_Solid -vvv" -s /bin/sh temp
devel:
- step:
size: 2x
script:
- git submodule update --init
- rm -rf build
- mkdir build
- cd build
- echo "building release version"
- cmake -DENABLE_HDF5=OFF ..
- make -j
- echo "done building release version"
- echo "running unit tests"
- ctest --allow-run-as-root --output-on-failure -j
- echo "unit tests passed"
# - echo "running limited test_suite(to save build-minutes)"
# - useradd temp
# - cd ../test_suite
# - su -c "/testcode/bin/testcode.py -c dneci/double_occ/hub_2x2 -c kmneci/Rn_lanczos_fci -c kneci/C_221_int -c mneci/cfqmc/HeHe_5_states -c neci/parallel/C_Solid -vvv" -s /bin/sh temp
custom:
# this is an optional full run, if one chooses to test a specific branch fully
- step:
size: 2x
script:
- git submodule update --init
- rm -rf build
- mkdir build
- cd build
- echo "building release version"
- cmake -DENABLE_HDF5=OFF ..
- make -j
- echo "done building release version"
- echo "running unit tests"
- ctest --allow-run-as-root --output-on-failure -j
- echo "unit tests passed"
- echo "running limited test_suite(to save build-minutes)"
- useradd temp
- cd ../test_suite
- su -c "/testcode/bin/testcode.py -c dneci/double_occ/hub_2x2 -c kmneci/Rn_lanczos_fci -c kneci/C_221_int -c mneci/cfqmc/HeHe_5_states -c neci/parallel/C_Solid -vvv" -s /bin/sh temp