diff --git a/.circleci/build_slug.sh b/.circleci/build_slug.sh new file mode 100644 index 0000000..a1dc87d --- /dev/null +++ b/.circleci/build_slug.sh @@ -0,0 +1,10 @@ +echo "Building slug" +id=$(git archive $CIRCLE_BRANCH | docker run -e "NPM_CONFIG_PRODUCTION=false" -i -a stdin elasticio/appbuilder) +docker attach $id +RC=$? +if [ $RC -eq 0 ];then + echo "Build ok." +else + echo "Build failed" + exit 1 +fi diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..ae63fe2 --- /dev/null +++ b/circle.yml @@ -0,0 +1,13 @@ +machine: + services: + - docker + +dependencies: + override: + - docker pull elasticio/appbuilder + +test: + override: + - chmod 700 .circleci/build_slug.sh + - .circleci/build_slug.sh + diff --git a/package.json b/package.json index f6acb5f..f78b6a0 100644 --- a/package.json +++ b/package.json @@ -20,24 +20,24 @@ "bugs": { "url": "https://github.com/elasticio/csv-component/issues" }, - "devDependencies": { - "code-quality-js": "git+https://github.com/elasticio/code-quality-js.git#master", - "git-guppy": "~1.0.0", - "gulp": "^3.8.11", - "gulp-jasmine": "^2.0.1", - "gulp-jscs": "~1.6.0", - "nock": "^2.17.0" - }, "homepage": "https://github.com/elasticio/csv-component#readme", "dependencies": { "csv": "^0.4.6", "debug": "^2.2.0", "elasticio-node": "0.0.7", - "elasticio-sailor-nodejs": "^1.0.1", + "elasticio-sailor-nodejs": "1.1.0", "moment": "^2.10.6", "node-uuid": "^1.4.3", "q": "^1.4.1", "request": "^2.65.0", "underscore": "^1.8.3" + }, + "devDependencies": { + "code-quality-js": "1.0.2", + "git-guppy": "~1.0.0", + "gulp": "^3.8.11", + "gulp-jasmine": "^2.0.1", + "gulp-jscs": "~1.6.0", + "nock": "^2.17.0" } }