Skip to content

Commit

Permalink
Update swift test configs
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickl committed Sep 22, 2019
1 parent ba23ba6 commit bf0c9e6
Show file tree
Hide file tree
Showing 19 changed files with 32 additions and 447 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ DerivedData
*.hmap
*.xccheckout
*.txt
.swiftpm/*
.build/*
DynamicColor.xcodeproj
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
language: objective-c
osx_image: xcode10.2
osx_image: xcode11
script:
- brew install swiftlint || brew upgrade swiftlint
- swiftlint lint --path Sources/ --config ../.swiftlint.yml
- cd Examples
- swift package -c release generate-xcodeproj
- xcodebuild -version
- xcodebuild -project DynamicColorExample.xcodeproj -scheme iOSTests -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 6" -configuration Release ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
- xcodebuild -project DynamicColor.xcodeproj -scheme DynamicColor-Package -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 8" -configuration Release ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
- bash <(curl -s https://codecov.io/bash) -cF ios
- xcodebuild -project DynamicColorExample.xcodeproj -scheme OSXTests -sdk macosx -configuration Release -enableCodeCoverage YES test
- xcodebuild -project DynamicColor.xcodeproj -scheme DynamicColor-Package -sdk macosx -configuration Release -enableCodeCoverage YES test
- bash <(curl -s https://codecov.io/bash) -cF osx
280 changes: 8 additions & 272 deletions Examples/DynamicColorExample.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

24 changes: 0 additions & 24 deletions Examples/OSXTests/Info.plist

This file was deleted.

2 changes: 1 addition & 1 deletion Examples/WatchOSExample WatchKit App/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>4.1.0</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion Examples/WatchOSExample WatchKit Extension/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>4.1.0</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
6 changes: 6 additions & 0 deletions Examples/WatchOSExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@
buildSettings = {
INFOPLIST_FILE = "WatchOSExample WatchKit Extension/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
MARKETING_VERSION = 4.2.0;
PRODUCT_BUNDLE_IDENTIFIER = com.yannickloriot.WatchOSExample.watchkitapp.watchkitextension;
PRODUCT_NAME = "${TARGET_NAME}";
SDKROOT = watchos;
Expand All @@ -569,6 +570,7 @@
buildSettings = {
INFOPLIST_FILE = "WatchOSExample WatchKit Extension/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
MARKETING_VERSION = 4.2.0;
PRODUCT_BUNDLE_IDENTIFIER = com.yannickloriot.WatchOSExample.watchkitapp.watchkitextension;
PRODUCT_NAME = "${TARGET_NAME}";
SDKROOT = watchos;
Expand All @@ -586,6 +588,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
IBSC_MODULE = WatchOSExample_WatchKit_Extension;
INFOPLIST_FILE = "WatchOSExample WatchKit App/Info.plist";
MARKETING_VERSION = 4.2.0;
PRODUCT_BUNDLE_IDENTIFIER = com.yannickloriot.WatchOSExample.watchkitapp;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = watchos;
Expand All @@ -602,6 +605,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
IBSC_MODULE = WatchOSExample_WatchKit_Extension;
INFOPLIST_FILE = "WatchOSExample WatchKit App/Info.plist";
MARKETING_VERSION = 4.2.0;
PRODUCT_BUNDLE_IDENTIFIER = com.yannickloriot.WatchOSExample.watchkitapp;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = watchos;
Expand All @@ -617,6 +621,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = WatchOSExample/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 4.2.0;
PRODUCT_BUNDLE_IDENTIFIER = com.yannickloriot.WatchOSExample;
PRODUCT_NAME = "$(TARGET_NAME)";
};
Expand All @@ -628,6 +633,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = WatchOSExample/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 4.2.0;
PRODUCT_BUNDLE_IDENTIFIER = com.yannickloriot.WatchOSExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
Expand Down
2 changes: 1 addition & 1 deletion Examples/WatchOSExample/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>4.1.0</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
22 changes: 0 additions & 22 deletions Examples/iOSTests/Info.plist

This file was deleted.

2 changes: 1 addition & 1 deletion Tests/DynamicColor+HSBTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

import XCTest
import DynamicColor
@testable import DynamicColor

let TestsAcceptedAccuracy = CGFloat(0.000001)

Expand Down
2 changes: 1 addition & 1 deletion Tests/DynamicColor+HSLTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

import XCTest
import DynamicColor
@testable import DynamicColor

class DynamicColorHSLTests: XCTestCase {
func testInitWithHSLComponents() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/DynamicColor+RGBATests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

import XCTest
import DynamicColor
@testable import DynamicColor

class DynamicColorRGBATests: XCTestCase {
func testInit() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/DynamicColor+XYZTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

import XCTest
import DynamicColor
@testable import DynamicColor

class DynamicColorXYZTests: XCTestCase {
func testInitWithXYZComponents() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/DynamicColorArrayTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

import XCTest
import DynamicColor
@testable import DynamicColor

class DynamicColorArrayTests: XCTestCase {
func testGradientProperty() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/DynamicColorLabTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

import XCTest
import DynamicColor
@testable import DynamicColor

class DynamicColorLabTests: XCTestCase {
func testInitWithLabComponents() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/DynamicColorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

import XCTest
import DynamicColor
@testable import DynamicColor

class DynamicColorTests: XCTestCase {
func testColorFromHexString() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/DynamicGradientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

import XCTest
import DynamicColor
@testable import DynamicColor

class DynamicGradientTests: XCTestCase {
func testColorPalette() {
Expand Down

0 comments on commit bf0c9e6

Please sign in to comment.