Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (25 sloc) 682 Bytes
language: node_js
node_js:
- "10"
install:
- curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
- ibmcloud plugin install cloud-functions
- npm install serverless -g
- npm install
before_script:
- npm test
- ibmcloud login --apikey $IBMCLOUD_API_KEY -a $IBMCLOUD_API_ENDPOINT
- ibmcloud target -o $IBMCLOUD_ORG -s $IBMCLOUD_TEST_SPACE
- ibmcloud fn api list > /dev/null
- ibmcloud target
script:
- sls deploy
- npm run acceptance-test
before_deploy:
- ibmcloud target -s $IBMCLOUD_PROD_SPACE
- ibmcloud fn api list > /dev/null
- ibmcloud target
deploy:
provider: script
script: sls deploy && npm run acceptance-prod
skip_cleanup: true
You can’t perform that action at this time.