"Setup continuous integration with Circle CI."

Test on multiple rubies: system (2.0.0), 2.1.*, 2.2.*, 2.3.*
Runs builds on macOS in preperation for Xcode integration testing.
This commit is contained in:
Bogdan Vitoc 2017-03-23 14:12:37 -07:00
parent fe7e1a7d92
commit fc18caa77e
2 changed files with 29 additions and 0 deletions

28
circle.yml Normal file
View file

@ -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

View file

@ -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 )