MerryFairyTalesAD440 / Builds

AD440 Section 2349 (Tuesday)
GNU General Public License v3.0
0 stars 0 forks source link

Create Travis ci pipeline for api dev and prod #17

Open cjshaw opened 5 years ago

cjshaw commented 5 years ago

We need to create a Travis ci pipeline that uploads whatever functions are created.

use this github for reference: https://github.com/cjshaw/ad-cloud-func-test

you need to hide the variables for azure web apps in travis-ci.org message clint if you need to know what the credentials are or where to find them on azure portal.

ryanybrennan commented 5 years ago

Added environmental variables to travis CI and linked API repository to Travis. ~20 minutes

ryanybrennan commented 5 years ago

pushed branch with one .travis.yml file to handle both production and development branches (hopefully). ~ 2 hours

ryanybrennan commented 5 years ago

github file link for travis.yml: https://github.com/MerryFairyTalesAD440/API/blob/ryan_travis_ci/.travis.yml

ryanybrennan commented 5 years ago

Wiki: https://github.com/MerryFairyTalesAD440/Builds/wiki/Travis-CI-Pipeline-for-API-Dev-and-Prod-to-Azure-Functions

ryanybrennan commented 5 years ago

Pull Request link: https://github.com/MerryFairyTalesAD440/API/pull/17

toddysm commented 5 years ago

When you develop the CI/CD pipeline, you should also test it. Right now it fails with "Branch not permitted" because you tried to run it on your own branch. either you need to add your branch to the list of allowed branches or do a commit to the dev branch at least to test the functionality.

ryanybrennan commented 5 years ago

Back in the day when we successfully tested the .travis.yml config: https://github.com/cjshaw/ad-cloud-func-test

ryanybrennan commented 5 years ago

Revamped Wiki page: https://github.com/MerryFairyTalesAD440/Builds/wiki/Travis-CI-Pipeline-for-API-Dev-and-Prod-to-Azure-Functions