GithubHelp home page GithubHelp logo

circleci-docker's Introduction

Circle CI & Docker Circle CI

Testing Docker container dependencies with Circle CI.

Overview

This is a sample repo that tests out Circle CI builds when Docker container dependencies are requried. This project contains a basic node application that will attempt to access a RethinkDB server hosted within a Docker container.

Technology used

The following tech is used in this sample:

  • Docker
  • RethinkDB
  • io.js (node)
  • mocha (for testing node)
  • co-mocha (async for mocha using generators)

Circle CI

Node / Mocha

In order for mocha to output results into a format that Circle CI can understand you will need to use mocha-junit-reporter, on a new project the following will get you going:

npm install mocha mocha-junit-reporter --save-dev

In addition to using the correct reporter, you will also need to ensure that the test results are sent to the correct folder ($CIRCLE_TEST_REPORTS). See the script/ci-test for the command that handles this:

MOCHA_FILE=$CIRCLE_TEST_REPORTS/test-results.xml node --harmony ./node_modules/.bin/mocha --reporter mocha-junit-reporter test/**/*.js

Scripts

The key files used in the build are as follows:

  • circle.yml - this defines the
  • script/ci-bootstrap - this sets up dependencies, including pulling docker containers and starting them
  • script/ci-test - this kicks off the mocha test suite

circleci-docker's People

Contributors

sandcastle avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.