How to configure in Gitlab CI for a task of Sonar Analysis of code?

Do anybody has any idea about setting or changing gitlab-ci.yml so that we may analyse the code through sonar. I have sonar server running on my widows syatem.