open-horizon / examples

Code examples you can use with Horizon.
Apache License 2.0
40 stars 64 forks source link

Implement service development CI/CD process #174

Closed bmpotter closed 4 years ago

bmpotter commented 5 years ago

And document for customers.

dcmartin commented 5 years ago

An example CICD process for building services and patterns is described and implemented in the following repository, including sample services and patterns: https://github.com/dcmartin/open-horizon

t-fine commented 4 years ago

https://github.com/t-fine/examples/blob/master/.travis.yml

This is the current travis file I'm working on. It will test any changed services in a PR for all the arches it can run on (defined under a new test-all-arches target in the Makefile) noting all that passed, then publish those services and patters using a new publish Makefile target.

Still need to work in IBM Event Streams monitoring for data publication from services. I originally thought this would require changes to the testing itself (serviceTest.sh), though I realized this does not work due to needing EVTSTREAMS_* environment variables. So this needs to happen in the travis file where the use of travis secrets can access the event streams credentials.