| 1 | version: 2 |
| 2 | |
| 3 | jobs: |
| 4 | build: |
| 5 | docker: |
| 6 | - image: circleci/ruby:2.6.3-node |
| 7 | |
| 8 | steps: |
| 9 | - checkout |
| 10 | |
| 11 | - restore_cache: |
| 12 | keys: |
| 13 | - neat-{{ arch }}-{{ checksum "neat.gemspec" }} |
| 14 | |
| 15 | - run: |
| 16 | name: Install Ruby dependencies |
| 17 | command: bundle install --path vendor/bundle |
| 18 | |
| 19 | - run: |
| 20 | name: Install SassDoc |
| 21 | command: sudo npm install -g [email protected] |
| 22 | |
| 23 | - save_cache: |
| 24 | key: neat-{{ arch }}-{{ checksum "neat.gemspec" }} |
| 25 | paths: |
| 26 | - vendor/bundle |
| 27 | |
| 28 | - run: |
| 29 | name: Run the tests |
| 30 | command: bundle exec rake |
| 31 | |
| 32 | - run: |
| 33 | name: Parse SassDoc comments |
| 34 | command: sassdoc core/ --parse --verbose --strict |