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

Merge pull request 'feature/deploy_cppcheck' (#52) from...

Merge pull request 'feature/deploy_cppcheck' (#52) from peters/VirtualFluids_dev:feature/deploy_cppcheck into develop

Reviewed-on: https://git.irmb.bau.tu-bs.de/VirtualFluids/VirtualFluids_dev/pulls/52
parents 4e05071d 6878485e
No related branches found
No related tags found
No related merge requests found
...@@ -188,3 +188,19 @@ cppcheck: ...@@ -188,3 +188,19 @@ cppcheck:
- html_report/ - 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 @@ ...@@ -2,3 +2,5 @@
host_key_checking=False host_key_checking=False
[gitlab_ci_deploy_targets] [gitlab_ci_deploy_targets]
phoenix.hlr.rz.tu-bs.de ansible_ssh_private_key_file=./private_key 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 @@ ...@@ -25,6 +25,3 @@
- { src: '../gpu.cmake', dest: '~/VirtualFluids_dev/gpu.cmake' } - { src: '../gpu.cmake', dest: '~/VirtualFluids_dev/gpu.cmake' }
- { src: '../pyproject.toml', dest: '~/VirtualFluids_dev/pyproject.toml' } - { src: '../pyproject.toml', dest: '~/VirtualFluids_dev/pyproject.toml' }
- { src: '../setup.py', dest: '~/VirtualFluids_dev/setup.py' } - { 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