Debian Codegraph @

.circleci/config.yml

raw symbols SCIP
1 executors:
2 e:
3 docker:
4 - image: yshui/comptonci
5 working_directory: "/tmp/workspace"
6 environment:
7 UBSAN_OPTIONS: "halt_on_error=1"
8
9 version: 2.1
10 commands:
11 build:
12 parameters:
13 build-config:
14 type: string
15 default: ""
16 cc:
17 type: string
18 default: cc
19 steps:
20 - restore_cache:
21 keys:
22 - source-v1-{{ .Branch }}-{{ .Revision }}
23 - source-v1-{{ .Branch }}-
24 - source-v1-
25 - checkout
26 - save_cache:
27 key: source-v1-{{ .Branch }}-{{ .Revision }}
28 paths:
29 - ".git"
30 - run:
31 name: config
32 command: CC=<< parameters.cc >> meson setup << parameters.build-config >> -Dunittest=true --werror . build
33 - run:
34 name: build
35 command: ninja -vC build
36
37 jobs:
38 basic:
39 executor: e
40 steps:
41 - build:
42 build-config: -Dwith_docs=true -Db_coverage=true
43 - run:
44 name: build animgen
45 command: ninja -vC build tools/animgen
46 - persist_to_workspace:
47 root: .
48 paths:
49 - .
50 test:
51 executor: e
52 steps:
53 - attach_workspace:
54 at: /tmp/workspace
55 - run:
56 name: Tests
57 command: |
58 ulimit -c unlimited
59
60 printf "\n::: test animgen :::\n"
61 build/tools/animgen data/animation_presets.conf >/dev/null 2>error.log
62 [ -s error.log ] && cat error.log && exit 1
63
64 printf "\n::: Unit tests :::\n"
65 ninja -vC build test
66
67 printf "\n::: test config file parsing :::\n"
68 xvfb-run -a -s "-screen 0 640x480x24" build/src/picom --config tests/configs/parsing_test.conf --no-vsync --diagnostics
69 xvfb-run -a -s "-screen 0 640x480x24" build/src/picom --config tests/configs/rules_test.conf --no-vsync --diagnostics
70
71 printf "\n::: test config file parsing in a different locale :::\n"
72 LC_NUMERIC=de_DE.UTF-8 xvfb-run -a -s "-screen 0 640x480x24" build/src/picom --config tests/configs/parsing_test.conf --no-vsync --diagnostics
73
74 printf "\n::: run testsuite :::\n"
75 tests/run_tests.sh build/src/picom
76 - run:
77 name: generate coverage reports
78 command: cd build; find -name '*.gcno' -exec gcov -pb {} +
79 - run:
80 name: download codecov scripts
81 command: curl -s https://codecov.io/bash > codecov.sh
82 - run:
83 name: upload coverage reports
84 command: bash ./codecov.sh -X gcov
85 - run:
86 name: collect coredumps
87 when: on_fail
88 command: |
89 . $HOME/.cargo/env
90 mkdir /tmp/artifacts
91 for c in tests/core.*; do
92 coredump-copy $c /tmp/coredumps/`basename $c`
93 done
94 tar Jcf /tmp/artifacts/coredumps.tar.xz /tmp/coredumps
95 - store_artifacts:
96 path: /tmp/artifacts
97
98 minimal:
99 executor: e
100 steps:
101 - build:
102 build-config: -Dopengl=false -Ddbus=false -Dregex=false
103 release:
104 executor: e
105 steps:
106 - build:
107 build-config: --buildtype=release
108 release-clang:
109 executor: e
110 steps:
111 - build:
112 cc: clang
113 build-config: --buildtype=release
114 nogl:
115 executor: e
116 steps:
117 - build:
118 build-config: -Dopengl=false
119 noregex:
120 executor: e
121 steps:
122 - build:
123 build-config: -Dregex=false
124 clang_basic:
125 executor: e
126 steps:
127 - build:
128 cc: clang
129 clang_minimal:
130 executor: e
131 steps:
132 - build:
133 cc: clang
134 build-config: -Dopengl=false -Ddbus=false -Dregex=false
135 clang_nogl:
136 executor: e
137 steps:
138 - build:
139 cc: clang
140 build-config: -Dopengl=false
141 clang_noregex:
142 executor: e
143 steps:
144 - build:
145 cc: clang
146 build-config: -Dregex=false
147
148 workflows:
149 all_builds:
150 jobs:
151 - basic
152 - clang_basic
153 - minimal
154 - clang_minimal
155 - nogl
156 - clang_nogl
157 - release
158 - release-clang
159 - test:
160 requires:
161 - basic
162 # vim: set sw=2 ts=8 et: