Skip to content

Commit

Permalink
Store entire build directory as CI artifacts (#15310)
Browse files Browse the repository at this point in the history
* Store FB bundles as CI artifacts

Updates the Circle CI config to store Facebook bundles as build
artifacts. We already do this for our npm packages.

* Might as well store everything in build/

* Store build directory as a tarball

So it's easy to download
  • Loading branch information
acdlite committed Apr 4, 2019
1 parent 43b1f74 commit 1dcab97
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .circleci/config.yml
Expand Up @@ -44,4 +44,7 @@ jobs:
path: ./node_modules.tgz

- store_artifacts:
path: ./scripts/error-codes/codes.json
path: ./build.tgz

- store_artifacts:
path: ./scripts/error-codes/codes.json
10 changes: 7 additions & 3 deletions scripts/circleci/pack_and_store_artifact.sh
Expand Up @@ -2,10 +2,14 @@

set -e

# Compress build directory into a single tarball for easy download
tar -zcvf ./build.tgz ./build

# NPM pack all modules to ensure we archive the correct set of files
for dir in ./build/node_modules/* ; do
cd ./build/node_modules
for dir in ./* ; do
npm pack "$dir"
done

# Wrap everything in a single zip file for easy download by the publish script
tar -zcvf ./node_modules.tgz ./*.tgz
# Compress packed modules into a single tarball for easy download by the publish script
tar -zcvf ../../node_modules.tgz ./*.tgz

0 comments on commit 1dcab97

Please sign in to comment.