initial artifact uploading

This commit is contained in:
Dima Gerasimov 2019-06-29 15:45:54 +01:00 committed by Dmitrii Gerasimov
parent cc39a626a9
commit c981231c76

View file

@ -23,6 +23,7 @@ jobs:
- run: npm run build - run: npm run build
# TODO ugh. is there a way for a job to inherit a cloned repo after npm run build has ran?? I'd like to separate build and check steps # TODO ugh. is there a way for a job to inherit a cloned repo after npm run build has ran?? I'd like to separate build and check steps
# TODO ok, apparently it's a custom executor? https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
- run: - run:
name: js flow name: js flow
command: npm run flow command: npm run flow
@ -32,6 +33,21 @@ jobs:
command: npm run eslint command: npm run eslint
when: always when: always
- run:
# TODO need to do some kind of build matrix over [firefox, chrome] x [anyhost, no_anyhost]
# it should be somehow achievable via workspaces, but I've spent 10 minutes and couldn't figure it out...
name: pack
command: |
for browser in 'chrome'; do
zip -r -j "/tmp/grasp.zip" build/*
done
# TODO ugh, also can't use env variables in artifacts...
- store_artifacts:
path: "/tmp/grasp.zip"
destination: "grasp.zip"
server_build_and_check: server_build_and_check:
docker: docker: