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-16 13:45:54 +08:00
|
|
|
jobs:
|
|
|
|
build:
|
2018-12-17 01:51:09 +08:00
|
|
|
<<: *defaults
|
|
|
|
parameters:
|
|
|
|
build-config:
|
|
|
|
type: string
|
|
|
|
default: -Dbuild_docs=true
|
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:41:58 +08:00
|
|
|
command: meson << parameters.build-config >> -Dwerror=true . 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:
|
|
|
|
<<: *defaults
|
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
|
|
|
|
|
|
|
workflows:
|
|
|
|
all_builds:
|
|
|
|
jobs:
|
|
|
|
- build
|
2018-12-17 01:51:09 +08:00
|
|
|
- build:
|
|
|
|
build-config: -Dopengl=false -Ddbus=false -Dregex=false -Dconfig_file=false
|
|
|
|
- build:
|
|
|
|
build-config: -Dopengl=false
|
|
|
|
- build:
|
|
|
|
build-config: -Dregex=false
|
|
|
|
# - test-xvfb
|