Code to store artifacts on circle ci

This commit is contained in:
orangemug
2018-01-17 15:44:00 +00:00
parent ad34147f28
commit 0c2934c489
2 changed files with 4 additions and 2 deletions

View File

@@ -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);