Travis CI integration

This commit is contained in:
Alex Kotliarskyi
2014-09-26 18:19:32 -07:00
parent b6b7849740
commit 08095b7d2c
3 changed files with 11 additions and 3 deletions

8
.travis.yml Normal file
View File

@@ -0,0 +1,8 @@
language: c
compiler:
- clang
- gcc
before_script:
- sudo apt-get update -q
- sudo apt-get install nodejs
script: make

View File

@@ -7,9 +7,9 @@ c:
@node ./src/transpile.js
test:
@gcc -Weverything -Werror -Wno-padded $(FILES) && ./a.out
@gcc -std=c99 -Werror -Wno-padded $(FILES) -lm && ./a.out
@rm a.out
debug:
@gcc -ggdb $(FILES) && lldb ./a.out
@gcc -ggdb $(FILES) -lm && lldb ./a.out
@rm a.out

View File

@@ -1,4 +1,4 @@
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>