Skip to content

Commit

Permalink
0.1.4 Feature: Added travis CI (#9)
Browse files Browse the repository at this point in the history
* Added .travis.yml config file

* Updated Schemes and Readme

* Set Swift Language version to 4.2, deployment target to 10.0, xCode to 10.2, sim version to 12.2
  • Loading branch information
leandromperez committed May 20, 2019
1 parent ee0a4be commit b4c93d8
Show file tree
Hide file tree
Showing 9 changed files with 147 additions and 115 deletions.
16 changes: 16 additions & 0 deletions .travis.yml
@@ -0,0 +1,16 @@
xcode_project: Example/SpecLeaks.xcodeproj
xcode_scheme: SpecLeaks-Example
xcode_destination: platform=iOS Simulator,OS=12.0,name=iPhone X

osx_image: xcode10.2
language: objective-c
# cache: cocoapods
podfile: Example/Podfile
before_install:
- gem install cocoapods # Since Travis is not always on latest version
- pod install --repo-update --project-directory=Example
script:
- xcodebuild -showsdks
- xcodebuild test -workspace Example/SpecLeaks.xcworkspace -list
- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/SpecLeaks.xcworkspace -scheme SpecLeaks-Example -sdk iphonesimulator12.2 -destination 'platform=iOS Simulator,name=iPhone X,OS=12.2' ONLY_ACTIVE_ARCH=NO | xcpretty
- pod lib lint
10 changes: 10 additions & 0 deletions Example/Podfile
@@ -1,4 +1,5 @@
use_frameworks!
platform :ios, '10.0'

target 'SpecLeaks_Example' do
pod 'SpecLeaks', :path => '../'
Expand All @@ -12,4 +13,13 @@ target 'SpecLeaks_Example' do
pod 'Nimble'
pod 'RxCocoa'
end

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
config.build_settings['SWIFT_VERSION'] = '4.2'
end
end
end
end
35 changes: 18 additions & 17 deletions Example/Podfile.lock
@@ -1,12 +1,13 @@
PODS:
- Nimble (7.3.1)
- Quick (1.3.2)
- RxAtomic (4.4.0)
- RxCocoa (4.4.0):
- RxSwift (~> 4.0)
- RxSwift (4.4.0):
- RxAtomic (~> 4.4)
- SpecLeaks (0.1.2):
- Nimble (8.0.1)
- Quick (2.1.0)
- RxCocoa (5.0.0):
- RxRelay (~> 5)
- RxSwift (~> 5)
- RxRelay (5.0.0):
- RxSwift (~> 5)
- RxSwift (5.0.0)
- SpecLeaks (0.1.4):
- Nimble
- Quick

Expand All @@ -21,22 +22,22 @@ SPEC REPOS:
https://github.com/cocoapods/specs.git:
- Nimble
- Quick
- RxAtomic
- RxCocoa
- RxRelay
- RxSwift

EXTERNAL SOURCES:
SpecLeaks:
:path: "../"

SPEC CHECKSUMS:
Nimble: 04f732da099ea4d153122aec8c2a88fd0c7219ae
Quick: 2623cb30d7a7f41ca62f684f679586558f483d46
RxAtomic: eacf60db868c96bfd63320e28619fe29c179656f
RxCocoa: df63ebf7b9a70d6b4eeea407ed5dd4efc8979749
RxSwift: 5976ecd04fc2fefd648827c23de5e11157faa973
SpecLeaks: d63df3d217e0bcc8bcc17fa615339f04f5f2cb95
Nimble: 45f786ae66faa9a709624227fae502db55a8bdd0
Quick: 4be43f6634acfa727dd106bdf3929ce125ffa79d
RxCocoa: fcf32050ac00d801f34a7f71d5e8e7f23026dcd8
RxRelay: 4f7409406a51a55cd88483f21ed898c234d60f18
RxSwift: 8b0671caa829a763bbce7271095859121cbd895f
SpecLeaks: 5e18015c72362b522364b1a2ea7aa4aeb51cec11

PODFILE CHECKSUM: c8d9503777022da81ee19ce643651c1b5128ba67
PODFILE CHECKSUM: 3e10c7b2e316c386188f0b8a184dd143fe70852e

COCOAPODS: 1.5.3
COCOAPODS: 1.6.1
141 changes: 83 additions & 58 deletions Example/SpecLeaks.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0900"
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
12 changes: 12 additions & 0 deletions Example/SpecLeaks.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 1 addition & 27 deletions Example/SpecLeaks/AppDelegate.swift
Expand Up @@ -13,34 +13,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?


func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
return true
}

func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}

func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}


}

2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -122,7 +122,7 @@ class SomeOjectTests: QuickSpec {
```
## Author

leandromperez@gmail.com, leandromperez@gmail.com
Leandro Perez, https://twitter.com/bataleandro

## License

Expand Down
16 changes: 5 additions & 11 deletions SpecLeaks.podspec
Expand Up @@ -8,28 +8,22 @@

Pod::Spec.new do |s|
s.name = 'SpecLeaks'
s.version = '0.1.2'
s.swift_version = '4.0'
s.version = '0.1.4'
s.swift_version = '4.2'
s.summary = 'Unit Tests Memory Leaks in Swift. Write readable tests for mem leaks easily with these Quick and Nimble extensions.'

s.description = 'Quick and Nimble are tools that form a Unit Testing framework that allows you to write tests in a more humanly readable fashion. SpecLeaks is only a few additions to those tools. It lets you create unit tests to see if objects are leaking. You can test vanilla objects, view controllers, and see if an object or an action leaks'

s.homepage = 'https://github.com/leandromperez/specleaks'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Leandro Perez' => 'leandromperez@gmail.com' }
s.author = { 'Leandro Perez' => 'https://twitter.com/bataleandro' }
s.source = { :git => 'https://github.com/leandromperez/specleaks.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
s.social_media_url = 'https://twitter.com/bataleandro'

s.ios.deployment_target = '8.0'
s.ios.deployment_target = '10.0'

s.source_files = 'SpecLeaks/Classes/**/*'

# s.resource_bundles = {
# 'SpecLeaks' => ['SpecLeaks/Assets/*.png']
# }

# s.public_header_files = 'Pod/Classes/**/*.h'
s.frameworks = 'UIKit', 'XCTest'
s.dependency 'Quick'
s.dependency 'Nimble'
Expand Down

0 comments on commit b4c93d8

Please sign in to comment.