-
Notifications
You must be signed in to change notification settings - Fork 447
/
.gitlab-ci.yml
89 lines (79 loc) · 2.03 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
# base configuration
image: debian
stages: [build, test]
before_script:
- apt-get -qq update
- apt-get -qq install -y --no-install-recommends automake autoconf gcc g++ gcovr make valgrind time curl
# build from scratch
compile:
stage: build
script:
- ./bootstrap.sh
- ./configure
- make -j4
artifacts: # save output objects for test stages
paths: [makefile, configure, config.h, config.h.in]
# test installation and linking appropriately
install:
stage: test
script:
- make -j4
- make install
- ldconfig
- make check-link
# compile and run benchmark program
bench:
stage: test
script:
- make -j4 bench
artifacts:
paths: [benchmark.json]
# run all test programs
check:
stage: test
script:
- ./configure
- make -j4 check
artifacts:
paths: [autotest.json]
# compile and run documenation checks (e.g. example code in README.md)
check-doc:
stage: test
script:
- make check-doc
# compile and run all example programs, timing how long each takes to run
examples:
stage: test
script:
- make -j4 examples
- echo '' > time.txt
- ls examples/*_example | sed -E "s#(.*)#echo '\1' >> time.txt; { time -p ./\1 ; } 2>> time.txt#g" > run_examples.sh
- /bin/sh run_examples.sh
artifacts:
paths: [run_examples.sh, time.txt]
# compile and run all autotest programs with valgrind
autotest-memcheck:
stage: test
script:
- make -j4 xautotest
- mkdir valgrind
- ./scripts/valgrind_eval.py -output valgrind -test 881
artifacts:
paths: [valgrind/*]
# build from scratch
coverage:
stage: test
script:
- apt-get -qq install -y --no-install-recommends virtualenv
- virtualenv codecov
- source codecov/bin/activate
- pip install codecov-cli
- make distclean
- ./bootstrap.sh
- ./configure --enable-coverage
- make -j4 coverage
- codecovcli --version
- codecovcli upload-process -t $CODECOV_TOKEN --git-service gitlab --slug jgaeddert/liquid-dsp
coverage: '/lines: \d+\.\d+%/'
artifacts:
paths: [coverage.out]