Merge pull request #263 from danl3v/update-to-circleci-2.0
Update to CircleCI 2.0
This commit is contained in:
commit
62a6f7889d
2 changed files with 30 additions and 28 deletions
30
.circleci/config.yml
Normal file
30
.circleci/config.yml
Normal 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"
|
28
circle.yml
28
circle.yml
|
@ -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
|
Reference in a new issue