Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The CI does not test the function before or after deploying #2

Open
HarvsG opened this issue Aug 2, 2017 · 1 comment
Open

The CI does not test the function before or after deploying #2

HarvsG opened this issue Aug 2, 2017 · 1 comment

Comments

@HarvsG
Copy link
Owner

HarvsG commented Aug 2, 2017

deploy:
  - provider: script
    script:
      # change FUNCTION_NAME PROJECT and REPO to the values from the cloud console: https://console.cloud.google.com/code/develop. Note function name is from your main file, usualy index.js, the main function exports.FUNCTION_NAME
      - gcloud --quiet beta functions deploy SpaceXFulfillment --source-url https://source.developers.google.com/p/r-spacex-ai/r/r-SpaceX-AI-google-source-repo --source-path / --trigger-http
      #- gcloud beta functions call SpaceXFulfillment --file=requestExample.json # NOT working, it would be good to emulate and test the function and then only deploy if successful!
   

functions call SpaceXFulfillment --file=requestExample.json
should, in theory, test the function, it would be great to make deployment conditional on the outcome of that.

Edit: --file is not a valid flag

@HarvsG
Copy link
Owner Author

HarvsG commented Nov 19, 2017

Relevant commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant