Skip to content

Commit

Permalink
test build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Moumita Mandal committed Aug 27, 2021
1 parent 06fd404 commit cb03dda
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions buildspec.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ phases:
- ls
- npm install --unsafe-perm
- npm run prodTest && npm test
- npm run buildProdBrowser
- npm run buildDevBrowser
# - npm run buildProdBrowser
# - npm run buildDevBrowser
- node -r esm integrationBuildScript.js
- sed 's|//# sourceMappingURL=rudder-analytics.min.js.map||' dist/rudder-analytics.min.js > dist/prod.js
- mv dist/prod.js dist/rudder-analytics.min.js
- aws s3 cp dist/rudder-analytics.min.js s3://$S3_BUCKET_NAME/v3/rudder-analytics.min.js --cache-control max-age=3600 --acl public-read
- aws s3 cp dist/rudder-analytics.js s3://$S3_BUCKET_NAME/v3/rudder-analytics.js --cache-control max-age=3600 --acl public-read
# - sed 's|//# sourceMappingURL=rudder-analytics.min.js.map||' dist/rudder-analytics.min.js > dist/prod.js
# - mv dist/prod.js dist/rudder-analytics.min.js
# - aws s3 cp dist/rudder-analytics.min.js s3://$S3_BUCKET_NAME/v3/rudder-analytics.min.js --cache-control max-age=3600 --acl public-read
# - aws s3 cp dist/rudder-analytics.js s3://$S3_BUCKET_NAME/v3/rudder-analytics.js --cache-control max-age=3600 --acl public-read
- aws s3 cp -R dist/integrations/* s3://$S3_BUCKET_NAME/v3/js-integrations/ --cache-control max-age=3600 --acl public-read
- aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/v3/rudder-analytics.min.js"
- aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/v3/rudder-analytics.js"
# - aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/v3/rudder-analytics.min.js"
# - aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/v3/rudder-analytics.js"
- aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/v3/js-integrations"
artifacts:
files:
Expand Down

0 comments on commit cb03dda

Please sign in to comment.