diff --git a/.travis.yml b/.travis.yml index 54e9fdc..c8b42fb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,27 @@ -osx_image: xcode8.2 +os: osx +osx_image: xcode10.3 language: objective-c xcode_project: STSecurity.xcodeproj xcode_sdk: iphonesimulator xcode_scheme: STSecurity +addons: + sonarcloud: + organization: "cysp" + token: + secure: "nEmZnpgXh5Ba9tUCWLcyACYXQKG8XUEdWTMhFN4zJ8/gUCTdshYySWN6gd6sDLdfkCBNohrN1Xn0710jlNJWUiDBuz3hr2RnhAKOqwXbActW63BWRj9h1v8/AI2k7NkBL+/85l7+MbdP3mT43JOyNBq3GYZy/H132pR5phC62TA=" env: - - TRAVIS_XCODE_DESTINATION="platform=iOS Simulator,name=iPhone 6,OS=9.3" + global: + - secure: XqWY+wX6j83BGKYI4LFDFHPBv2R2d7MhECwk1y+CRC1y3EfYji8TTTIWR2VQZCgZwRvf8YNva5zWk6ET4BramXdij/zV+guDC9cc6c/ws/ekt4Eiy6UpD5ZoxLPtHSW1+92xa46/udCOfrTh8ODAUv4IDzz74/CYFC6+FqGYjGE= + jobs: + - XCODE_DESTINATION="platform=iOS Simulator,name=iPhone 8,OS=11.4" branches: - only: - - master + only: + - master before_script: - - gem install xcpretty -script: set -o pipefail && xcodebuild test -project "${TRAVIS_XCODE_PROJECT}" -scheme "${TRAVIS_XCODE_SCHEME}" -sdk "${TRAVIS_XCODE_SDK}" -destination "${TRAVIS_XCODE_DESTINATION}" | xcpretty +- gem install xcpretty +- brew install sonar-scanner +script: + - set -o pipefail && xcodebuild test -project "${TRAVIS_XCODE_PROJECT}" -scheme + "${TRAVIS_XCODE_SCHEME}" -sdk "${TRAVIS_XCODE_SDK}" -destination "${XCODE_DESTINATION}" + | xcpretty + - sonar-scanner diff --git a/STSecurity.xcodeproj/project.pbxproj b/STSecurity.xcodeproj/project.pbxproj index 872193c..3771bf0 100644 --- a/STSecurity.xcodeproj/project.pbxproj +++ b/STSecurity.xcodeproj/project.pbxproj @@ -398,6 +398,10 @@ INFOPLIST_FILE = STSecurityTests/Info.plist; PRODUCT_BUNDLE_IDENTIFIER = "org.chikachow.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = STSecurityTests; + WARNING_CFLAGS = ( + "$(inherited)", + "-Wno-objc-messaging-id", + ); }; name = Debug; }; @@ -408,6 +412,10 @@ INFOPLIST_FILE = STSecurityTests/Info.plist; PRODUCT_BUNDLE_IDENTIFIER = "org.chikachow.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = STSecurityTests; + WARNING_CFLAGS = ( + "$(inherited)", + "-Wno-objc-messaging-id", + ); }; name = Release; }; diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..2617c13 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,13 @@ +sonar.projectKey=cysp_STSecurity +sonar.organization=cysp + +# this is the name and version displayed in the SonarCloud UI. +sonar.projectName=STSecurity +sonar.projectVersion=1.0 + +# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. +# This property is optional if sonar.modules is set. +sonar.sources=STSecurity + +# Encoding of the source code. Default is default system encoding +#sonar.sourceEncoding=UTF-8