Skip to content

An example C++ repository built with XCode on macOS using any CI and analyzed on SonarCloud

Notifications You must be signed in to change notification settings

sonarsource-cfamily-examples/macos-xcode-otherci-sc

Repository files navigation

C++ example project scanned on SonarCloud using any CI

Build Status Quality Gate Status

This project is analysed on SonarCloud!

The build-analyze.sh script demonstrates how to run an analysis on a C++ project build.
GitHub actions are used for demonstration purposes as any CI could be used to run the build-analyze.sh script.
Note that for security reasons, the token SONARCLOUD_TOKEN used in this example project is defined in the environment through GitHub secrets. It should not be made public.

You can take a look at the script build-analyze.sh of this project to see it in practice.

💡
This example works with SonarQube too: set the property sonar.host.url to the URL of your SonarQube server and download the Build Wrapper from your SonarQube server.

Documentation

macOS\XCodeBuild

A build of the code repository on a macOS using XCode build system.

To build the code run from the repository root directory:

xcodebuild

Code Description

An example of a flawed C++ code. The code repository can be analyzed automatically, but it can also be compiled with different build systems using different CI pipelines on Linux, macOS, and Windows.

The code repository is forked into other repositories in this collection to add a specific build system, platform, and CI. The downstream repositories are analyzed either with SonarQube or SonarCloud.

You can find examples for:

Using the following build systems:

Running on the following CI services:

Configured for analysis on:

You can find also a few examples demonstrating:

See examples-structure.adoc for a description of the structure of this GitHub organization and the relations between its different repositories.

About

An example C++ repository built with XCode on macOS using any CI and analyzed on SonarCloud

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published