diff --git a/.travis.yml b/.travis.yml index 55611d3eb..0ca3b4c5f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,15 @@ rvm: # TODO currently unavailable: https://github.com/travis-ci/travis-ci/issues/2918 # - 2.0.0-p247 +matrix: + include: + - rvm: 2.4.0 + env: COCOAPODS_CI_TASKS=LINT + +script: + - bundle exec rake spec:all + - if [ "$COCOAPODS_CI_TASKS" = "LINT" ]; then bundle exec danger; fi + addons: code_climate: repo_token: fcf708528e1eca6e8a8bf8f7be3bd24e4478b019c4cd7860325c141dd52aa152 diff --git a/Dangerfile b/Dangerfile new file mode 100644 index 000000000..f312fce50 --- /dev/null +++ b/Dangerfile @@ -0,0 +1,2 @@ +# Re-use CocoaPods' Dangerfile for CHANGELOG, xit and merge commit checks +danger.import_dangerfile(github: "cocoapods/cocoapods") diff --git a/Gemfile b/Gemfile index bc1add47e..4a269cf31 100644 --- a/Gemfile +++ b/Gemfile @@ -18,6 +18,7 @@ group :development do gem 'codeclimate-test-reporter', '~> 0.4.1', :require => nil gem 'rubocop' + gem 'danger' gem 'simplecov' end diff --git a/Gemfile.lock b/Gemfile.lock index 165210b5f..b23bd0060 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -24,16 +24,42 @@ GEM remote: http://rubygems.org/ specs: CFPropertyList (2.3.5) + addressable (2.5.1) + public_suffix (~> 2.0, >= 2.0.2) ast (2.3.0) bacon (1.2.0) + claide-plugins (0.9.2) + cork + nap + open4 (~> 1.3) codeclimate-test-reporter (0.4.8) simplecov (>= 0.7.1, < 1.0.0) + colored (1.2) colored2 (3.1.2) + cork (0.2.0) + colored (~> 1.2) + danger (4.3.3) + claide (~> 1.0) + claide-plugins (>= 0.9.2) + colored2 (~> 3.1) + cork (~> 0.1) + faraday (~> 0.9) + faraday-http-cache (~> 1.0) + git (~> 1) + kramdown (~> 1.5) + octokit (~> 4.2) + terminal-table (~> 1) docile (1.1.5) + faraday (0.12.0.1) + multipart-post (>= 1.2, < 3) + faraday-http-cache (1.3.1) + faraday (~> 0.8) ffi (1.9.17) + git (1.3.0) kicker (3.0.0) listen (~> 1.3.0) notify (~> 0.5.2) + kramdown (1.13.2) listen (1.3.1) rb-fsevent (>= 0.9.3) rb-inotify (>= 0.9) @@ -44,13 +70,19 @@ GEM mocha-on-bacon (0.2.3) mocha (>= 0.13.0) multi_json (1.12.1) + multipart-post (2.0.0) nanaimo (0.2.3) + nap (1.1.0) notify (0.5.2) + octokit (4.7.0) + sawyer (~> 0.8.0, >= 0.5.3) + open4 (1.3.4) parser (2.4.0.0) ast (~> 2.2) powerpack (0.1.1) prettybacon (0.0.2) bacon (~> 1.2) + public_suffix (2.0.5) rainbow (2.2.1) rake (12.0.0) rb-fsevent (0.9.8) @@ -65,11 +97,16 @@ GEM ruby-progressbar (~> 1.7) unicode-display_width (~> 1.0, >= 1.0.1) ruby-progressbar (1.8.1) + sawyer (0.8.1) + addressable (>= 2.3.5, < 2.6) + faraday (~> 0.8, < 1.0) simplecov (0.9.2) docile (~> 1.1.0) multi_json (~> 1.0) simplecov-html (~> 0.9.0) simplecov-html (0.9.0) + terminal-table (1.7.3) + unicode-display_width (~> 1.1.1) unicode-display_width (1.1.3) PLATFORMS @@ -79,6 +116,7 @@ DEPENDENCIES bacon claide! codeclimate-test-reporter (~> 0.4.1) + danger json! kicker mocha