Skip to content
Snippets Groups Projects
Commit 93a97509 authored by Soeren Peters's avatar Soeren Peters
Browse files

Add cppcheck depoy job.

parent 135ce2fd
No related branches found
No related tags found
No related merge requests found
......@@ -188,3 +188,19 @@ cppcheck:
- html_report/
deploy_cppcheck_to_elladan:
stage: deploy
needs: ["cppcheck"]
before_script:
- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
- apt-get install -y rsync
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- eval $(ssh-agent -s)
- echo "SSH_PRIVATE_KEY_ELLADAN" | tr -d '\r' | ssh-add -
- ssh-keyscan -t rsa elladan.irmb.bau.tu-bs.de >> ~/.ssh/known_hosts
- pip3 install ansible
script:
- ansible-playbook -i ansible/hosts.cfg -u public_pages ansible/playbook_cppcheck.yml
......@@ -2,3 +2,5 @@
host_key_checking=False
[gitlab_ci_deploy_targets]
phoenix.hlr.rz.tu-bs.de ansible_ssh_private_key_file=./private_key
[gitlab_ci_deploy_cppcheck]
elladan.irmb.bau.tu-bs.de
......@@ -25,6 +25,3 @@
- { src: '../gpu.cmake', dest: '~/VirtualFluids_dev/gpu.cmake' }
- { src: '../pyproject.toml', dest: '~/VirtualFluids_dev/pyproject.toml' }
- { src: '../setup.py', dest: '~/VirtualFluids_dev/setup.py' }
- hosts: gitlab_ci_deploy_cppcheck
tasks:
- name: Create remote cppcheck dir
command: mkdir ~/cppcheck
ignore_errors: yes
- name: Synchronize cppcheck with remote
synchronize:
src: "../html_report"
dest: "~/cppcheck/html_report"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment