Merge pull request #263 from danl3v/update-to-circleci-2.0

Update to CircleCI 2.0
This commit is contained in:
Sebastian Celis 2018-11-29 10:27:15 -06:00 committed by GitHub
commit 62a6f7889d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 28 deletions

30
.circleci/config.yml Normal file
View file

@ -0,0 +1,30 @@
version: 2.0
jobs:
"ruby-2.2":
docker:
- image: circleci/ruby:2.2
steps:
- checkout
- run: bundle install
- run: bundle exec rake test TESTOPTS="--ci-dir=$CIRCLE_TEST_REPORTS/reports"
"ruby-2.3":
docker:
- image: circleci/ruby:2.3
steps:
- checkout
- run: bundle install
- run: bundle exec rake test TESTOPTS="--ci-dir=$CIRCLE_TEST_REPORTS/reports"
"ruby-2.4":
docker:
- image: circleci/ruby:2.4
steps:
- checkout
- run: bundle install
- run: bundle exec rake test TESTOPTS="--ci-dir=$CIRCLE_TEST_REPORTS/reports"
workflows:
version: 2
build:
jobs:
- "ruby-2.2"
- "ruby-2.3"
- "ruby-2.4"

View file

@ -1,28 +0,0 @@
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