| 1 | # Running Coverity Scan Locally |
| 2 | |
| 3 | 1. Install Docker |
| 4 | 2. Pull and run `ubuntu` image: |
| 5 | |
| 6 | ``` |
| 7 | $ docker pull ubuntu |
| 8 | $ docker run -it ubuntu |
| 9 | ``` |
| 10 | |
| 11 | Run the next steps **inside Docker Ubuntu terminal** |
| 12 | |
| 13 | 3. Install git: |
| 14 | |
| 15 | ``` |
| 16 | $ sudo apt-update |
| 17 | $ sudo apt-get install git |
| 18 | ``` |
| 19 | 4. Get PJSIP: |
| 20 | |
| 21 | ``` |
| 22 | $ cd |
| 23 | $ git clone https://github.com/pjsip/pjproject.git |
| 24 | ``` |
| 25 | 5. (For now) Switch to `coverity01` branch: |
| 26 | |
| 27 | ``` |
| 28 | $ git checkout coverity01 |
| 29 | ``` |
| 30 | 6. Get latest version |
| 31 | |
| 32 | ``` |
| 33 | $ git pull |
| 34 | ``` |
| 35 | 7. Set Coverity Scan token (from [this page](https://scan.coverity.com/projects/pjsip?tab=project_settings)): |
| 36 | |
| 37 | ``` |
| 38 | $ export COV_TOKEN=.... |
| 39 | ``` |
| 40 | 8. Run the scan and upload the result (run `run.sh -t` to skip uploading, `-h` to get some help): |
| 41 | |
| 42 | ``` |
| 43 | $ cd pjproject |
| 44 | $ tests/coverity-scan/run.sh |
| 45 | ``` |
| 46 |