Run unittest in CI
Also general CI config update Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
aa37c4f4ca
commit
a2cc81c572
|
@ -1,8 +1,8 @@
|
||||||
defaults: &defaults
|
executors:
|
||||||
docker:
|
e:
|
||||||
- image: yshui/comptonci
|
docker:
|
||||||
cached-checkout: &ccheckout
|
- image: yshui/comptonci
|
||||||
just-build: &build
|
working_directory: "/tmp/workspace"
|
||||||
|
|
||||||
version: 2.1
|
version: 2.1
|
||||||
commands:
|
commands:
|
||||||
|
@ -27,10 +27,10 @@ commands:
|
||||||
- ".git"
|
- ".git"
|
||||||
- run:
|
- run:
|
||||||
name: config
|
name: config
|
||||||
command: CC=<< parameters.cc >> meson << parameters.build-config >> --werror . build
|
command: CC=<< parameters.cc >> meson << parameters.build-config >> -Dunittest=true --werror . build
|
||||||
- run:
|
- run:
|
||||||
name: build
|
name: build
|
||||||
command: ninja -C build
|
command: ninja -vC build
|
||||||
test-xvfb:
|
test-xvfb:
|
||||||
steps:
|
steps:
|
||||||
- run:
|
- run:
|
||||||
|
@ -40,45 +40,57 @@ commands:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
basic:
|
basic:
|
||||||
<<: *defaults
|
executor: e
|
||||||
steps:
|
steps:
|
||||||
- build:
|
- build:
|
||||||
build-config: -Dbuild_docs=true
|
build-config: -Dbuild_docs=true
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: .
|
||||||
|
paths:
|
||||||
|
- .
|
||||||
|
test:
|
||||||
|
executor: e
|
||||||
|
steps:
|
||||||
|
- attach_workspace:
|
||||||
|
at: /tmp/workspace
|
||||||
|
- run:
|
||||||
|
name: test
|
||||||
|
command: ninja -vC /tmp/workspace/build test
|
||||||
minimal:
|
minimal:
|
||||||
<<: *defaults
|
executor: e
|
||||||
steps:
|
steps:
|
||||||
- build:
|
- build:
|
||||||
build-config: -Dopengl=false -Ddbus=false -Dregex=false -Dconfig_file=false
|
build-config: -Dopengl=false -Ddbus=false -Dregex=false -Dconfig_file=false
|
||||||
nogl:
|
nogl:
|
||||||
<<: *defaults
|
executor: e
|
||||||
steps:
|
steps:
|
||||||
- build:
|
- build:
|
||||||
build-config: -Dopengl=false
|
build-config: -Dopengl=false
|
||||||
noregex:
|
noregex:
|
||||||
<<: *defaults
|
executor: e
|
||||||
steps:
|
steps:
|
||||||
- build:
|
- build:
|
||||||
build-config: -Dregex=false
|
build-config: -Dregex=false
|
||||||
clang_basic:
|
clang_basic:
|
||||||
<<: *defaults
|
executor: e
|
||||||
steps:
|
steps:
|
||||||
- build:
|
- build:
|
||||||
cc: clang-6.0
|
cc: clang-6.0
|
||||||
build-config:
|
build-config:
|
||||||
clang_minimal:
|
clang_minimal:
|
||||||
<<: *defaults
|
executor: e
|
||||||
steps:
|
steps:
|
||||||
- build:
|
- build:
|
||||||
cc: clang-6.0
|
cc: clang-6.0
|
||||||
build-config: -Dopengl=false -Ddbus=false -Dregex=false -Dconfig_file=false
|
build-config: -Dopengl=false -Ddbus=false -Dregex=false -Dconfig_file=false
|
||||||
clang_nogl:
|
clang_nogl:
|
||||||
<<: *defaults
|
executor: e
|
||||||
steps:
|
steps:
|
||||||
- build:
|
- build:
|
||||||
cc: clang-6.0
|
cc: clang-6.0
|
||||||
build-config: -Dopengl=false
|
build-config: -Dopengl=false
|
||||||
clang_noregex:
|
clang_noregex:
|
||||||
<<: *defaults
|
executor: e
|
||||||
steps:
|
steps:
|
||||||
- build:
|
- build:
|
||||||
cc: clang-6.0
|
cc: clang-6.0
|
||||||
|
@ -93,6 +105,9 @@ workflows:
|
||||||
- clang_minimal
|
- clang_minimal
|
||||||
- nogl
|
- nogl
|
||||||
- clang_nogl
|
- clang_nogl
|
||||||
|
- test:
|
||||||
|
requires:
|
||||||
|
- basic
|
||||||
# - test-xvfb
|
# - test-xvfb
|
||||||
|
|
||||||
# vim: set sw=2 ts=8 et:
|
# vim: set sw=2 ts=8 et:
|
||||||
|
|
Loading…
Reference in New Issue