Customizing the pipeline using .travis.yml

While Travis CI is now tracking our Git repository, it is not yet smart enough to know what to do with it when an event occurs. To tell Travis CI what to do, we need to create a special file within the root of the repository. Whenever a Git event happens (for example, a Git pull request), the .travis.yml file will be processed and used to orchestrate the pipeline execution.

In the case of our smart contract, we have the following .travis.yml in the root of our Git repository:

sudo: requiredservices:- dockerdist: trustycache:   directories:  - node_modulesscript:- make build- make test

Since our Makefile is making use of Docker container to make the build independent of the environment in which it is ...

Get Blockchain Development with Hyperledger now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.