-
Notifications
You must be signed in to change notification settings - Fork 9
/
.gitlab-ci.yml
141 lines (134 loc) · 3.61 KB
/
.gitlab-ci.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- analysis
- build
- test
before_script:
- hostname
- whoami
# - pwd
analysis-cppcheck:
image: registry.gitlab.com/aff3ct/aff3ct/x86_64_ubuntu_cppcheck:v1.9
stage: analysis
allow_failure: false
artifacts:
name: analysis-cppcheck-logs
when: always
paths:
- cppcheck/
tags:
- x86_64
- linux
- docker
script:
- ./ci/analysis-cppcheck.sh
build-linux-gcc:
image: registry.gitlab.com/aff3ct/aff3ct/x86_64_ubuntu_gcc:v9.3.0
stage: build
variables:
GIT_SUBMODULE_STRATEGY: recursive
needs:
- job: analysis-cppcheck
artifacts: false
tags:
- x86_64
- avx2
- linux
- docker
artifacts:
name: build-linux-gcc
paths:
- build_linux_gcc
script:
- export CC="gcc"
- export CXX="g++"
- export CFLAGS="-Wall -Wno-overloaded-virtual -funroll-loops -mavx2"
- export CMAKE_OPT="-DDVBS2_LINK_UHD=OFF -DAFF3CT_OVERRIDE_VERSION=v3.0.2"
- export BUILD="build_linux_gcc"
- source ./ci/tools/threads.sh
- ./ci/build-linux-macos.sh
- rm -rf build_linux_gcc/CMakeFiles
- rm -rf build_linux_gcc/lib/
- rm build_linux_gcc/bin/dvbs2_rx*
- rm build_linux_gcc/bin/dvbs2_tx
- rm build_linux_gcc/bin/dvbs2_ch
build-linux-clang:
image: registry.gitlab.com/aff3ct/aff3ct/x86_64_ubuntu_clang:v10.0.0
stage: build
variables:
GIT_SUBMODULE_STRATEGY: recursive
needs:
- job: analysis-cppcheck
artifacts: false
tags:
- x86_64
- avx2
- linux
- docker
artifacts:
name: build-linux-clang
paths:
- build_linux_clang
script:
- export CC="clang"
- export CXX="clang++"
- export CFLAGS="-Wall -Wno-overloaded-virtual -funroll-loops -mavx2"
- export CMAKE_OPT="-DDVBS2_LINK_UHD=OFF -DAFF3CT_OVERRIDE_VERSION=v3.0.2"
- export BUILD="build_linux_clang"
- source ./ci/tools/threads.sh
- ./ci/build-linux-macos.sh
- rm -rf build_linux_clang/CMakeFiles
- rm -rf build_linux_clang/lib/
- rm build_linux_clang/bin/dvbs2_rx*
- rm build_linux_clang/bin/dvbs2_tx
- rm build_linux_clang/bin/dvbs2_ch
test-regression-tx-rx-bb:
image: registry.gitlab.com/aff3ct/aff3ct/x86_64_ubuntu_python:v3.8.5
stage: test
variables:
GIT_SUBMODULE_STRATEGY: recursive
retry: 1
needs:
- job: build-linux-gcc
artifacts: true
tags:
- x86_64
- avx2
- linux
- docker
- powerful
artifacts:
name: test-regression-results-tx-rx-bb
when: always
paths:
- test-regression-results-tx-rx-bb/
script:
- source ./ci/tools/threads.sh
- export OMP_NUM_THREADS=$THREADS
- export TIME_SEC="5"
- ./lib/aff3ct/ci/test-regression.py --refs-path refs/TX_RX_BB/ --results-path test-regression-results-tx-rx-bb --build-path build_linux_gcc --binary-path bin/dvbs2_tx_rx_bb --max-snr-time $TIME_SEC --sensibility 2.5 --weak-rate 0.9 --verbose 1
# test-regression-tx-rx:
# stage: test
# variables:
# GIT_SUBMODULE_STRATEGY: recursive
# retry: 1
# dependencies:
# - build-linux-gcc
# tags:
# - linux
# - x86
# - 64-bit
# - sse4.2
# - python3.4
# - powerful
# artifacts:
# name: test-regression-results-tx-rx
# when: always
# paths:
# - test-regression-results-tx-rx/
# script:
# - source ./ci/tools/threads.sh
# - export OMP_NUM_THREADS=$THREADS
# - export TIME_SEC="5"
# - ./lib/aff3ct/ci/test-regression.py --refs-path refs/TX_RX/ --results-path test-regression-results-tx-rx --build-path build_linux_gcc --binary-path bin/dvbs2_tx_rx --max-snr-time $TIME_SEC --sensibility 2.5 --weak-rate 0.9 --verbose 1