Some code reuse in .circleci/config.yml
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
7901b86024
commit
46b50b4b1a
|
@ -1,55 +1,49 @@
|
||||||
version: 2
|
defaults: &defaults
|
||||||
|
docker:
|
||||||
|
- image: yshui/comptonci
|
||||||
|
cached-checkout: &ccheckout
|
||||||
|
just-build: &build
|
||||||
|
|
||||||
|
version: 2.1
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
docker:
|
<<: *defaults
|
||||||
- image: yshui/comptonci
|
parameters:
|
||||||
|
build-config:
|
||||||
|
type: string
|
||||||
|
default: -Dbuild_docs=true
|
||||||
steps:
|
steps:
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- source-v1-{{ .Branch }}-{{ .Revision }}
|
||||||
|
- source-v1-{{ .Branch }}-
|
||||||
|
- source-v1-
|
||||||
- checkout
|
- checkout
|
||||||
|
- save_cache:
|
||||||
|
key: source-v1-{{ .Branch }}-{{ .Revision }}
|
||||||
|
paths:
|
||||||
|
- ".git"
|
||||||
- run:
|
- run:
|
||||||
name: config
|
name: config
|
||||||
command: meson -Dbuild_docs=true . build
|
command: meson << parameters.build-config >> . build
|
||||||
- run:
|
- run:
|
||||||
name: build
|
name: build
|
||||||
command: ninja -C build
|
command: ninja -C build
|
||||||
build_minimal:
|
test-xvfb:
|
||||||
docker:
|
<<: *defaults
|
||||||
- image: yshui/comptonci
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
|
||||||
- run:
|
- run:
|
||||||
name: config
|
name: xxx
|
||||||
command: meson -Dopengl=false -Ddbus=false -Dregex=false -Dconfig_file=false . build
|
command: xvfb-run -s "-screen 0 640x480x24" glxinfo
|
||||||
- run:
|
|
||||||
name: build
|
|
||||||
command: ninja -C build
|
|
||||||
build_nogl:
|
|
||||||
docker:
|
|
||||||
- image: yshui/comptonci
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- run:
|
|
||||||
name: config
|
|
||||||
command: meson -Dopengl=false . build
|
|
||||||
- run:
|
|
||||||
name: build
|
|
||||||
command: ninja -C build
|
|
||||||
build_noregex:
|
|
||||||
docker:
|
|
||||||
- image: yshui/comptonci
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- run:
|
|
||||||
name: config
|
|
||||||
command: meson -Dregex=false . build
|
|
||||||
- run:
|
|
||||||
name: build
|
|
||||||
command: ninja -C build
|
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
|
||||||
all_builds:
|
all_builds:
|
||||||
jobs:
|
jobs:
|
||||||
- build
|
- build
|
||||||
- build_nogl
|
- build:
|
||||||
- build_noregex
|
build-config: -Dopengl=false -Ddbus=false -Dregex=false -Dconfig_file=false
|
||||||
- build_minimal
|
- build:
|
||||||
|
build-config: -Dopengl=false
|
||||||
|
- build:
|
||||||
|
build-config: -Dregex=false
|
||||||
|
# - test-xvfb
|
||||||
|
|
Loading…
Reference in New Issue