Reputation: 541
I'm trying to setup TravisCI to do automated build and tests for me on a C project.
For me to learn and understand it I made a sample github repo to make it work before moving it to my final project.
My Project consists of basically 3 files:
.travis.yml:
language: C
makefile:
hellomake: main.c
gcc -o hellomake main.c -I.
main.c:
#include <stdio.h>
void main()
{
printf("Hello World!");
}
As the project is now I get the following error in Travis:
0.00s$ ./configure && make && make test
/home/travis/build.sh: line 41: ./configure: No such file or directory
The command "./configure && make && make test" exited with 127.
What am I missing or doing wrong?
Upvotes: 14
Views: 6467
Reputation: 4677
According to The Docs the default script
for C projects is ./configure && make && make test
. However, as specified just a couple of lines below, "This can be overridden as described in the general build configuration guide."
For example, for your project (which only has a Makefile
without a test
target) you could use:
script: make
For building it (append to .travis.yml
).
Upvotes: 16