Sha256: 10bad71df93fd501680380d607bcbbd7c3a53ab3580757061fa0933b78fa295f

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

version: 2
jobs:
  build:
    docker:
      - image: circleci/ruby:2.5.1-node-browsers
        environment:
          PGHOST: 127.0.0.1
          PGUSER: twilio_base
          RAILS_ENV: test
      - image: postgres:9.5
        environment:
          POSTGRES_USER: twilio_base
          POSTGRES_DB: twilio_base_test
          POSTGRES_PASSWORD: ""
    steps:
      - checkout
      - run: bundle install
      - run: cp spec/twilio_base_dummy/config/database.example.yml spec/twilio_base_dummy/config/database.yml
      - run: bundle exec rake db:setup
      - run:
          name: Parallel RSpec
          command: bundle exec rspec spec/
      - run:
          name: Rubocop
          command: bundle exec rubocop
      - run:
          name: Publish gem to gemfury
          command: |
            if [ "${CIRCLE_BRANCH}" == "master" ]
            then
              gem install gemfury
              gem build twilio_base.gemspec
              fury push $(ls | grep twilio_base-) --as=dvelp --api-token=$BUNDLE_GEM__FURY__IO
            else
              echo "Publishing to gemfury allowed only for master branch"
            fi

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
twilio_base-1.9.0 circle.yml
twilio_base-1.8.0 circle.yml