2018-12-17 01:51:09 +08:00
|
|
|
defaults: &defaults
|
|
|
|
docker:
|
|
|
|
- image: yshui/comptonci
|
|
|
|
cached-checkout: &ccheckout
|
|
|
|
just-build: &build
|
|
|
|
|
|
|
|
version: 2.1
|
2018-12-20 07:45:52 +08:00
|
|
|
commands:
|
2018-12-16 13:45:54 +08:00
|
|
|
build:
|
2018-12-17 01:51:09 +08:00
|
|
|
parameters:
|
|
|
|
build-config:
|
|
|
|
type: string
|
2018-12-20 07:45:52 +08:00
|
|
|
default:
|
|
|
|
cc:
|
|
|
|
type: string
|
|
|
|
default: cc
|
2018-12-17 00:36:15 +08:00
|
|
|
steps:
|
2018-12-17 01:51:09 +08:00
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- source-v1-{{ .Branch }}-{{ .Revision }}
|
|
|
|
- source-v1-{{ .Branch }}-
|
|
|
|
- source-v1-
|
2018-12-17 00:36:15 +08:00
|
|
|
- checkout
|
2018-12-17 01:51:09 +08:00
|
|
|
- save_cache:
|
|
|
|
key: source-v1-{{ .Branch }}-{{ .Revision }}
|
|
|
|
paths:
|
|
|
|
- ".git"
|
2018-12-17 00:36:15 +08:00
|
|
|
- run:
|
|
|
|
name: config
|
2018-12-20 07:45:52 +08:00
|
|
|
command: CC=<< parameters.cc >> meson << parameters.build-config >> --werror . build
|
2018-12-17 00:36:15 +08:00
|
|
|
- run:
|
|
|
|
name: build
|
|
|
|
command: ninja -C build
|
2018-12-17 01:51:09 +08:00
|
|
|
test-xvfb:
|
2018-12-17 00:36:15 +08:00
|
|
|
steps:
|
|
|
|
- run:
|
2018-12-17 01:51:09 +08:00
|
|
|
name: xxx
|
|
|
|
command: xvfb-run -s "-screen 0 640x480x24" glxinfo
|
2018-12-17 00:36:15 +08:00
|
|
|
|
2018-12-20 07:45:52 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
basic:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
|
|
|
- build:
|
|
|
|
build-config: -Dbuild_docs=true
|
|
|
|
minimal:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
|
|
|
- build:
|
|
|
|
build-config: -Dopengl=false -Ddbus=false -Dregex=false -Dconfig_file=false
|
|
|
|
nogl:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
|
|
|
- build:
|
|
|
|
build-config: -Dopengl=false
|
|
|
|
noregex:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
|
|
|
- build:
|
|
|
|
build-config: -Dregex=false
|
|
|
|
clang_basic:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
|
|
|
- build:
|
|
|
|
cc: clang-6.0
|
|
|
|
build-config:
|
|
|
|
clang_minimal:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
2018-12-17 01:51:09 +08:00
|
|
|
- build:
|
2018-12-20 07:45:52 +08:00
|
|
|
cc: clang-6.0
|
2018-12-17 01:51:09 +08:00
|
|
|
build-config: -Dopengl=false -Ddbus=false -Dregex=false -Dconfig_file=false
|
2018-12-20 07:45:52 +08:00
|
|
|
clang_nogl:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
2018-12-17 01:51:09 +08:00
|
|
|
- build:
|
2018-12-20 07:45:52 +08:00
|
|
|
cc: clang-6.0
|
2018-12-17 01:51:09 +08:00
|
|
|
build-config: -Dopengl=false
|
2018-12-20 07:45:52 +08:00
|
|
|
clang_noregex:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
2018-12-17 01:51:09 +08:00
|
|
|
- build:
|
2018-12-20 07:45:52 +08:00
|
|
|
cc: clang-6.0
|
2018-12-17 01:51:09 +08:00
|
|
|
build-config: -Dregex=false
|
2018-12-20 07:45:52 +08:00
|
|
|
|
|
|
|
workflows:
|
|
|
|
all_builds:
|
|
|
|
jobs:
|
|
|
|
- basic
|
|
|
|
- clang_basic
|
|
|
|
- minimal
|
|
|
|
- clang_minimal
|
|
|
|
- nogl
|
|
|
|
- clang_nogl
|
2018-12-17 01:51:09 +08:00
|
|
|
# - test-xvfb
|
2018-12-20 07:45:52 +08:00
|
|
|
|
|
|
|
# vim: set sw=2 ts=8 et:
|