Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions STSecurity.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand All @@ -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;
};
Expand Down
13 changes: 13 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -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