Skip to content

Commit 3d70822

Browse files
authored
Merge pull request #35 from iosdevzone/Xcode-7.3.1-7D1014
Travis build, coverage and deprecated code.
2 parents ac5afd3 + d9f9743 commit 3d70822

File tree

4 files changed

+11
-15
lines changed

4 files changed

+11
-15
lines changed

.travis.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: objective-c
2-
osx_image: xcode7.1
2+
osx_image: xcode7.3
33
install:
44
- npm install -g playground
55

@@ -13,12 +13,6 @@ before_install:
1313
script:
1414
- echo Available SDKs
1515
- xcodebuild -showsdks
16-
- make
17-
- rm -rf CommonCrypto
18-
- ./GenerateCommonCryptoModule iphonesimulator9.0 .
19-
- cat CommonCrypto/module.map
20-
- pwd
21-
- make build
22-
- make test
16+
- make all
2317

2418
after_success: bundle exec slather coverage --input-format profdata IDZSwiftCommonCrypto.xcodeproj

IDZSwiftCommonCrypto.xcodeproj/project.pbxproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,7 @@
966966
ALWAYS_SEARCH_USER_PATHS = NO;
967967
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
968968
CLANG_CXX_LIBRARY = "libc++";
969+
CLANG_ENABLE_CODE_COVERAGE = NO;
969970
CLANG_ENABLE_MODULES = YES;
970971
CLANG_ENABLE_OBJC_ARC = YES;
971972
CLANG_WARN_BOOL_CONVERSION = YES;
@@ -984,8 +985,8 @@
984985
ENABLE_STRICT_OBJC_MSGSEND = YES;
985986
FRAMEWORK_SEARCH_PATHS = "$(PROJECT_DIR)/Frameworks/$(PLATFORM_NAME)";
986987
GCC_C_LANGUAGE_STANDARD = gnu99;
987-
GCC_GENERATE_TEST_COVERAGE_FILES = YES;
988-
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES;
988+
GCC_GENERATE_TEST_COVERAGE_FILES = NO;
989+
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO;
989990
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
990991
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
991992
GCC_WARN_UNDECLARED_SELECTOR = YES;

IDZSwiftCommonCryptoTests/IDZSwiftCommonCryptoTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class IDZSwiftCommonCryptoTests: XCTestCase {
232232

233233
let key = arrayFromHexString("0101010101010101")
234234

235-
for var i = 0; i < ivs.count; ++i {
235+
for i in 0 ..< ivs.count {
236236
let iv = arrayFromHexString(ivs[i])
237237
let cipherText = Cryptor(operation:.Encrypt, algorithm:.DES, options:.ECBMode, key:key, iv:Array<UInt8>()).update(arrayFromHexString(ivs[i]))?.final()
238238
print("\"\(hexStringFromArray(cipherText!))\", // [\(i)]")

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ RSRC_DIR=$(PG)/Resources
88

99
XC=xcodebuild
1010
XCPP=xcpretty
11+
CS_FLAGS=CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
1112

1213
$(PG): README.md
1314
playground README.md -p ios
@@ -16,10 +17,10 @@ $(PG): README.md
1617
git config --global push.default simple
1718
git diff-files --exit-code; if [[ "$?" == "1" ]]; then git commit -a -m "Playground update from Travis [ci skip]"; git push; fi
1819
all:
19-
$(XC) build -target "IDZSwiftCommonCrypto (iOS)" | xcpretty
20-
$(XC) build -target "IDZSwiftCommonCrypto (OSX)" | xcpretty
21-
$(XC) build -target "IDZSwiftCommonCrypto (tvOS)" | xcpretty
22-
$(XC) build -target "IDZSwiftCommonCrypto (watchOS)" | xcpretty
20+
$(XC) build -target "IDZSwiftCommonCrypto (iOS)" $(CS_FLAGS) | xcpretty
21+
$(XC) build -target "IDZSwiftCommonCrypto (OSX)" $(CS_FLAGS) | xcpretty
22+
$(XC) build -target "IDZSwiftCommonCrypto (tvOS)" $(CS_FLAGS) | xcpretty
23+
$(XC) build -target "IDZSwiftCommonCrypto (watchOS)" $(CS_FLAGS) | xcpretty
2324
$(XC) test -scheme "IDZSwiftCommonCrypto (iOS)" -destination 'platform=iOS Simulator,name=iPhone 6' | xcpretty
2425
$(XC) test -scheme "IDZSwiftCommonCrypto (OSX)" | xcpretty
2526
$(XC) test -scheme "IDZSwiftCommonCrypto (tvOS)" -destination 'platform=tvOS Simulator,name=Apple TV 1080p'| xcpretty

0 commit comments

Comments
 (0)