Skip to content

Commit

Permalink
Add Carthage build step on Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ealeksandrov committed Dec 7, 2015
1 parent c6ed0c4 commit 6c05d49
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ Example/*.xcodeproj/*
!Example/*.xcodeproj/project.pbxproj
Example/*.xcworkspace/*
!Example/*.xcworkspace/contents.xcworkspacedata
!xcshareddata
*.xccheckout

#Project files
[Bb]uild/
Expand All @@ -29,6 +27,8 @@ DerivedData/
Carthage

#CocoaPods
#Pods
Example/Pods/*.xcodeproj/*
!Example/Pods/*.xcodeproj/project.pbxproj

!xcshareddata
*.xccheckout
16 changes: 15 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,22 @@ language: objective-c
osx_image: xcode7.1
before_install:
- export LANG=en_US.UTF-8
- gem i cocoapods --no-rdoc --no-ri --no-document --quiet
- brew update
- brew install carthage
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
- pod install --project-directory=Example
script:
- set -o pipefail && xcodebuild test -workspace Example/EARestrictedScrollView.xcworkspace -scheme EARestrictedScrollView-Example -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6s,OS=9.1' ONLY_ACTIVE_ARCH=NO | xcpretty
- pod lib lint
before_deploy:
- carthage build --no-skip-current
- carthage archive EARestrictedScrollView
deploy:
provider: releases
api_key:
secure: LnOWVVBpgByOSqHV8jTmtEP1M1WFC/79O9YLnnR1DzaiFGseM48ocXGTBKAn1t6CeGYO7NzjbpolWjYOs2T4IOFNLrfMLX7eeXE1nBfXkcrV2iAe8kN8ga9UvqI1MNWu8ryDQGoiQ2KY69eGxubm9CrKeKP/2AFNxichdo8U5jI=
file: EARestrictedScrollView.framework.zip
skip_cleanup: true
on:
repo: ealeksandrov/EARestrictedScrollView
tags: true

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

5 changes: 0 additions & 5 deletions Gemfile

This file was deleted.

17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,25 @@ You can setup EARestrictedScrollView using [Carthage](https://github.com/Carthag

### Carthage

1. Add EARestrictedScrollView to your project's `Cartfile.private`:
1. Add EARestrictedScrollView to your project's `Cartfile`:

```ruby
github "ealeksandrov/EARestrictedScrollView" "master"
github "ealeksandrov/EARestrictedScrollView"
```

2. Run `carthage update` in your project directory.
3. Drag the appropriate **EARestrictedScrollView.framework** for your platform (located in `Carthage/Build/`) into your application’s Xcode project, and add it to your test target(s).
3. On your application targets’ “General” settings tab, in the “Linked Frameworks and Libraries” section, drag and drop **EARestrictedScrollView.framework** from the `Carthage/Build/iOS/` folder on disk.
4. On your application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase”. Create a Run Script with the following contents:

```shell
/usr/local/bin/carthage copy-frameworks
```

and add the path to the framework under “Input Files”:

```shell
$(SRCROOT)/Carthage/Build/iOS/EARestrictedScrollView.framework
```

### CocoaPods

Expand Down

0 comments on commit 6c05d49

Please sign in to comment.