/sdk-tests

Meta-repository and test suite for all Databox SDKs

Primary LanguageRuby

Databox SDK

Meta-repository and Docker based test suite for Databox SDKs.

Circle CI

SDKs

Language / SDK CI Status
JavaScript Build Status
Ruby Build Status
Go Build Status
PHP Build Status
Python Build Status
Java Build Status

Running suite

This repository contains Dockerfile that can used as basis for testing Databox SDKs. Rake is used to pull data from repositories run its unit tests and examples.

Pull source code from all SDKs, install dependencies and run all tests.

docker run -ti databox-sdk /bin/bash -lc \
  "rake"

Run specific test suite (JavaScript SDK in this example):

docker run -ti databox-sdk /bin/bash -lc \
  "rake clean js"

Development

Help yourself with boot2docker if you are on OSX.

boot2docker init
boot2docker up

Build databox-sdk image with local Dockerfile.

docker build -t databox-sdk .

Image mounts /sdks folder. When developing, you can also mount local folder to container:

docker run -ti -v `pwd`/sdks:/sdks databox-sdk /bin/bash -lc \
  "rake clean all"

Author