From 85cb36657e060771dc23c6d7eb0e55125e8a9118 Mon Sep 17 00:00:00 2001
From: funzin
Date: Sat, 17 Aug 2019 11:54:47 +0900
Subject: [PATCH 1/7] Add travis and codecov
---
.travis.yml | 19 +++++++++++++++++++
codecov.yml | 2 ++
2 files changed, 21 insertions(+)
create mode 100644 .travis.yml
create mode 100644 codecov.yml
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..e6c445d
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,19 @@
+language: objective-c
+osx_image: xcode10.3
+xcode_workspace: ViewGeneratorApp.xcworkspace
+xcode_scheme: ViewGeneratorApp-Debug
+xcode_destination: platform=macOS
+before_install:
+ - gem install xcpretty
+ - gem install cocoapods --pre
+ - pod repo update
+ - brew update
+ - pod install
+before_script:
+ - set -o pipefail
+script:
+ - xcodebuild test | xcpretty -c
+after_success:
+ - bash <(curl -s https://codecov.io/bash)
+notifications:
+ email: false
diff --git a/codecov.yml b/codecov.yml
new file mode 100644
index 0000000..c14250d
--- /dev/null
+++ b/codecov.yml
@@ -0,0 +1,2 @@
+comment:
+ behavior: new
From e533659bc56677122c67363148c1a6dfefee57a6 Mon Sep 17 00:00:00 2001
From: funzin
Date: Sat, 17 Aug 2019 12:03:38 +0900
Subject: [PATCH 2/7] Add param
---
.travis.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index e6c445d..ac5e28b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,7 +12,7 @@ before_install:
before_script:
- set -o pipefail
script:
- - xcodebuild test | xcpretty -c
+ - xcodebuild test -workspace ViewGeneratorApp.xcworkspace -scheme ViewGeneratorApp-Debug -configuration Debug -destination 'platform=macOS' | xcpretty -c
after_success:
- bash <(curl -s https://codecov.io/bash)
notifications:
From 43130161ce4cec0c7c9ab7810e642557c7be0de2 Mon Sep 17 00:00:00 2001
From: funzin
Date: Sat, 17 Aug 2019 12:08:49 +0900
Subject: [PATCH 3/7] Update readme
---
README.md | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index ae68675..cb4eb03 100644
--- a/README.md
+++ b/README.md
@@ -3,6 +3,12 @@
+
+
+
+
+
+
@@ -10,12 +16,6 @@
-
-
-
From 218c74f8c5356b77d923ef4e1cd145b07be3b6e1 Mon Sep 17 00:00:00 2001
From: funzin
Date: Sat, 17 Aug 2019 12:13:17 +0900
Subject: [PATCH 4/7] Fix testing host application
---
ViewGeneratorApp.xcodeproj/project.pbxproj | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ViewGeneratorApp.xcodeproj/project.pbxproj b/ViewGeneratorApp.xcodeproj/project.pbxproj
index ee0ac1e..5b02f0f 100644
--- a/ViewGeneratorApp.xcodeproj/project.pbxproj
+++ b/ViewGeneratorApp.xcodeproj/project.pbxproj
@@ -743,7 +743,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 5.0;
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ViewGeneratorApp.app/Contents/MacOS/ViewGeneratorApp";
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ViewGeneratorForXcode.app/Contents/MacOS/ViewGeneratorForXcode";
};
name = Debug;
};
@@ -765,7 +765,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 5.0;
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ViewGeneratorApp.app/Contents/MacOS/ViewGeneratorApp";
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ViewGeneratorForXcode.app/Contents/MacOS/ViewGeneratorForXcode";
};
name = Release;
};
From 64ac3bc875f31bf71c7e344b00e944bcde428ed7 Mon Sep 17 00:00:00 2001
From: funzin
Date: Sat, 17 Aug 2019 13:39:30 +0900
Subject: [PATCH 5/7] Fix conflict
---
ViewGeneratorApp.xcodeproj/project.pbxproj | 8 --------
1 file changed, 8 deletions(-)
diff --git a/ViewGeneratorApp.xcodeproj/project.pbxproj b/ViewGeneratorApp.xcodeproj/project.pbxproj
index 84b8158..d14757d 100644
--- a/ViewGeneratorApp.xcodeproj/project.pbxproj
+++ b/ViewGeneratorApp.xcodeproj/project.pbxproj
@@ -858,12 +858,8 @@
PROVISIONING_PROFILE_SPECIFIER = "";
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
-<<<<<<< HEAD
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ViewGeneratorForXcode.app/Contents/MacOS/ViewGeneratorForXcode";
-=======
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
->>>>>>> master
};
name = Debug;
};
@@ -933,10 +929,6 @@
PRODUCT_BUNDLE_IDENTIFIER = com.funzin.ViewGeneratorCoreTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
-<<<<<<< HEAD
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ViewGeneratorForXcode.app/Contents/MacOS/ViewGeneratorForXcode";
-=======
->>>>>>> master
};
name = Release;
};
From 38335e0aac134e61eff6b78c02ceb75a2285d4e2 Mon Sep 17 00:00:00 2001
From: funzin
Date: Sat, 17 Aug 2019 13:40:07 +0900
Subject: [PATCH 6/7] Fix travis yml
---
.travis.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index ac5e28b..db9022e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,7 +1,7 @@
language: objective-c
osx_image: xcode10.3
xcode_workspace: ViewGeneratorApp.xcworkspace
-xcode_scheme: ViewGeneratorApp-Debug
+xcode_scheme: ViewGeneratorCore
xcode_destination: platform=macOS
before_install:
- gem install xcpretty
@@ -12,7 +12,7 @@ before_install:
before_script:
- set -o pipefail
script:
- - xcodebuild test -workspace ViewGeneratorApp.xcworkspace -scheme ViewGeneratorApp-Debug -configuration Debug -destination 'platform=macOS' | xcpretty -c
+ - xcodebuild test -workspace ViewGeneratorApp.xcworkspace -scheme ViewGeneratorCore -configuration Debug -destination 'platform=macOS' | xcpretty -c
after_success:
- bash <(curl -s https://codecov.io/bash)
notifications:
From 7a479fc8f67d334ec399f3ddf498c735177ac04a Mon Sep 17 00:00:00 2001
From: funzin
Date: Sat, 17 Aug 2019 14:12:35 +0900
Subject: [PATCH 7/7] Enable code coverage
---
.../xcshareddata/xcschemes/ViewGeneratorCore.xcscheme | 1 +
1 file changed, 1 insertion(+)
diff --git a/ViewGeneratorApp.xcodeproj/xcshareddata/xcschemes/ViewGeneratorCore.xcscheme b/ViewGeneratorApp.xcodeproj/xcshareddata/xcschemes/ViewGeneratorCore.xcscheme
index 5aeda18..4ef313a 100644
--- a/ViewGeneratorApp.xcodeproj/xcshareddata/xcschemes/ViewGeneratorCore.xcscheme
+++ b/ViewGeneratorApp.xcodeproj/xcshareddata/xcschemes/ViewGeneratorCore.xcscheme
@@ -40,6 +40,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ codeCoverageEnabled = "YES"
shouldUseLaunchSchemeArgsEnv = "YES">