
This change adds a new run playbook to perform some integration tests: - add a config project with a periodic pipeline - ensure the executor run a job - ensure the job results are published in the db - ensure the console-stream is working Change-Id: I85187c741b376eaafdef1066452f13e2853caed7
35 lines
831 B
YAML
35 lines
831 B
YAML
|
|
- name: setup gitconfig
|
|
shell: |
|
|
if ! test -f ~/.gitconfig && ! test -d ~/.config/git ; then
|
|
git config --global user.email "you@example.com"
|
|
git config --global user.name "Your Name"
|
|
fi
|
|
sudo mkdir -p /srv/git
|
|
|
|
- name: setup local-git service
|
|
become: yes
|
|
copy:
|
|
dest: /etc/systemd/system/local-git.service
|
|
content: |
|
|
[Unit]
|
|
Description=local git service
|
|
After=syslogp.target network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
SyslogIdentifier=local-git
|
|
ExecStart=/usr/bin/git daemon --export-all --reuseaddr --verbose --base-path=/srv/git/ /srv/git/
|
|
Restart=always
|
|
RestartSec=3s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
- name: start local-git service
|
|
become: yes
|
|
systemd:
|
|
daemon_reload: true
|
|
name: "local-git"
|
|
state: started
|