Skip to content

Commit

Permalink
[Specs] split integration specs for Swift 1.2 & Swift 2.0 & add Travi…
Browse files Browse the repository at this point in the history
…s support
  • Loading branch information
jpsim committed Sep 7, 2015
1 parent 32b0ced commit 9d703f7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
language: objective-c
osx_image: xcode7
cache: bundler
branches:
only:
- master
rvm:
- system
before_install:
- sudo gem install bundler
- git submodule update --init --recursive
script:
- bundle exec rake spec
script: bundle exec rake spec
notifications:
email: false
slack: realmio:vPdpsG9NLDo2DNlbqtcMAQuE
matrix:
include:
- osx_image: xcode6.4
env: TRAVIS_SWIFT_VERSION=1.2
- osx_image: xcode7
env: TRAVIS_SWIFT_VERSION=2.0
18 changes: 11 additions & 7 deletions spec/integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,16 @@
s.replace_path ROOT.to_s, 'ROOT'
end

describe 'jazzy' do
travis_swift = ENV['TRAVIS_SWIFT_VERSION']

describe 'jazzy swift 1.2' do
describe 'Creates docs for a podspec with dependencies and subspecs' do
behaves_like cli_spec 'document_moya_podspec',
'--podspec=Moya.podspec --swift-version=1.2'
end
end if !travis_swift || travis_swift == '1.2'

describe 'jazzy swift 2.0' do
describe 'Creates docs with a module name, author name, project URL, ' \
'xcodebuild options, and github info' do
behaves_like cli_spec 'document_alamofire',
Expand Down Expand Up @@ -124,11 +133,6 @@
'--template-directory "docs/templates/swift" '
end

describe 'Creates docs for a podspec with dependencies and subspecs' do
behaves_like cli_spec 'document_moya_podspec',
'--podspec=Moya.podspec --swift-version=1.2'
end

describe 'Creates docs for Swift project with a variety of contents' do
behaves_like cli_spec 'misc_jazzy_features',
'-m MiscJazzyFeatures -a Realm ' \
Expand All @@ -137,5 +141,5 @@
'-x -dry-run ' \
'--min-acl private'
end
end
end if !travis_swift || travis_swift == '2.0'
end

0 comments on commit 9d703f7

Please sign in to comment.