Skip to content

Commit b8a5486

Browse files
committed
Add .travis.yml
1 parent f910b15 commit b8a5486

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: objective-c
2+
osx_image: xcode7.3
3+
env:
4+
matrix:
5+
- VERSION=8.4
6+
- VERSION=latest
7+
cache:
8+
bundler: true
9+
directories:
10+
- vendor/bundle
11+
- Pods
12+
before_install:
13+
- export LANG=en_US.UTF-8
14+
install:
15+
- bundle install --without development --deployment --jobs=3 --retry=3
16+
- bundle exec pod install --no-repo-update
17+
script:
18+
- xcodebuild -project ICInputAccessory.xcodeproj -scheme ICInputAccessory-iOS -sdk iphonesimulator -destination "name=iPhone 6,OS=$VERSION" clean build | xcpretty -c
19+
- xcodebuild -workspace ICInputAccessory.xcworkspace -scheme Example -sdk iphonesimulator -destination "name=iPhone 6,OS=$VERSION" clean build | xcpretty -c
20+
notifications:
21+
email: false

Rakefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
task default: :build
22

33
desc "Build the framework target and the example project"
4-
task :build do
5-
sh %(xcodebuild -project ICInputAccessory.xcodeproj -scheme ICInputAccessory-iOS -sdk iphonesimulator -destination "name=iPhone 6,OS=latest" clean build | xcpretty -c)
6-
sh %(xcodebuild -workspace ICInputAccessory.xcworkspace -scheme Example -sdk iphonesimulator -destination "name=iPhone 6,OS=latest" clean build | xcpretty -c)
4+
task :build, [:os] do |t, args|
5+
version = args[:os] || "latest"
6+
sh %(xcodebuild -project ICInputAccessory.xcodeproj -scheme ICInputAccessory-iOS -sdk iphonesimulator -destination "name=iPhone 5,OS=#{version}" clean build | xcpretty -c)
7+
sh %(xcodebuild -workspace ICInputAccessory.xcworkspace -scheme Example -sdk iphonesimulator -destination "name=iPhone 5,OS=#{version}" clean build | xcpretty -c)
78
end

0 commit comments

Comments
 (0)