Home

Awesome

travis_make_dot

BranchTravis CI logo
masterBuild Status
developBuild Status

Travis CI make example of a pipeline of one step.

Explanation

First, we specify in the Makefile that when we do make, the success is dependent on output.txt:

all: output.txt

Second, we specify in the Makefile that output.txt is dependent on input.txt. If input.txt changes, it will be copied to output.txt, after which some text is appended.

output.txt: input.txt
	cp input.txt output.txt
	echo "is cool" >> output.txt

FAQ

How did you make the picture?

Using make pic (also part of the Makefile), which uses lindenb/makefile2graph.