mirror of
https://github.com/maputnik/editor.git
synced 2026-08-25 22:47:39 +00:00
Code to store artifacts on circle ci
This commit is contained in:
@@ -25,3 +25,5 @@ jobs:
|
|||||||
- run: DOCKER_HOST=localhost npm test
|
- run: DOCKER_HOST=localhost npm test
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- run: ./node_modules/.bin/istanbul report --include /tmp/artifacts/coverage/coverage.json --dir /tmp/artifacts/coverage html lcov
|
- run: ./node_modules/.bin/istanbul report --include /tmp/artifacts/coverage/coverage.json --dir /tmp/artifacts/coverage html lcov
|
||||||
|
- store_artifacts:
|
||||||
|
path: /tmp/artifacts
|
||||||
|
|||||||
+2
-2
@@ -6,8 +6,8 @@ function genPath(subPath) {
|
|||||||
subPath = subPath || ".";
|
subPath = subPath || ".";
|
||||||
var buildPath;
|
var buildPath;
|
||||||
|
|
||||||
if(process.env.CIRCLE_ARTIFACTS) {
|
if(process.env.CIRCLECI) {
|
||||||
buildPath = path.join(process.env.CIRCLE_ARTIFACTS, subPath);
|
buildPath = path.join("/tmp/artifacts", subPath);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
buildPath = path.join(__dirname, '..', 'build', subPath);
|
buildPath = path.join(__dirname, '..', 'build', subPath);
|
||||||
|
|||||||
Reference in New Issue
Block a user