Sha256: fb2b0b7d0da109c61382ec3e15a5dd5a63db4282270798c73c54baaabae2c7a8

Contents?: true

Size: 1.49 KB

Versions: 9

Compression:

Stored size: 1.49 KB

Contents

#
# All-in-one
#
# This test configuration runs all tests in a single job.
#
version: 2.1

commands:
  setup_environment:
    description: Run the tests for a given directory in the test folder
    steps:
      - checkout
      - restore_cache:
          keys:
            - app47-webcore-gem-cache-v2-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
      - run:
          name: Version information
          shell: /bin/bash -l
          command: |
            mongod --version;
            redis-server --version;
            ruby --version;
            gem --version;
            bundle --version;
      - run:
          name: Setup environment
          shell: /bin/bash -l
          command: |
            mkdir -p ./log;
            bundle install --path=vendor --jobs=4 --retry=3;
            redis-server --daemonize yes;
            mongod -smallfiles -nojournal --fork --logpath /var/log/mongodb.log;
      - save_cache:
          key: app47-webcore-gem-cache-v2-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
          paths:
            - vendor

executors:
  webcore_executor:
    docker:
      - image: app47/bionic:latest
    environment:
      -  ENV: CI
      -  REDIS_URL: redis://localhost:6379
      -  MONGO_URL: localhost:27017
      -  RACK_ENV: test
      -  RAILS_ENV: test
      -  COVERAGE: 1

jobs:
  build:
    executor: webcore_executor
    steps:
      - setup_environment
      - run:
          name: Run tests
          shell: /bin/bash -l
          command: bundle exec rake test

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
web47core-0.1.4 .circleci/config.yml
web47core-0.1.3 .circleci/config.yml
web47core-0.1.2 .circleci/config.yml
web47core-0.1.1 .circleci/config.yml
web47core-0.1.0 .circleci/config.yml
web47core-0.0.10 .circleci/config.yml
web47core-0.0.9 .circleci/config.yml
web47core-0.0.8 .circleci/config.yml
web47core-0.0.7 .circleci/config.yml