diff --git a/.circleci/config.yml b/.circleci/config.yml index f78c4ee..d6e8922 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -25,3 +25,5 @@ jobs: - run: DOCKER_HOST=localhost npm test - run: npm run build - run: ./node_modules/.bin/istanbul report --include /tmp/artifacts/coverage/coverage.json --dir /tmp/artifacts/coverage html lcov + - store_artifacts: + path: /tmp/artifacts diff --git a/test/artifacts.js b/test/artifacts.js index 73943aa..efebbe9 100644 --- a/test/artifacts.js +++ b/test/artifacts.js @@ -6,8 +6,8 @@ function genPath(subPath) { subPath = subPath || "."; var buildPath; - if(process.env.CIRCLE_ARTIFACTS) { - buildPath = path.join(process.env.CIRCLE_ARTIFACTS, subPath); + if(process.env.CIRCLECI) { + buildPath = path.join("/tmp/artifacts", subPath); } else { buildPath = path.join(__dirname, '..', 'build', subPath);