diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..fb49287 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,25 @@ +version: 2 +jobs: + build: + docker: + - image: circleci/ruby:2.4-node + + steps: + - checkout + + - restore_cache: + keys: + - api-struct-bundle-v2-{{ checksum "api_struct.gemspec" }} + + - run: + name: Bundle Install + command: bundle check || bundle install + + - save_cache: + key: api-struct-bundle-v2-{{ checksum "api_struct.gemspec" }} + paths: + - vendor/bundle + + - run: + name: Run Rspec + command: bundle exec rspec diff --git a/circle.yml b/circle.yml deleted file mode 100644 index ce2dc31..0000000 --- a/circle.yml +++ /dev/null @@ -1,3 +0,0 @@ -machine: - ruby: - version: 2.4.2