Merge pull request #189 from teespring/bogdan/continuous-integration

Setup continuous integration with Circle CI
This commit is contained in:
Sebastian Celis 2017-04-24 11:04:44 -05:00 committed by GitHub
commit efd637fb1b
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 )