Sha256: a184cfa1d72f6d4cac4970e971ccd533356d8617a127780c9e2f799529d42546

Contents?: true

Size: 1.95 KB

Versions: 9

Compression:

Stored size: 1.95 KB

Contents

version: 2
jobs:
  build:
    docker: &docker
      - image: ruby:2.5.1-alpine
    working_directory: /work
    steps:
      - run: &setup_requirements
          name: Install System Dependencies
          command: |
            # See also https://circleci.com/docs/2.0/custom-images/#adding-required-and-custom-tools-or-files
            apk add --update --no-cache git openssh-client tar gzip ca-certificates \
              tzdata
      - run: &set_timezone
          name: Set timezone to Asia/Tokyo
          command: cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
      - checkout
      - restore_cache: &restore_gems_cache
          name: Restore bundler cache
          keys:
            - gems-{{ .Environment.COMMON_CACHE_KEY }}-{{ checksum "Gemfile.lock" }}
            - gems-{{ .Environment.COMMON_CACHE_KEY }}-
      - run:
          name: Install Ruby Dependencies
          command: |
            bundle check || bundle install --jobs=4 --retry=3
            bundle clean
      - save_cache: &save_gems_cache
          name: Save bundler cache
          key: gems-{{ .Environment.COMMON_CACHE_KEY }}-{{ checksum "Gemfile.lock" }}
          paths:
            - /usr/local/bundle
      - run:
          name: Run RSpec
          command: rspec
  continuous_bundle_update:
    docker: *docker
    working_directory: /work
    steps:
      - run: *setup_requirements
      - run: *set_timezone
      - checkout
      - restore_cache: *restore_gems_cache
      - run:
          name: Setup requirements for continuous bundle update
          command: gem install -N circleci-bundle-update-pr
      - deploy:
          name: Continuous bundle update
          command: circleci-bundle-update-pr CircleCI circleci@example.com $CIRCLE_BRANCH

workflows:
  version: 2
  build:
    jobs:
      - build
  nightly:
    triggers:
      - schedule:
          cron: "00 10 * * 5"
          filters:
            branches:
              only: master
    jobs:
      - continuous_bundle_update

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
circleci-bundle-update-pr-1.14.4 .circleci/config.yml
circleci-bundle-update-pr-1.14.3 .circleci/config.yml
circleci-bundle-update-pr-1.14.2 .circleci/config.yml
circleci-bundle-update-pr-1.14.1 .circleci/config.yml
circleci-bundle-update-pr-1.14.0 .circleci/config.yml
circleci-bundle-update-pr-1.13.0 .circleci/config.yml
circleci-bundle-update-pr-1.12.0 .circleci/config.yml
circleci-bundle-update-pr-1.11.3 .circleci/config.yml
circleci-bundle-update-pr-1.11.2 .circleci/config.yml