Compare commits

...

1 Commits

Author SHA1 Message Date
  Brennen Bearnes 3a614c742d Add test .zuul.yaml and playbooks/ 5 years ago
5 changed files with 63 additions and 0 deletions
Unified View
  1. +19
    -0
      .zuul.yaml
  2. +26
    -0
      playbooks/blubber-build-ubuntu.yaml
  3. +8
    -0
      playbooks/blubber-build.yaml
  4. +5
    -0
      playbooks/blubber-test.yaml
  5. +5
    -0
      playbooks/testjob.yaml

+ 19
- 0
.zuul.yaml View File

@ -0,0 +1,19 @@
- job:
name: blubber-build
run: playbooks/blubber-build.yaml
- job:
name: blubber-test
run: playbooks/blubber-test.yaml
- project:
check:
jobs:
- blubber-build
- blubber-test
gate:
jobs:
- blubber-build
- blubber-test

+ 26
- 0
playbooks/blubber-build-ubuntu.yaml View File

@ -0,0 +1,26 @@
# ansible!
- hosts: all
environment:
GOPATH=/root
tasks:
- debug:
msg: Building Blubber.
- name: Install build and test dependencies
apt:
name: "{{ packages }}"
update_cache: yes
vars:
packages:
- golang
- golint
- build-essential
- tree
- git
- name: Run tree and output
# command: ls -lah src
command: tree src
register: out
- debug: var=out.stdout_lines
- make:
chdir: src/gerrit/blubber

+ 8
- 0
playbooks/blubber-build.yaml View File

@ -0,0 +1,8 @@
# ansible!
- hosts: all
tasks:
- debug:
msg: Building Blubber.
- make:
chdir: src/gerrit/blubber

+ 5
- 0
playbooks/blubber-test.yaml View File

@ -0,0 +1,5 @@
# ansible!
- hosts: all
tasks:
- debug:
msg: Running Blubber tests.

+ 5
- 0
playbooks/testjob.yaml View File

@ -0,0 +1,5 @@
# ansible!
- hosts: all
tasks:
- debug:
msg: Hello world! Hey!

Loading…
Cancel
Save