Build test with different compiler in CI

Also set meaningful job names.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2018-12-19 23:45:52 +00:00
parent 8bc052929e
commit e19e78d974
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 61 additions and 12 deletions

View File

@ -5,13 +5,15 @@ cached-checkout: &ccheckout
just-build: &build just-build: &build
version: 2.1 version: 2.1
jobs: commands:
build: build:
<<: *defaults
parameters: parameters:
build-config: build-config:
type: string type: string
default: -Dbuild_docs=true default:
cc:
type: string
default: cc
steps: steps:
- restore_cache: - restore_cache:
keys: keys:
@ -25,25 +27,72 @@ jobs:
- ".git" - ".git"
- run: - run:
name: config name: config
command: meson << parameters.build-config >> -Dwerror=true . build command: CC=<< parameters.cc >> meson << parameters.build-config >> --werror . build
- run: - run:
name: build name: build
command: ninja -C build command: ninja -C build
test-xvfb: test-xvfb:
<<: *defaults
steps: steps:
- run: - run:
name: xxx name: xxx
command: xvfb-run -s "-screen 0 640x480x24" glxinfo command: xvfb-run -s "-screen 0 640x480x24" glxinfo
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:
- build:
cc: clang-6.0
build-config: -Dopengl=false -Ddbus=false -Dregex=false -Dconfig_file=false
clang_nogl:
<<: *defaults
steps:
- build:
cc: clang-6.0
build-config: -Dopengl=false
clang_noregex:
<<: *defaults
steps:
- build:
cc: clang-6.0
build-config: -Dregex=false
workflows: workflows:
all_builds: all_builds:
jobs: jobs:
- build - basic
- build: - clang_basic
build-config: -Dopengl=false -Ddbus=false -Dregex=false -Dconfig_file=false - minimal
- build: - clang_minimal
build-config: -Dopengl=false - nogl
- build: - clang_nogl
build-config: -Dregex=false
# - test-xvfb # - test-xvfb
# vim: set sw=2 ts=8 et: