Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis grooming #200

Merged
merged 4 commits into from
Jan 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
os: osx
os:
- osx
- linux
language: ruby
install: true

Expand All @@ -11,7 +13,14 @@ gemfile:
- gemfiles/Gemfile.xcodeproj-edge
rvm:
- 2.5.0
- ruby-2.0.0-p648
- 2.6.0
- 2.7.0

matrix:
include:
- rvm: 2.7.0
os: linux
env: XCAKE_CI_TASKS=LINT

before_script:
- gem install bundler -v "~> 1.17"
Expand Down
17 changes: 11 additions & 6 deletions spec/integration_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require 'spec_helper'
require 'yaml'
require 'simplecov'
require 'os'

SimpleCov.command_name 'test:integration'

Expand Down Expand Up @@ -61,13 +62,17 @@ def self.list_files(directory)
expect(Dir['temp/*.xcodeproj']).to eq(%w(temp/Project.xcodeproj))
end
end
it 'Should build fixture with xcodebuild with no errors' do
Dir.chdir(fixture) do
Xcake.make_helper
Dir.chdir('temp') do
expect('xcodebuild clean build -sdk iphonesimulator &> xcode_output.txt').to succeed

# this cannot be tested on any OS other than macOS
if OS.mac?
it 'Should build fixture with xcodebuild with no errors' do
Dir.chdir(fixture) do
Xcake.make_helper
Dir.chdir('temp') do
expect('xcodebuild clean build -sdk iphonesimulator &> xcode_output.txt').to succeed
end
expect(Xcake.list_files('temp')).to include(*Xcake.list_files('output'))
end
expect(Xcake.list_files('temp')).to include(*Xcake.list_files('output'))
end
end
end
Expand Down
2 changes: 2 additions & 0 deletions xcake.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
spec.add_dependency 'activesupport', '< 5'

spec.add_development_dependency 'bundler', '>= 1.10'
spec.add_development_dependency 'os', '~> 1.0'
spec.add_development_dependency 'pry', '~> 0.10'
spec.add_development_dependency 'pry-rescue'
spec.add_development_dependency 'pry-stack_explorer'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'rb-readline', '~> 0.5.4'
spec.add_development_dependency 'rspec', '~> 3.4.0'
spec.add_development_dependency 'rubocop', '~> 0.64.0'
spec.add_development_dependency 'rubocop-git', '~> 0.1.1'
spec.add_development_dependency 'simplecov'
spec.add_development_dependency 'yard', '~> 0.9'
Expand Down