Sha256: 9901e8085d69ff03e9e97100299b5d62cb6b24cc90dc51a81b29cf4ab849c644

Contents?: true

Size: 1.45 KB

Versions: 3

Compression:

Stored size: 1.45 KB

Contents

version: 2.1
orbs:
  ruby: circleci/ruby@0.1.2

jobs:
  rspec:
    docker:
      - image: circleci/ruby:2.6.3-stretch-node-browsers
    executor: ruby/default
    steps:
      - checkout
      - ruby/bundle-install
      - run:
          name: rspec
          command: |
            bundle exec rspec --profile 10 \
              --format RspecJunitFormatter \
              --out test_results/rspec.xml \
              --format progress

  deploy:
    docker:
      - image: circleci/ruby:2.6.3-stretch-node
    executor: ruby/default
    steps:
      - checkout
      - run:
          name: Which bundler?
          command: bundle -v
      - ruby/bundle-install
      - run:
          name: rake build
          command: rake build
      - run:
          name: setup API key
          command: |
            mkdir -p ~/.gem/
            echo "---" > ~/.gem/credentials
            echo ":rubygems_api_key: $RUBYGEMS_API_KEY" >> ~/.gem/credentials
            chmod 600 ~/.gem/credentials
      - run:
          name: Check Puppeteer::version
          command: bundle exec ruby -e 'raise "invalid Puppeteer::VERSION" unless Puppeteer::VERSION == ENV["CIRCLE_TAG"]'
      - run:
          name: gem push
          command: gem push pkg/puppeteer-ruby-$CIRCLE_TAG.gem

workflows:
  ci:
    jobs:
      - rspec
  rubygems-deploy:
    jobs:
      - deploy:
          filters:
            tags:
              only: /^[0-9]\.[0-9]+\.[0-9].*/
            branches:
              ignore: /.*/

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
puppeteer-ruby-0.0.16 .circleci/config.yml
puppeteer-ruby-0.0.15 .circleci/config.yml
puppeteer-ruby-0.0.14 .circleci/config.yml