Sha256: e5347295bd66257b3239c38b6535597efb9869af30369a7ae66bb1348c610777

Contents?: true

Size: 1.35 KB

Versions: 3

Compression:

Stored size: 1.35 KB

Contents

# Ruby CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
#
version: 2
jobs:
  build:
    docker:
      - image: circleci/ruby:2.4.1-node-browsers
      - image: docker.elastic.co/elasticsearch/elasticsearch:5.6.3
        environment:
          - "discovery.type=single-node"
          - "xpack.security.enabled=false"
          - "http.host=0.0.0.0"
          - "transport.host=127.0.0.1"

    working_directory: ~/repo

    steps:
      - checkout

      - run:
          name: Waiting for elasticsearch to start up (30 sec.)
          command: sleep 30

      - run:
          name: Install dependencies
          command: bundle install --jobs=4 --retry=3 --path vendor/bundle

      - run:
          name: Install CodeClimate test coverage reporter
          command: |
            curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
            chmod +x ./cc-test-reporter
            ./cc-test-reporter before-build

      - run:
          name: Run tests
          command: |
            mkdir /tmp/test-results
            bundle exec rspec --format progress --format RspecJunitFormatter --out /tmp/test-results/rspec.xml

      - run:
          name: Upload test coverage report to CodeClimate
          command: ./cc-test-reporter after-build --exit-code $?

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
metacrunch-elasticsearch-4.1.1 .circleci/config.yml
metacrunch-elasticsearch-4.1.0 .circleci/config.yml
metacrunch-elasticsearch-4.0.1 .circleci/config.yml