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