diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..afce15f --- /dev/null +++ b/circle.yml @@ -0,0 +1,28 @@ +machine: + environment: + BUNDLE_INSTALL_PATH: "./vendor/bundle" # circle caches this by default + TEST_RUBIES: "system 2.1 2.2 2.3" + xcode: + version: "8.2" + +dependencies: + override: + - > + for v in $TEST_RUBIES; do + echo + echo "****************************************" + echo "Installing gems on Ruby version: $v" + echo "****************************************" + chruby-exec $v -- bundle install --path $BUNDLE_INSTALL_PATH + done + +test: + override: + - > + for v in $TEST_RUBIES; do + echo + echo "*******************************" + echo "Testing on Ruby version: $v" + echo "********************************" + chruby-exec $v -- bundle exec rake test TESTOPTS="--ci-dir=$CIRCLE_TEST_REPORTS/reports" + done diff --git a/twine.gemspec b/twine.gemspec index d16d04b..caf2caf 100644 --- a/twine.gemspec +++ b/twine.gemspec @@ -23,6 +23,7 @@ Gem::Specification.new do |s| s.add_runtime_dependency('safe_yaml', "~> 1.0") s.add_development_dependency('rake', "~> 10.4") s.add_development_dependency('minitest', "~> 5.5") + s.add_development_dependency('minitest-ci', "~> 3.0") s.add_development_dependency('mocha', "~> 1.1") s.executables = %w( twine )