-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
24 lines (21 loc) · 1.66 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
os: osx
sudo: false
addons:
sonarcloud:
organization: "sonarcloud"
token:
secure: "N8jse8X8X9RiYfkaM/+xUoWGHpgVqYa+pLlVdFbs4zdaGYvm0rJkFmjoeFO6oIFeo06JkVY+/5Qcv0IdI2v8tCShb/8H1RKivUW8UgoxSRdAr6w2BH5+2TAjCgkX2SBl1MGun9z+suiEbcCU+UQjWHX2JvNaCgjsecwge50gDbYzGroUaQipoe9iScgsFm2lu4QHAlZtbFiODgOqX2G5me2r9cdr8FfsgjOW+d2PKdjhpVuV1zLKosRuS1qJTUoM9AaXb9cUBjzIgEyopsjn/fK6dar3Pz3Fji5kCUFBK01REeBRdlmX0o8k2K9bO8TzCTRZR4X7VMG6LciYsuYMbUcHtQXB+cT+LngrufXDM0AmpWiHmYjq1yYsL0ktEWj3oNBZuRedKqpBaq/X4+JcilT+RqbmdujChsvIvFaqSikpb6mrg/z0A38CK8jKV13H+nQ58b3lwSLBTWiMcqUSlm1V0Zr04Gd/9ZYxxdP2zHJ5gasqNVWobrj/WeCHpVGQwnedfDonGAL2Rk2tOswMgJgM9wAhcu0izv0h+M7MBtdNgNQ32P58w0kWEsXvNhXPhN0zXr7B6xIdDJIwnCuT0OYi8yyPnrbRN9mdI5jEzbCfbDkaLL9zxOHFGcAj0qdwhKSYiyRo/OI2k1pgjsiePIDvm/1GyGkHl44ghsfSCLg="
script:
- NUMBER_OF_PROCESSORS=$(sysctl -n hw.ncpu)
# Wraps the compilation with the Build Wrapper to generate configuration (used
# later by the SonarQube Scanner) into the "bw-output" folder
- build-wrapper-macosx-x86 --out-dir bw-output xcodebuild -project sonar_scanner_example.xcodeproj -configuration Release
# And finally run the SonarQube analysis - read the "sonar-project.properties"
# file to see the specific configuration
- sonar-scanner -Dsonar.cfamily.cache.enabled=true -Dsonar.cfamily.cache.path=${TRAVIS_HOME}/.cfamily -Dsonar.cfamily.threads=${NUMBER_OF_PROCESSORS}
cache:
directories:
- $HOME/.sonar/cache
# This contains the CFamily cache. According to https://docs.travis-ci.com/user/caching/#pull-request-builds-and-caches,
# for a PR, it will use the cache of the target branch if the branch of the PR does not already have its cache.
- $HOME/.cfamily