Skip to content

Commit

Permalink
Merge pull request #202 from libattachsql/zuul-test2
Browse files Browse the repository at this point in the history
Add basic Zuul test
  • Loading branch information
LinuxJedi committed Mar 28, 2018
2 parents 3835b4c + 51afc3f commit fbc3e61
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .zuul.yaml
@@ -0,0 +1,54 @@
- job:
name: scanbuild
run: playbooks/scanbuild.yaml
timeout: 7200
nodeset:
nodes:
- name: xenial
label: ubuntu-xenial

- job:
name: clang
run: playbooks/clang.yaml
timeout: 7200
nodeset:
nodes:
- name: xenial
label: ubuntu-xenial

- job:
name: distcheck
run: playbooks/distcheck.yaml
timeout: 7200
nodeset:
nodes:
- name: xenial
label: ubuntu-xenial

- job:
name: docs
run: playbooks/docs.yaml
timeout: 7200
nodeset:
nodes:
- name: xenial
label: ubuntu-xenial

- job:
name: valgrind
run: playbooks/valgrind.yaml
timeout: 7200
nodeset:
nodes:
- name: xenial
label: ubuntu-xenial

- project:
check:
jobs:
- scanbuild
- noop
- clang
- distcheck
- docs
- valgrind
17 changes: 17 additions & 0 deletions playbooks/clang.yaml
@@ -0,0 +1,17 @@
- hosts: xenial
name: CLang Build
tasks:
- name: Build with Clang
shell:
cmd: |
autoreconf -fi
./configure --enable-debug
make
make check
args:
chdir: ~/src/github.com/libattachsql/libattachsql/
executable: /bin/bash
environment:
CC: clang
CXX: clang++

12 changes: 12 additions & 0 deletions playbooks/distcheck.yaml
@@ -0,0 +1,12 @@
- hosts: xenial
name: GCC Dist Check
tasks:
- name: Build with dist check
shell:
cmd: |
autoreconf -fi
./configure --enable-debug
make distcheck
args:
chdir: ~/src/github.com/libattachsql/libattachsql/
executable: /bin/bash
12 changes: 12 additions & 0 deletions playbooks/docs.yaml
@@ -0,0 +1,12 @@
- hosts: xenial
name: Build docs
tasks:
- name: Build with Sphinx
shell:
cmd: |
autoreconf -fi
./configure
make html
args:
chdir: ~/src/github.com/libattachsql/libattachsql/
executable: /bin/bash
18 changes: 18 additions & 0 deletions playbooks/scanbuild.yaml
@@ -0,0 +1,18 @@
- hosts: xenial
name: CLang Scan Build
tasks:
- name: Build and run Clang ScanBuild
shell:
cmd: |
autoreconf -fi
./configure --enable-debug
make
make clean
scan-build --use-cc=clang --use-c++=clang --status-bugs make
args:
chdir: ~/src/github.com/libattachsql/libattachsql/
executable: /bin/bash
environment:
CC: clang
CXX: clang++

13 changes: 13 additions & 0 deletions playbooks/valgrind.yaml
@@ -0,0 +1,13 @@
- hosts: xenial
name: CLang Scan Build
tasks:
- name: Build and run Clang ScanBuild
shell:
cmd: |
autoreconf -fi
./configure --enable-debug
TESTS_ENVIRONMENT="./libtool --mode=execute valgrind --error-exitcode=1 --leak-check=yes --track-fds=no --malloc-fill=A5 --free-fill=DE --suppressions=valgrind.supp" make check 2>/dev/null
args:
chdir: ~/src/github.com/libattachsql/libattachsql/
executable: /bin/bash

0 comments on commit fbc3e61

Please sign in to comment.