mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-11-09 23:41:55 +01:00
Code to store artifacts on circle ci
This commit is contained in:
parent
ad34147f28
commit
0c2934c489
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue